/* Custom Button Style in Media Sidebar */
.mmc-button-container {
    margin-top: 15px;
    margin-bottom: 10px;
    text-align: center;
}

#mmc-open-cropper {
    width: 100%;
}

/* Modal Styles */
.mmc-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Daha koyu arka plan */
    z-index: 160000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mmc-modal-content {
    background-color: #f0f0f1; /* WordPress admin rengi */
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,.7);
    width: 1920px;
    max-width: 95%; /* Daha geniş modal */
    height: 90vh; /* Yüksekliği artırıldı */
    display: flex;
    flex-direction: column;
}

.mmc-modal-header {
    padding: 12px 16px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
}

.mmc-modal-header h2 {
    margin: 0;
    font-size: 1.1em !important;
}

.mmc-modal-close {
    background: none !important;
    border: none !important;
    font-size: 24px !important;
    cursor: pointer !important;
    padding: 0 5px !important;
    line-height: 1;
}

/* YENİ: Ana içerik alanı (yan menü + resim) */
.mmc-modal-main {
    display: flex;
    flex-grow: 1;
    overflow: hidden; /* İç scrollbarları önlemek için */
}

/* YENİ: Sol taraftaki araçlar menüsü */
.mmc-tools-sidebar {
    width: 260px;
    flex-shrink: 0;
    background-color: #fff;
    border-right: 1px solid #ddd;
    padding: 15px;
    overflow-y: auto;
}

.mmc-tool-group h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 14px !important;
    color: #1d2327;
}

.mmc-tool-group .mmc-tool-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* DEĞİŞİKLİK: Artık 4 butonu yan yana sığdırmak için genişliği ayarlıyoruz */
.mmc-tool-group .mmc-tool-buttons button {
    width: calc(25% - 6px); /* 4 buton için (8px gap varsayımıyla) */
    padding: 5px;
    font-size: 12px;
    height: auto;
    color: #2271b1 !important;
    border-color: #2271b1 !important;
    background: #f6f7f7 !important;
}

/* YENİ: Aktif buton stili */
.mmc-tool-group .mmc-tool-buttons button.active {
    background-color: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.mmc-modal-body {
    padding: 15px;
    overflow-y: auto;
    flex-grow: 1;
    background-color: #e4e4e4; /* Resim arkası için hafif gri */
}

.mmc-image-container {
    width: 100%;
    height: 100%;
}

#mmc-image-to-crop {
  display: block;
  max-width: 100%;
}

.mmc-modal-footer {
    padding: 12px 16px;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: flex-end; /* Butonları sağa yasla */
    align-items: center;
    background-color: #fff;
}

.mmc-modal-footer .spinner {
    float: none !important;
    margin: 0 0 0 5px !important;
    vertical-align: middle !important;
    opacity: 1;
}

.mmc-modal-footer button .spinner:not(.is-active) {
    display: none;
}

/* YENİ: Şık Bildirim (Snackbar/Toast) Stilleri */
.mmc-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    z-index: 170000; /* En üstte */
    box-shadow: 0 3px 6px rgba(0,0,0,0.16);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, bottom 0.3s;
}

.mmc-notification.show {
    opacity: 1;
    visibility: visible;
    bottom: 30px;
}

.mmc-notification.success {
    background-color: #28a745; /* Yeşil */
}

.mmc-notification.error {
    background-color: #dc3545; /* Kırmızı */
}

.mmc-button.button {
    padding: 12px 25px;
    height: auto;
    color: #f6f7f7 !important;
    border-color: #2271b1 !important;
    background: #2271b1 !important;
    border-radius: 4px !important;
    margin-left: 10px;
}

.mmc-button.button.button-primary {
    color: #3b3d3d !important;
    border-color: #00fff5 !important;
    background: #00fff5 !important;
}