/* Genel Stil */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #f5f7fa;
    --text-color: #333;
    --border-color: #dce1e6;
    --error-color: #e94b3c;
    --success-color: #2ecc71;
    --white: #fff;
    --sidebar-bg: #2c3e50;
    --sidebar-text: #ecf0f1;
    --sidebar-active: #3498db;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}
.modal-backdrop{
    z-index:1040;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--secondary-color);
    color: var(--text-color);
    height: 100vh;
}

/* Giriş Sayfası Stili */
.login-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1200&q=80') no-repeat center center fixed;
    background-size: cover;
    filter: blur(6px) brightness(0.7);
    z-index: 0;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.login-box {
    background: rgba(255,255,255,0.95);
    border-radius: 18px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
    padding: 38px 32px 28px 32px;
    min-width: 340px;
    max-width: 95vw;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-logo h2 {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 2.1rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 28px;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(37,99,235,0.08);
}

.btn-login {
    width: 100%;
    background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 13px 0;
    font-size: 1.1em;
    margin-top: 10px;
    box-shadow: 0 2px 8px rgba(37,99,235,0.10);
    transition: background 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.btn-login:hover {
    background: linear-gradient(90deg, #1d4ed8 0%, #3b82f6 100%);
    box-shadow: 0 4px 16px rgba(37,99,235,0.18);
}

.input-icon-group {
    display: flex;
    align-items: center;
    margin-bottom: 1.1rem;
    background: #f3f4f6;
    border: 1.5px solid #d1d5db;
    border-radius: 0.4rem;
    padding: 0 0.7rem;
    height: 48px;
    box-sizing: border-box;
}
.input-icon {
    color: #2563eb;
    font-size: 1.3em;
    margin-right: 8px;
    min-width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.input-icon-group input {
    border: none;
    outline: none;
    background: transparent;
    flex: 1;
    height: 100%;
    padding: 0 4px;
    font-size: 1.1rem;
    box-sizing: border-box;
    border-radius: 0.4rem;
}
.input-icon-group input:focus {
    background: #e0e7ff;
}

.error-message {
    color: #fff;
    background: #ef4444;
    border-radius: 6px;
    padding: 10px 16px;
    margin-top: 18px;
    font-size: 1em;
    text-align: center;
    box-shadow: 0 2px 8px rgba(239,68,68,0.10);
}

.sidebar-welcome-message {
    padding: 15px 20px;
    color: #a7b1c2; /* Soluk renk */
    font-weight: 500;
    text-align: center;
    border-bottom: 1px solid #4a4a4a;
    margin-bottom: 10px;
}

.sidebar {
    left: -250px;
}
.input-group {
    margin-bottom: 1.5em;
}

.input-group label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 0.8em;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

button[type="submit"] {
    width: 100%;
    padding: 0.9em;
    border: none;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #357abd;
}

/* Genel Bildirim Stili (Sağ Üst Köşe) */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    color: var(--white);
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}

.notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification.success {
    background-color: var(--success-color);
}

.notification.error {
    background-color: var(--error-color);
}

/* Dashboard Yapısı */
.dashboard-container {
    width: 100%;
    height: 100vh;
    position: relative;
}

.sidebar {
    width: 250px;
    background-color: #2c3e50;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    overflow-y: auto;
    transition: left 0.3s ease-in-out;
    z-index: 1000;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #4a4a4a;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.5em;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background-color: var(--sidebar-active);
    color: var(--white);
}

.sidebar-nav a i {
    margin-right: 15px;
    width: 20px; /* İkonlar için sabit genişlik */
    text-align: center;
}

.sidebar-footer {
    margin-top: auto;
    padding: 20px;
    border-top: 1px solid #4a4a4a;
}

.sidebar-footer a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--sidebar-text);
}

.sidebar-footer a:hover {
    color: var(--sidebar-active);
}

.sidebar-footer a i {
    margin-right: 15px;
}

.main-content {
    padding: 30px;
    margin-left: 280px;
    width: calc(100% - 280px);
    max-width: none;
    box-sizing: border-box;
    transition: margin-left 0.3s ease-in-out;
    background-color: var(--secondary-color);
    height: 100%;
}

.main-content h1 {
    margin-top: 0;
}

.loader {
    text-align: center;
    font-size: 1.5em;
    padding-top: 50px;
}

/* Genel Buton Stilleri */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
    min-width: 39px;
    height: 40px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s, background 0.2s;
    position: relative;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-secondary {
    background-color: #6c757d;
    color: var(--white);
}

.btn-danger {
    background-color: var(--error-color);
    color: var(--white);
}

.btn.btn-primary:hover {
    background: #2563eb;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.btn.btn-danger:hover {
    background: #c0392b;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.btn.btn-primary i, .btn.btn-danger i {
    color: #fff;
    margin: 0;
    font-size: 1.2em;
}

/* Tablo Stilleri */
.table-container {
    margin-top: 20px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow-x: auto; /* Yatay kaydırma için */
    width: 100%;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    table-layout: auto; /* Tablo düzenini otomatik yap */
}

.data-table th, .data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: var(--secondary-color);
    font-weight: 600;
}

.data-table tbody tr:hover {
    background-color: #f0f4f8;
}

.data-table .actions a {
    color: var(--primary-color);
    cursor: pointer;
}
.data-table .actions a:hover {
    color: var(--primary-color);
}
.data-table .actions .delete-btn {
    color: var(--error-color);
}

/* Modal Stilleri (Düzeltilmiş) */
.modal {
    display: none; /* Varsayılan olarak gizli tut */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050; /* Bootstrap'in backdrop'ından daha yüksek bir z-index */
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

.modal.show {
    display: flex; /* Yalnızca .show sınıfı varken görünür yap */
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    display: block;
    background-color: #fefefe;
    padding: 20px;
    border-radius: 8px;
    width: 95%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover, .close-btn:focus {
    color: black;
}

#modal-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-sizing: border-box;
}

.form-actions {
    margin-top: 20px;
    text-align: right;
}

/* Sayfa Kontrol ve Filtre Stilleri */
.controls-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.controls-container .filters,
.controls-container .actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.controls-container .btn,
.controls-container .actions .btn {
    white-space: nowrap;
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
}

.filters {
    display: flex;
    gap: 15px;
}

.filter-select {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    min-width: 200px;
}

.table-summary {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6c757d;
}

/* Mobil Uyumluluk Stilleri */

.mobile-header {
    display: none; /* Varsayılan olarak gizli, media query ile aktif edilecek */
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #2c3e50; /* Koyu Arka Plan */
    color: #ffffff;             /* Beyaz Metin/İkon */
    padding: 0 15px;
    z-index: 1050;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.mobile-header .mobile-menu-toggle {
    background: transparent;
    border: none;
    color: #ffffff !important; /* Rengin ezilmemesi için important */
    font-size: 24px;
    cursor: pointer;
    padding: 0 15px 0 0;
}
.mobile-header .header-title {
    font-size: 1.2em;
    font-weight: 500;
}

@media (max-width: 900px) {
    body {
        /* Sabit header'ın içeriği kapatmasını önlemek için body'e üstten boşluk ver */
        padding-top: 60px; 
    }

    .mobile-header {
        display: flex !important; /* Gerekli */
        justify-content: space-between !important; /* İkonu ve başlığı iki uca yasla */
        align-items: center !important; /* Dikey hizalama */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background-color: #2c3e50; /* Koyu Arka Plan */
        color: #ffffff;
        padding: 0 20px;
        z-index: 1050;
    }

    .mobile-header .mobile-menu-toggle {
        display: block; /* Butonun görünür olduğundan emin ol */
        background: none;
        border: none;
        color: #ffffff;
        font-size: 24px;
        padding: 0;
    }

    .mobile-header span {
        font-size: 1.1em;
        font-weight: 500;
    }
    
    .sidebar {
        left: -255px; /* Mobil ekranda başlangıçta gizli (ekran dışında) */
        z-index: 1100;
        box-shadow: 0 0 15px rgba(0,0,0,0.2);
    }

    .sidebar.open {
        left: 0 !important; /* .open sınıfı eklendiğinde görünür yap (önemli) */
    }

    .main-content {
        margin-left: 0; /* Mobil için sol boşluğu sıfırla */
        padding: 20px;
        padding-top: 20px; /* Sabit header yüksekliği kadar boşluk */
        width: 100%;
    }
    
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 1060; 
    }

    .mobile-overlay.active {
        display: block;
    }
    
    .dashboard-container {
        flex-direction: column;
    }
    
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 1rem;
        width: 100%;
    }

    .fc-header-toolbar.fc-toolbar {
        flex-direction: column;
        gap: 10px;
    }

    .fc-button {
        padding: 4px 8px !important;
        font-size: 0.8em !important;
    }
}

@media (max-width: 700px) {
  .main-content {
    padding: 10px;
  }
  .table-container {
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    overflow-x: auto;
  }
  .data-table {
    width: 100%;
    min-width: auto;
    table-layout: auto;
  }
  .table-responsive .table,
  .table-responsive table {
    width: 100% !important;
    min-width: auto !important;
    table-layout: auto !important;
  }
  .data-table th, .data-table td {
    padding: 8px;
    font-size: 0.95em;
  }
  .filters {
    flex-direction: column;
    gap: 8px;
  }
  .fc-event-title, .fc-event-time {
    display: none !important;
  }
  .fc-daygrid-dot-event .fc-event-dot {
    width: 12px;
    height: 12px;
    background: #e74c3c;
    border-radius: 50%;
    display: inline-block;
    margin-right: 2px;
  }
  .fc-event.special-holiday .fc-event-dot {
    background: #fd7e14 !important;
  }
  .summary-stats {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
  }
  .stat-item {
    min-width: 140px;
    flex: 0 0 auto;
  }
}

@media (max-width: 500px) {
  .login-container, .modal-content {
    padding: 10px;
    border-radius: 0;
    max-width: 100vw;
    width: 100vw;
  }
  .form-group input, .form-group select {
    padding: 8px;
    font-size: 1em;
  }
  .btn {
    min-width: 100px;
    font-size: 1em;
    height: 38px;
    padding: 0 10px;
  }
  .controls-container {
    flex-direction: column;
    gap: 8px;
  }
  .table-container {
    overflow-x: auto;
  }
  .data-table {
    width: 100%;
    min-width: auto;
    table-layout: auto;
  }
  .table-responsive .table,
  .table-responsive table {
    width: 100% !important;
    min-width: auto !important;
    table-layout: auto !important;
  }
  .data-table th, .data-table td {
    font-size: 0.9em;
    padding: 6px;
  }
}

/* Tabloyu küçük ekranda yatay kaydırılabilir yap */
@media (max-width: 900px) {
  .table-container {
    overflow-x: auto;
  }
  .data-table {
    width: 100%;
    min-width: auto; /* min-width'i kaldır */
  }
  .table-responsive .table,
  .table-responsive table {
    width: 100% !important;
    min-width: auto !important;
    table-layout: auto !important;
  }
}

@media (max-width: 768px) {
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* iOS için akıcı kaydırma */
        border: 1px solid var(--border-color);
        border-radius: 4px;
        flex-direction: column;
        gap: 15px;
    }

    .data-table {
        width: 100%;
        min-width: auto; /* min-width'i kaldır */
        table-layout: auto; /* Tablo düzenini otomatik yap */
    }

    .table-responsive .table,
    .table-responsive table {
        width: 100% !important;
        min-width: auto !important;
        table-layout: auto !important;
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .table-header {
        flex-direction: column;
        gap: 15px;
    }

    /* FullCalendar Mobil Header Stilleri */
    .fc-header-toolbar {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .fc-header-toolbar .fc-button {
        padding: 4px 8px;
        font-size: 0.75em;
        margin: 2px;
    }

    .fc-header-toolbar h2 {
        font-size: 1.25em;
        margin-top: 5px;
    }
}

.main-content .card-header {
    background-color: transparent;
    border-bottom: none;
    padding: 1rem 0;
}

#calendar-container {
    margin-top: 20px;
}

.fc-daygrid-event .fc-event-title {
    white-space: normal; /* Allow event titles to wrap */
    word-wrap: break-word; /* Break long words if necessary */
}

.fc-daygrid-event {
    margin-bottom: 3px;
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* Yarı saydam beyaz çizgi */
}

.fc-daygrid-event:last-of-type {
    border-bottom: none; /* Son elemanın altındaki çizgiyi kaldır */
    margin-bottom: 0;
}

.calendar-summary-container {
    display: flex;
    gap: 10px;
    padding: 10px;
    background-color: #dedede;
    border-radius: 8px;
    margin-bottom: 20px;
    justify-content: flex-end;
    overflow-x: auto;
    white-space: nowrap;
}
.summary-item {
    font-size: 0.9rem;
    font-weight: 500;
    color: #343a40;
    background-color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #dee2e6;
}
.summary-item span {
    font-weight: bold;
    color: var(--primary-color);
}

/* Randevular Sayfası Stilleri */
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 0;
}

.status-badge {
    padding: 5px 10px;
    border-radius: 15px;
    color: #fff;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
}

.status-pending {
    background-color: #f39c12; /* Turuncu */
}

.status-answered {
    background-color: #2ecc71; /* Yeşil */
}

.status-closed {
    background-color: #95a5a6; /* Gri */
}

/* Talep Detayları Modal Stilleri */
.request-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #eee;
}
.original-message {
    background-color: #f8f9fa;
}
.customer-reply {
    background-color: #eaf2fa;
    border-left: 3px solid #3498db;
}
.admin-reply {
    background-color: #e9f7ef;
    border-left: 3px solid #2ecc71;
}

/* Modal kapatma butonu */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

/* Form grupları için ek stiller */
.form-group textarea {
    width: 100%;
    padding: 0.8em;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s;
    resize: vertical;
    min-height: 80px;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

/* Modal header düzeni */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.modal-header h2 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.5em;
}

/* Finans Sayfası Yerleşimi */
.finans-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.finans-table-wrapper {
    flex: 2;
    min-width: 500px;
}

.finans-chart-wrapper {
    flex: 1;
    min-width: 350px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.chart-container {
    height: 320px;
    position: relative;
}

.chart-container + .chart-container {
    margin-top: 40px;
}

.finans-chart-wrapper h3 {
    margin-top: 0;
    font-size: 1.2em;
    color: var(--text-color);
}

/* Mobil Uyumluluk Stilleri */

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    cursor: pointer;
}

.mobile-overlay.active {
    display: block;
}

.mobile-menu-toggle {
    display: none; /* Varsayılan olarak gizli */
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background: var(--sidebar-bg);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 20px;
}

@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        max-width: none;
        padding: 15px;
        max-height: 90vh;
        margin: 2% auto;
    }
    
    .form-columns {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-column {
        min-width: 100%;
    }
    
    .form-group {
        margin-bottom: 10px;
    }
}

/* FullCalendar Mobil Tooltip Stilleri */
.fc-tooltip {
    position: absolute;
    z-index: 10001;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 10px 15px;
    font-size: 14px;
    max-width: 250px;
}
.fc-tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 8px;
}
.fc-tooltip-close {
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
}
.fc-tooltip-close:hover {
    color: #e74c3c;
}
.fc-event-title-mobile {
    display: none;
    font-weight: bold;
}

/* Bildirim Balonu Stili (Yeniden Düzenlendi) */
.notification-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    top: -1px; /* Dikey hizalama için ince ayar */
    margin-left: 8px;
    height: 20px;
    min-width: 20px;
    padding: 0 6px;
    border-radius: 10px; /* Tam yuvarlak köşe */
    background-color: #e74c3c;
    color: white;
    font-size: 12px;
    font-weight: 600;
    line-height: 1; /* Satır yüksekliğini sıfırla */
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    vertical-align: middle;
    transition: transform 0.2s ease;
}

/* Kenar çubuğundaki link içindeki konumu */
.sidebar-nav a .notification-bubble {
    /* Bu kurala artık gerek yok, genel kural yeterli */
}

/* =================================
   MÜŞTERİ PANELİNE ÖZEL STİLLER
   ================================= */

.customer-sidebar {
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
}

.customer-sidebar .sidebar-header h3 {
    color: var(--sidebar-text);
}

.customer-sidebar .sidebar-nav a {
    color: var(--sidebar-text);
}

.customer-sidebar .sidebar-nav a:hover,
.customer-sidebar .sidebar-nav a.active {
    background-color: var(--sidebar-active);
    color: var(--white);
}

.customer-sidebar .sidebar-footer a,
.customer-sidebar .sidebar-footer a i {
    color: var(--sidebar-text) !important;
}

.customer-sidebar .sidebar-footer a:hover,
.customer-sidebar .sidebar-footer a:hover span {
    color: var(--sidebar-active) !important;
}

.customer-main-content {
    margin-left: 250px; /* Kenar çubuğu genişliği kadar */
    padding: 20px;
}

/* Mobil için müşteri panelini ayarla */
@media (max-width: 768px) {
    .customer-main-content {
        margin-left: 0;
    }
    /* Müşteri kenar çubuğu için mobil ayarları da ekleyebiliriz,
       ancak şimdilik yönetici paneli ile aynı davranışı sergileyecek.
       Eğer farklı bir mobil menü davranışı istenirse burası güncellenir. */
}

.table th, .table td {
    vertical-align: middle;
}

/* FullCalendar etkinlik yazılarının rengini Bootstrap'in mavisinden siyaha döndürmek için */
.fc-event, .fc-event-main, .fc-event-title, a.fc-event {
    /* Renk ayarları JavaScript'te yapılıyor */
}

/* Yukarıdaki kural çalışmazsa, bu daha spesifik kural Bootstrap'i ezecektir. */
.fc-daygrid-event-harness .fc-event {
    /* Renk ayarları JavaScript'te yapılıyor */
}

/* Takvim gün başlıkları ve numaraları koyu gri */
.fc-col-header-cell-cushion, .fc-daygrid-day-number {
    color: #222 !important;
    font-weight: 600;
}

/* Takvim etkinlik kartı: ufak font, tek satır, ellipsis */
.fc-event, .fc-daygrid-event, .fc-event-main {
    font-size: 13px !important;
    border-radius: 6px !important;
    padding: 2px 8px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    border: none !important;
    min-width: 0 !important;
    max-width: 100%;
}
.fc-event-main {
    display: flex; /* İçeriği (saat ve başlık) yatayda dizmek için */
    align-items: center; /* Dikeyde ortala */
    overflow: hidden; /* Taşmayı gizle */
}

.fc-event-time {
    font-weight: bold;
    margin-right: 4px;
    font-size: 12px;
    white-space: nowrap; /* Saatin bölünmesini engelle */
}

.fc-event-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0; /* Flex-item'ın küçülebilmesi için gerekli */
}

/* Takvimde özel günler için turuncu arka plan, beyaz yazı */
.fc-event.special-holiday {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
    font-weight: bold;
}

/* Takvim istatistik kutuları */
.calendar-summary-container {
    display: flex;
    gap: 24px;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 18px 32px;
    margin-bottom: 18px;
    align-items: center;
    justify-content: flex-end;
}
.summary-stats {
    display: flex;
    gap: 32px;
}
.stat-item {
    background: #fff;
    border-radius: 6px;
    padding: 10px 22px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    font-size: 15px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}
.stat-label {
    color: #888;
    font-size: 13px;
    font-weight: 500;
    margin-right: 6px;
}
.stat-value {
    color: #222;
    font-size: 18px;
    font-weight: bold;
}

/* Bootstrap tablo sınıfları ile uyumluluk */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    width: 100%;
}

.table-responsive .table,
.table-responsive table {
    width: 100% !important;
    min-width: auto !important;
    table-layout: auto !important;
}

/* Genel tablo stilleri - tüm tablolar için */
table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

/* data-table sınıfı için özel stiller */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    table-layout: auto; /* Tablo düzenini otomatik yap */
}

.form-columns {
    display: flex;
    gap: 20px; /* Sütunlar arası boşluk */
    flex-wrap: wrap;
}

.form-column {
    flex: 1; /* Her sütun eşit genişlikte olsun */
    min-width: 280px;
}

.form-section-title {
    font-size: 1.1em;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

/* Hesaplar Sayfası İkon Stilleri */
.platform-icon {
    font-size: 24px;
    vertical-align: middle;
}
.platform-icon.instagram { color: #E4405F; }
.platform-icon.facebook { color: #1877F2; }
.platform-icon.tiktok { color: #000000; }
.platform-icon.youtube { color: #FF0000; }
.platform-icon.mail { color: #c71610; }
.platform-icon.other { color: #6c757d; }

.password-container {
    display: flex;
    align-items: center;
}

.password-field {
    flex-grow: 1;
    border: none;
    background-color: transparent;
    padding: 0;
    font-family: monospace;
}

.password-field:focus {
    outline: none;
}
.table-header{
    padding:20px;
}
.card-header{
    padding:20px !important;
}
/* Randevular sayfası için yan panel stili (Düzeltilmiş) */
.side-panel-modal {
    width: auto;
    justify-content: flex-start;
    background-color: transparent;
}

.side-panel-modal .modal-content {
    width: 450px;
    max-width: 90%;
    height: 100%;
    border-radius: 0;
    margin: 0;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    animation: slideInFromLeft 0.3s forwards;
}

@keyframes slideInFromLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover, .close-btn:focus {
    color: black;
}

@media (max-width: 900px) {
    body.sidebar-open {
        overflow: hidden;
    }

    .mobile-header {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1010;
    }

    /* Müşteri panelinin mobil header'ı için ek kural */
    .customer-main-content .page-header {
        display: none;
    }
    
    .mobile-header .mobile-menu-toggle {
        background: none;
        border: none;
        color: #ffffff;
        font-size: 24px;
        padding: 0;
    }

    .sidebar {
        left: -250px; /* Kenar çubuğu başlangıçta gizli */
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }

    .sidebar.open {
        left: 0; /* JS ile .open sınıfı eklendiğinde görünür olur */
    }

    .main-content {
        margin-left: 0; /* Mobil görünümde sol boşluk sıfır */
        padding-top: 80px; /* mobil-header yüksekliği kadar boşluk */
    }

     /* Müşteri paneli için mobil padding ayarı */
    .customer-main-content {
        padding-top: 80px;
    }

    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 1060; 
    }

    .mobile-overlay.active {
        display: block;
    }
}

.input-icon-group {
  display: flex;
  align-items: center;
  margin-bottom: 1.1rem;
  background: #f3f4f6;
  border: 1.5px solid #d1d5db;
  border-radius: 0.4rem;
  padding: 0 0.7rem;
  height: 48px;
  box-sizing: border-box;
}
.input-icon {
  color: #2563eb;
  font-size: 1.3em;
  margin-right: 8px;
  min-width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.input-icon-group input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  height: 100%;
  padding: 0 4px;
  font-size: 1.1rem;
  box-sizing: border-box;
  border-radius: 0.4rem;
}
.input-icon-group input:focus {
  background: #e0e7ff;
}

.input-with-icon {
  padding-left: 38px !important;
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 18px 18px;
}
.input-with-icon.user-icon {
  background-image: url('data:image/svg+xml;utf8,<svg fill="%232563eb" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm4.285 1.567A7 7 0 0 0 8 9c-1.657 0-3.156.567-4.285 1.567C2.28 11.226 2 11.885 2 12.5V13a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1v-.5c0-.615-.28-1.274-.715-1.933z"/></svg>');
}
.input-with-icon.lock-icon {
  background-image: url('data:image/svg+xml;utf8,<svg fill="%232563eb" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M8 1a3 3 0 0 0-3 3v3H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-1V4a3 3 0 0 0-3-3zm-2 3a2 2 0 1 1 4 0v3H6V4zm-2 5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9z"/></svg>');
}
.input-with-icon:focus {
  background-color: #e0e7ff;
}

/* Meta Business Suite üst bar responsive düzenlemeleri */
.meta-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 24px 12px 24px;
  background: #fff;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 2px 8px #0001;
  flex-wrap: wrap;
}
.meta-top-bar > div {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.meta-platform-menu {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.meta-menu-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  font-size: 1em;
  font-weight: 500;
  border-radius: 8px;
  border: 1.5px solid #bbb;
  background: #fff;
  color: #222;
  transition: all .15s;
  outline: none;
  cursor: pointer;
  margin-bottom: 0;
}
#meta-page-select-container {
  min-width: 120px;
}
@media (max-width: 900px) {
  .meta-top-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 8px 8px 8px;
    gap: 10px;
  }
  .meta-top-bar > div {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .meta-platform-menu {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
  }
  .meta-menu-btn {
    width: 100%;
    justify-content: flex-start;
    font-size: 1em;
    margin-bottom: 4px;
  }
  #meta-page-select-container, .meta-top-bar .btn {
    width: 100%;
    margin-top: 6px;
  }
}
@media (max-width: 480px) {
  .meta-top-bar {
    padding: 8px 2vw 6px 2vw;
    gap: 6px;
  }
  .meta-menu-btn {
    font-size: 0.98em;
    padding: 7px 8px;
  }
  .meta-top-bar > div {
    gap: 6px;
  }
  #meta-page-select-container, .meta-top-bar .btn {
    font-size: 0.98em;
    padding: 7px 8px;
  }
}
/* Meta istatistik kartları da mobilde tam genişlikte olsun */
@media (max-width: 768px) {
  .meta-cards-row {
    flex-direction: column !important;
    gap: 16px !important;
  }
  .meta-card {
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
  }
}

/* --- Sadeleştirilmiş Responsive Kural --- */
@media (max-width: 1200px) {
  .dashboard-container {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    display: block;
  }
}

.dashboard-main-content {
    padding: 30px;

    max-width: none;
    box-sizing: border-box;
    transition: margin-left 0.3s ease-in-out;
    background-color: var(--secondary-color);
    height: 100%;
}

@media (max-width: 1200px) {
  .dashboard-main-content {
            margin-left: 200px !important;
        width: 83% !important;
        max-width: 100% !important;
  }
}

/* Puantaj Modal Özel Stilleri */
#puantajModal .modal-dialog {
    max-width: 95vw !important;
    width: 95vw !important;
    margin: 1.75rem auto !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
}

#puantajModal .modal-content {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    margin: 0 auto !important;
    position: relative !important;
}

#puantajModal .modal-body {
    padding: 1.5rem !important;
    max-height: calc(90vh - 120px) !important;
    overflow-y: auto !important;
    width: 100% !important;
}

#puantajModal .table-responsive {
    max-height: calc(90vh - 200px) !important;
    overflow-y: auto !important;
    width: 100% !important;
}

#puantajModal .table {
    font-size: 0.9rem !important;
    width: 100% !important;
    margin: 0 !important;
}

#puantajModal .table th,
#puantajModal .table td {
    padding: 0.5rem !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
}

#puantajModal .form-control-sm {
    font-size: 0.875rem !important;
    padding: 0.25rem 0.5rem !important;
}

#puantajModal .form-select-sm {
    font-size: 0.875rem !important;
    padding: 0.25rem 0.5rem !important;
}

/* Bootstrap modal stillerini geçersiz kıl */
.modal-xl {
    max-width: 95vw !important;
}

.modal-xl .modal-dialog {
    max-width: 95vw !important;
    width: 95vw !important;
    margin: 1.75rem auto !important;
}

/* Mobil için puantaj modal ayarları */
@media (max-width: 768px) {
    #puantajModal .modal-dialog {
        max-width: 98vw !important;
        width: 98vw !important;
        margin: 0.5rem auto !important;
    }
    
    #puantajModal .modal-content {
        max-height: 95vh !important;
        width: 100% !important;
    }
    
    #puantajModal .modal-body {
        padding: 1rem !important;
        max-height: calc(95vh - 100px) !important;
    }
    
    #puantajModal .table {
        font-size: 0.8rem !important;
    }
    
    #puantajModal .table th,
    #puantajModal .table td {
        padding: 0.25rem !important;
    }
}
