/* Fuzyon Akademi Muhasebe Sistemi - Ana CSS Dosyası */

/* Tasarım Değişkenleri */
:root {
    --color-primary: #667eea;
    --color-primary-2: #764ba2;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-info: #3b82f6;
    --color-surface: #ffffff;
    --color-text: #333333;
    --color-text-muted: #666666;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.12);
}

/* Genel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

/* Login Container */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background-image: 
        /* Ana gradient arka plan */
        linear-gradient(135deg, #667eea 0%, #764ba2 100%),
        /* Üst kısımda hafif ışık efekti */
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        /* Alt kısımda hafif gölge */
        radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.1) 0%, transparent 50%),
        /* Orta kısımda yumuşak geçiş */
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    background-size: 
        100% 100%,
        400px 400px,
        500px 500px,
        600px 600px;
    background-position: 
        0% 0%,
        20% 20%,
        80% 80%,
        50% 50%;
    background-repeat: no-repeat;
    animation: backgroundFloat 20s ease-in-out infinite;
}

/* Arka plan animasyonu */
@keyframes backgroundFloat {
    0%, 100% {
        background-position: 
            0% 0%,
            20% 20%,
            80% 80%,
            50% 50%;
    }
    25% {
        background-position: 
            0% 0%,
            25% 25%,
            75% 75%,
            45% 45%;
    }
    50% {
        background-position: 
            0% 0%,
            30% 30%,
            70% 70%,
            40% 40%;
    }
    75% {
        background-position: 
            0% 0%,
            15% 15%,
            85% 85%,
            60% 60%;
    }
}

/* Login container için güzel ışık efektleri */
.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        /* Üst köşede parlak ışık */
        radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
        /* Alt köşede hafif gölge */
        radial-gradient(circle at 90% 90%, rgba(0, 0, 0, 0.1) 0%, transparent 40%),
        /* Orta kısımda yumuşak ışık */
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    background-size: 
        300px 300px,
        400px 400px,
        500px 500px;
    background-position: 
        10% 10%,
        90% 90%,
        50% 50%;
    background-repeat: no-repeat;
    pointer-events: none;
    animation: lightFloat 25s ease-in-out infinite;
}

@keyframes lightFloat {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Login kartı için gelişmiş stil */
.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 18px;
    box-shadow: 
        0 8px 32px rgba(102,126,234,0.18), 
        0 1.5px 8px rgba(118,75,162,0.10),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    padding: 48px 40px 36px 40px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    animation: fadeInDown 0.7s cubic-bezier(.4,0,.2,1);
    position: relative;
    overflow: hidden;
}

/* Login kartı için minimal kenar efekti */
.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    background-size: 200% 100%;
    animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-40px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo-container {
    text-align: center;
    margin-bottom: 20px;
    display: flex !important;
    justify-content: center;
    align-items: center;
    visibility: visible !important;
    position: relative;
    z-index: 5;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    width: 200px;
    height: auto;
    margin-bottom: 25px;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.2));
    transition: transform 0.4s ease, filter 0.4s ease, opacity 0.5s ease;
    border-radius: 12px;
    display: block !important;
    margin-left: auto;
    margin-right: auto;
    opacity: 1 !important; /* Varsayılan olarak görünür */
    visibility: visible !important;
    position: relative;
    z-index: 10;
}

.login-logo:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.2));
}

/* Fallback Logo Stilleri */
.fallback-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.logo-graphic {
    position: relative;
    width: 80px;
    height: 60px;
    margin-bottom: 8px;
}

.logo-shape {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 50%, #1e3a8a 100%);
    border-radius: 8px;
    clip-path: polygon(0 0, 70% 0, 100% 30%, 100% 100%, 30% 100%, 0 70%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fallback-logo:hover .logo-shape {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.logo-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e3a8a;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-subtitle {
    background: linear-gradient(90deg, #ff6b6b, #ffa500);
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(255, 107, 107, 0.3);
}

.login-header i {
    font-size: 2.8rem;
    background: linear-gradient(135deg, #3b82f6, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    animation: iconGlow 3s ease-in-out infinite alternate;
}

@keyframes iconGlow {
    from {
        filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.3));
    }
    to {
        filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.4));
    }
}

.login-header h1 {
    font-size: 2.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.login-header p {
    color: #888;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.login-form {
    margin-top: 18px;
}

.login-form input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 7px;
    border: 1.5px solid #e0e0e0;
    margin-bottom: 18px;
    font-size: 1.08rem;
    background: #f7f7fa;
    transition: border 0.2s;
}

.login-form input:focus {
    border: 1.5px solid #3b82f6;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 0 20px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

.login-form input:hover {
    border: 1.5px solid rgba(59, 130, 246, 0.5);
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.login-btn {
    width: 100%;
    padding: 13px 0;
    background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
    border: none;
    border-radius: 7px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.10);
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    background: linear-gradient(90deg, #10b981 0%, #3b82f6 100%);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.16);
    transform: translateY(-2px);
    animation: buttonPulse 1s ease-in-out infinite;
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(59, 130, 246, 0.16);
    }
    50% {
        box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25);
    }
}

/* Login butonuna eğitim temalı parçacık efekti */
.login-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    pointer-events: none;
}

.login-btn:hover::before {
    width: 300px;
    height: 300px;
    animation: rippleEffect 0.6s ease-out;
}

@keyframes rippleEffect {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Login butonuna bilim temalı ikon animasyonu */
.login-btn i {
    transition: transform 0.3s ease;
}

.login-btn:hover i {
    transform: rotate(360deg) scale(1.1);
    animation: iconSpin 0.6s ease-in-out;
}

@keyframes iconSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1.1);
    }
}

.login-footer {
    margin-top: 18px;
    color: #888;
    font-size: 0.98rem;
    position: relative;
}

.login-footer::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
}

.login-footer p {
    position: relative;
    z-index: 1;
}

/* Minimal footer dekorasyonu */
.login-footer::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    border-radius: 1px;
    opacity: 0.6;
}



/* Login Error Message */
.login-error {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
    animation: shake 0.5s ease-in-out;
}

.login-error i {
    font-size: 1.1rem;
    color: #fff;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Ana Container */
.dashboard-container {
    min-height: 100vh;
    display: flex;
}

/* Sidebar */
.sidebar {
    width: 70px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    transition: width 0.3s ease;
    overflow: hidden;
}

.sidebar:hover {
    width: 250px;
}

.sidebar-btn {
    width: 100%;
    padding: 15px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 5px;
    border-radius: 0 25px 25px 0;
    overflow: hidden;
}

.sidebar-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateX(5px);
    box-shadow: 0 0 8px 2px rgba(255,255,255,0.10);
}

.sidebar-btn.active {
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 0 10px 2px rgba(255,255,255,0.13);
    overflow: hidden;
}

.sidebar-btn i {
    font-size: 20px;
    margin-right: 15px;
    min-width: 20px;
}

.sidebar-btn span {
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.sidebar:hover .sidebar-btn span {
    opacity: 1;
}

.sidebar-footer {
    margin-top: auto;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar-user {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-align: center;
}

.sidebar-logout-btn {
    display: flex;
    align-items: center;
    width: 90%;
    padding: 12px 10px;
    border: none;
    background: rgba(255, 71, 87, 0.8);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    justify-content: center;
}

.sidebar-logout-btn:hover {
    background: rgba(255, 71, 87, 1);
    transform: translateY(-2px);
}

.sidebar-logout-btn i {
    margin-right: 10px;
}

/* Ana İçerik */
.main-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* Sayfa Başlığı */
.page-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.page-subtitle {
    color: #666;
    font-size: 14px;
}

/* Sayfa İçerikleri */
.page {
    display: none;
    animation: fadeIn 0.5s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dashboard Kartları */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 24px;
    color: white;
}

.card-icon.blue { background: linear-gradient(135deg, #667eea, #764ba2); }
.card-icon.green { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.card-icon.orange { background: linear-gradient(135deg, #fa709a, #fee140); }
.card-icon.red { background: linear-gradient(135deg, #ff6b6b, #ee5a24); }

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.card-value {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.card-change {
    font-size: 14px;
    color: #666;
}

/* Tablolar */
.table-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Öğrenciler Tablosu - Kompakt Görünüm (KALDIRILDI) */

.table-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 20px;
}

.table-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.table-actions {
    display: flex;
    gap: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: rgba(102, 126, 234, 0.1);
    font-weight: 600;
    color: #333;
}

tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

/* Öğrenciler Tablosu - Tek satır kompakt görünüm */
#classicStudentsTable { table-layout: fixed; font-size: 13px; }
#classicStudentsTable th, #classicStudentsTable td { padding: 8px 10px; vertical-align: top; }

/* Sütun genişlikleri (ekrana sığsın) */
#classicStudentsTable th:nth-child(1), #classicStudentsTable td:nth-child(1) { width: 150px; }
#classicStudentsTable th:nth-child(2), #classicStudentsTable td:nth-child(2) { width: 50px; text-align:center; }
#classicStudentsTable th:nth-child(3), #classicStudentsTable td:nth-child(3) { width: 120px; }
#classicStudentsTable th:nth-child(4), #classicStudentsTable td:nth-child(4) { width: 90px; }
#classicStudentsTable th:nth-child(5), #classicStudentsTable td:nth-child(5) { width: 120px; }
#classicStudentsTable th:nth-child(6), #classicStudentsTable td:nth-child(6) { width: 180px; }
#classicStudentsTable th:nth-child(7), #classicStudentsTable td:nth-child(7) { width: 120px; }
#classicStudentsTable th:nth-child(8), #classicStudentsTable td:nth-child(8) { width: 120px; }
#classicStudentsTable th:nth-child(9), #classicStudentsTable td:nth-child(9) { width: 120px; }
#classicStudentsTable th:nth-child(10), #classicStudentsTable td:nth-child(10) { width: 120px; }
#classicStudentsTable th:nth-child(11), #classicStudentsTable td:nth-child(11) { width: 110px; }
#classicStudentsTable th:nth-child(12), #classicStudentsTable td:nth-child(12) { width: 150px; }
#classicStudentsTable th:nth-child(13), #classicStudentsTable td:nth-child(13) { width: 100px; text-align:center; }
#classicStudentsTable th:nth-child(14), #classicStudentsTable td:nth-child(14) { width: 130px; white-space: nowrap; }

/* Uzun metinler için kesme ve tooltip */
#classicStudentsTable td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Mobilde biraz daha sıkılaştırma */
@media (max-width: 1200px) {
  #classicStudentsTable { font-size: 12px; }
  #classicStudentsTable th, #classicStudentsTable td { padding: 6px 8px; }
}

/* Yoğun ve tam ekran modları kaldırıldı */

/* Öğrenciler tablosu: yatay kaydırma + 1. sütun sticky (her zaman görünür scroll) */
#studentsPage .table-container { overflow-x: auto; overflow-y: visible; }
#studentsPage .table-container::-webkit-scrollbar { height: 12px; }
#studentsPage .table-container::-webkit-scrollbar-thumb { background: rgba(102,126,234,0.5); border-radius: 8px; }
#studentsPage .table-container::-webkit-scrollbar-track { background: rgba(0,0,0,0.05); }

/* Global sabit yatay scroll (yalnızca öğrenciler sayfasında görünür) */
.students-scrollbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 16px;
    background: rgba(0,0,0,0.02);
    border-top: 1px solid rgba(0,0,0,0.05);
    display: none;
    z-index: 9998;
}
.students-scrollbar.active { display: block; }
.students-scrollbar .track {
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}
.students-scrollbar .spacer { height: 1px; }
.students-scrollbar .track::-webkit-scrollbar { height: 16px; }
.students-scrollbar .track::-webkit-scrollbar-thumb { background: rgba(102,126,234,0.6); border-radius: 8px; }
.students-scrollbar .track::-webkit-scrollbar-track { background: rgba(0,0,0,0.06); }
#classicStudentsTable th:nth-child(1),
#classicStudentsTable td:nth-child(1) {
    position: sticky;
    left: 0;
    z-index: 3;
    background: #fff;
}
#classicStudentsTable th:nth-child(1) {
    background: rgba(102, 126, 234, 0.1);
    z-index: 4;
}
/* Sticky sütun için sağ kenar ayrımı */
#classicStudentsTable td:nth-child(1) { box-shadow: 2px 0 0 rgba(0,0,0,0.03); }

/* Butonlar */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 233, 123, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #ff8f00);
    color: #212529;
    border: none;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 233, 123, 0.4);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
    z-index: 1000;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

/* Form Elemanları */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.form-checkbox:hover {
    background: #f8f9fa;
}

.form-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #667eea;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

/* Durum Badge'leri */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.completed {
    background: rgba(67, 233, 123, 0.2);
    color: #2d5a3d;
}

.status-badge.pending {
    background: rgba(255, 193, 7, 0.2);
    color: #856404;
}

.status-badge.overdue {
    background: rgba(255, 107, 107, 0.2);
    color: #721c24;
}

.payment-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.payment-status.paid {
    background: rgba(67, 233, 123, 0.2);
    color: #2d5a3d;
}

.payment-status.pending {
    background: rgba(255, 193, 7, 0.2);
    color: #856404;
}

.payment-status.overdue {
    background: rgba(255, 107, 107, 0.2);
    color: #721c24;
}

/* Tarih Başlıkları */
.date-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #667eea;
}

.date-header td {
    font-weight: 600;
    color: #667eea;
    padding: 15px 20px;
    border-bottom: 2px solid #dee2e6;
    font-size: 1.1rem;
}

.date-header i {
    margin-right: 8px;
    color: #667eea;
}

/* Ödemeler Tablosu Özel Stilleri */
#paymentsTable .date-header + tr {
    border-top: none;
}

#paymentsTable tr:not(.date-header):hover {
    background: rgba(102, 126, 234, 0.05);
    transform: translateX(2px);
    transition: all 0.2s ease;
}

/* Borç Takibi Özel Stilleri */
.debt-summary {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.debt-summary h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.debt-amount {
    font-size: 2rem;
    font-weight: 700;
    color: #ff6b6b;
    margin: 10px 0;
}

.debt-amount.paid {
    color: #43e97b;
}

.debt-amount.pending {
    color: #fa709a;
}

/* Empty State Stilleri */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    margin: 20px 0;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    color: #ddd;
    opacity: 0.7;
}

.empty-state h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
}

.empty-state p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto;
}

/* Öğrenci Detay Modal Stilleri */
.student-detail-modal {
    max-width: 800px;
    width: 95%;
}

.student-detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.student-detail-table th,
.student-detail-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.student-detail-table th {
    background: rgba(102, 126, 234, 0.1);
    font-weight: 600;
    color: #333;
}

.student-detail-table tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

/* Ödeme Butonları */
.payment-actions {
    display: flex;
    gap: 5px;
    align-items: center;
}

.payment-actions .btn {
    padding: 6px 10px;
    font-size: 12px;
    min-width: auto;
}

.payment-actions .btn i {
    font-size: 12px;
}

/* Ödeme Durumu Badge'leri */
.payment-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    display: inline-block;
    text-align: center;
    min-width: 80px;
}

.payment-status.paid {
    background: rgba(67, 233, 123, 0.2);
    color: #2d5a3d;
    border: 1px solid rgba(67, 233, 123, 0.3);
}

.payment-status.pending {
    background: rgba(255, 193, 7, 0.2);
    color: #856404;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.payment-status.overdue {
    background: rgba(255, 107, 107, 0.2);
    color: #721c24;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.payment-status.partial {
    background: rgba(102, 126, 234, 0.2);
    color: #2d3748;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

/* Ödeme Modal Stilleri */
.payment-modal .modal-content {
    max-width: 700px;
}

.payment-form .form-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Hızlı İşlem Butonları */
.quick-action-btn {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s ease;
    margin: 0 2px;
}

.quick-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.quick-action-btn.edit {
    background: #667eea;
    color: white;
}

.quick-action-btn.edit:hover {
    background: #5a67d8;
}

.quick-action-btn.success {
    background: #43e97b;
    color: white;
}

.quick-action-btn.success:hover {
    background: #38f9d7;
}

.quick-action-btn.danger {
    background: #ff6b6b;
    color: white;
}

.quick-action-btn.danger:hover {
    background: #ee5a24;
}

/* Ödeme Özeti Kartları */
.payment-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.payment-summary-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
}

.payment-summary-card.paid {
    border-left-color: #43e97b;
}

.payment-summary-card.pending {
    border-left-color: #fa709a;
}

.payment-summary-card.overdue {
    border-left-color: #ff6b6b;
}

.payment-summary-card h4 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.payment-summary-card .amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.payment-summary-card .count {
    font-size: 0.8rem;
    color: #888;
}

/* Gecikme Badge'leri */
.overdue-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    display: inline-block;
    text-align: center;
    min-width: 100px;
    border: 1px solid;
}

.overdue-badge.overdue {
    background: rgba(255, 107, 107, 0.2);
    color: #721c24;
    border-color: rgba(255, 107, 107, 0.3);
    animation: pulse 2s infinite;
}

.overdue-badge.today {
    background: rgba(255, 193, 7, 0.2);
    color: #856404;
    border-color: rgba(255, 193, 7, 0.3);
    font-weight: 600;
}

.overdue-badge.pending {
    background: rgba(102, 126, 234, 0.2);
    color: #2d3748;
    border-color: rgba(102, 126, 234, 0.3);
}

/* Gecikme animasyonu */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
    }
}

/* Borç Takibi Özel Stilleri */
.debt-table th {
    background: rgba(102, 126, 234, 0.1);
    font-weight: 600;
    color: #333;
    padding: 15px 12px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
}

.debt-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.debt-table tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

.debt-table .student-name {
    font-weight: 600;
    color: #333;
}

.debt-table .amount {
    font-weight: 600;
    text-align: right;
}

.debt-table .amount.debt {
    color: #ff6b6b;
}

.debt-table .amount.paid {
    color: #43e97b;
}

.debt-table .overdue-cell {
    text-align: center;
}

.debt-table .status-cell {
    text-align: center;
}

.debt-table .actions-cell {
    text-align: center;
    white-space: nowrap;
}

.debt-table .actions-cell .btn {
    margin: 0 2px;
    padding: 6px 10px;
    font-size: 12px;
}

/* Gecikme Durumu Renk Kodlaması */
.overdue-badge.critical {
    background: rgba(220, 53, 69, 0.2);
    color: #721c24;
    border-color: rgba(220, 53, 69, 0.3);
    animation: pulse 1s infinite;
}

.overdue-badge.warning {
    background: rgba(255, 193, 7, 0.2);
    color: #856404;
    border-color: rgba(255, 193, 7, 0.3);
}

.overdue-badge.info {
    background: rgba(23, 162, 184, 0.2);
    color: #0c5460;
    border-color: rgba(23, 162, 184, 0.3);
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }
    
    .sidebar:hover {
        width: 200px;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .date-header td {
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    .debt-amount {
        font-size: 1.5rem;
    }
    
    .empty-state {
        padding: 40px 15px;
    }
    
    .empty-state i {
        font-size: 48px;
    }
    
    .empty-state h3 {
        font-size: 1.3rem;
    }

    .payment-actions {
        flex-direction: column;
        gap: 3px;
    }
    
    .payment-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .payment-summary {
        grid-template-columns: 1fr;
    }
    
    .payment-summary-card {
        padding: 12px;
    }
    
    .payment-summary-card .amount {
        font-size: 1.3rem;
    }

    .overdue-badge {
        font-size: 11px;
        padding: 3px 8px;
        min-width: 80px;
    }
    
    .debt-table th,
    .debt-table td {
        padding: 8px 6px;
        font-size: 13px;
    }
    
    .debt-table .actions-cell .btn {
        padding: 4px 8px;
        font-size: 11px;
        margin: 1px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 50px;
    }
    
    .sidebar-btn {
        padding: 10px;
    }
    
    .sidebar-btn i {
        font-size: 18px;
    }
    
    .card-value {
        font-size: 24px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .date-header td {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .debt-amount {
        font-size: 1.3rem;
    }
    
    .empty-state {
        padding: 30px 10px;
    }
    
    .empty-state i {
        font-size: 40px;
    }
    
    .empty-state h3 {
        font-size: 1.2rem;
    }

    .payment-actions .btn {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .payment-status {
        font-size: 11px;
        padding: 3px 8px;
        min-width: 70px;
    }
    
    .payment-summary-card {
        padding: 10px;
    }
    
    .payment-summary-card .amount {
        font-size: 1.2rem;
    }

    .overdue-badge {
        font-size: 10px;
        padding: 2px 6px;
        min-width: 70px;
    }
    
    .debt-table th,
    .debt-table td {
        padding: 6px 4px;
        font-size: 12px;
    }
    
    .debt-table .actions-cell .btn {
        padding: 3px 6px;
        font-size: 10px;
    }
}

/* Özel Animasyonlar */
.fade-in {
    animation: fadeIn 0.5s ease;
}

.slide-up {
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

.p-10 { padding: 10px; }
.p-20 { padding: 20px; }
.p-30 { padding: 30px; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }

.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* Toast / Snackbar */
.toast-container {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 99999;
}

.toast {
    min-width: 260px;
    max-width: 420px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    color: #fff;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    opacity: 0;
    transform: translateY(10px);
    animation: toast-in 200ms ease-out forwards;
}

.toast.toast-success { background: linear-gradient(135deg, var(--color-success), #059669); }
.toast.toast-error { background: linear-gradient(135deg, var(--color-danger), #dc2626); }
.toast.toast-warning { background: linear-gradient(135deg, var(--color-warning), #d97706); }
.toast.toast-info { background: linear-gradient(135deg, var(--color-info), #2563eb); }

.toast .toast-title { font-weight: 700; margin-bottom: 2px; }
.toast .toast-message { opacity: 0.95; }

@keyframes toast-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(10px); }
}

/* Harcama Yönetimi Stilleri */
.expenses-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.expenses-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.expenses-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.expenses-table tr:hover {
    background: #f8f9ff;
}

.expenses-table .amount.expense {
    color: #ef4444;
    font-weight: 600;
}

.category-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
    display: inline-block;
}

.category-badge.personel {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.category-badge.mutfak {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.category-badge.demirbas {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.category-badge.diger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.btn-sm {
    padding: 6px 10px;
    font-size: 0.8rem;
}

/* Raporlar Sayfası Stilleri */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.report-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.report-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 20px;
}

.report-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
}

.report-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.report-card div {
    position: relative;
    z-index: 1;
}

/* Gelir kartı */
.report-card:nth-child(1) {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.report-card:nth-child(1):hover {
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.4);
}

/* Gider kartı */
.report-card:nth-child(2) {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
}

.report-card:nth-child(2):hover {
    box-shadow: 0 20px 40px rgba(239, 68, 68, 0.4);
}

/* Net kar kartı */
.report-card:nth-child(3) {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.report-card:nth-child(3):hover {
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.4);
}

/* Turuncu kart (kalan tutar için) */
.report-card.orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
}

.report-card.orange:hover {
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.4);
}

/* Ağustos Ayı Özel Kartları */
.august-card.august-expected {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.august-card.august-expected:hover {
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.4);
}

.august-card.august-collected {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
}

.august-card.august-collected:hover {
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.4);
}

.august-card.august-remaining {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

.august-card.august-remaining:hover {
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.4);
}

/* Raporlar sayfası tabloları */
#reportsPage .table-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 25px;
}

#reportsPage .table-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

#reportsPage table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

#reportsPage th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    padding: 15px 20px;
    text-align: left;
    border-bottom: 2px solid #e9ecef;
    font-size: 0.95rem;
}

#reportsPage td {
    padding: 15px 20px;
    border-bottom: 1px solid #f1f3f4;
    color: #495057;
}

#reportsPage tr:hover {
    background: #f8f9fa;
    transition: background 0.2s ease;
}

#reportsPage tr:last-child td {
    border-bottom: none;
}

/* Ödeme yöntemi badge */
.payment-method-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
}

/* Kategori badge */
.category-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
}

.category-badge.personel {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.category-badge.mutfak {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.category-badge.demirbas {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.category-badge.diger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

/* Ay seçici ve butonlar */
#reportsPage .page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

#reportsPage .page-title {
    color: white;
    margin-bottom: 20px;
    font-size: 2.2rem;
    font-weight: 700;
}

#reportsPage input[type="month"] {
    background: white;
    border: none;
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 1rem;
    color: #495057;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#reportsPage .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

#reportsPage .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Responsive tasarım */
@media (max-width: 768px) {
    .reports-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .report-card {
        padding: 20px;
    }
    
    #reportsPage .page-header {
        padding: 20px;
    }
    
    #reportsPage .page-title {
        font-size: 1.8rem;
    }
    
    #reportsPage th,
    #reportsPage td {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

/* Detaylı Borç Takibi Stilleri */
.detailed-debt-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.detailed-debt-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

.detailed-debt-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.detailed-debt-table tr:hover {
    background: #f8f9ff;
}

/* Öğrenci Bilgileri */
.student-info-detailed {
    min-width: 200px;
}

.student-name-main {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.student-details-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.8rem;
    color: #666;
}

.student-details-list span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.student-details-list i {
    width: 12px;
    color: #667eea;
}

/* Alacak Durumu */
.debt-status {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.debt-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.debt-label {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

.debt-amount {
    font-weight: 600;
    font-size: 0.9rem;
}

.debt-amount.total {
    color: #667eea;
}

.debt-amount.paid {
    color: #10b981;
}

.debt-amount.remaining {
    color: #ef4444;
}

/* Ödeme Geçmişi */
.payment-history {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.last-payment {
    font-size: 0.8rem;
    color: #666;
}

.payment-methods-used {
    font-size: 0.8rem;
    color: #666;
}

.payment-methods-used strong {
    color: #333;
    font-size: 0.75rem;
    display: block;
    margin-bottom: 4px;
}

.payment-methods-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
}

.payment-method-badge-small {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 500;
    display: inline-block;
}

.payment-count {
    display: flex;
    justify-content: center;
}

.payment-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.no-payment {
    display: flex;
    justify-content: center;
}

.no-payment-badge {
    background: #f3f4f6;
    color: #6b7280;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Kalan Borç */
.remaining-debt {
    text-align: center;
}

.remaining-amount {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.remaining-amount.debt {
    color: #ef4444;
}

.remaining-amount.paid {
    color: #10b981;
}

.debt-percentage {
    font-size: 0.7rem;
    color: #666;
}

/* Gecikme Durumu */
.overdue-status {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.overdue-details {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

.overdue-month {
    background: #fef3c7;
    color: #92400e;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: 500;
}

.overdue-more {
    background: #fee2e2;
    color: #991b1b;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: 500;
}

.no-overdue {
    display: flex;
    justify-content: center;
}

.no-overdue-badge {
    background: #d1fae5;
    color: #065f46;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* İşlemler */
.debt-actions {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.debt-actions .btn {
    padding: 6px 8px;
    font-size: 0.8rem;
}

/* Borç Detay Modal Stilleri */
.debt-details-modal {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.debt-details-content {
    padding: 20px;
}

.debt-summary-section {
    margin-bottom: 30px;
}

.debt-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.debt-summary-card {
    background: #f8f9ff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #e0e7ff;
}

.summary-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.summary-icon.total {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.summary-icon.paid {
    background: linear-gradient(135deg, #10b981, #059669);
}

.summary-icon.remaining {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.summary-icon.overdue {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.summary-info {
    flex: 1;
}

.summary-label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 4px;
}

.summary-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
}

/* Aylık Ödemeler Bölümü */
.monthly-payments-section {
    margin-bottom: 30px;
}

.monthly-payments-section h4 {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.monthly-payments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.monthly-payment-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.monthly-payment-card.paid {
    border-color: #10b981;
    background: #f0fdf4;
}

.monthly-payment-card.overdue {
    border-color: #ef4444;
    background: #fef2f2;
}

.monthly-payment-card.pending {
    border-color: #f59e0b;
    background: #fffbeb;
}

.month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.month-name {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.month-status {
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 500;
}

.month-status.paid {
    background: #d1fae5;
    color: #065f46;
}

.month-status.overdue {
    background: #fee2e2;
    color: #991b1b;
}

.month-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.month-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.month-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}

.payment-info,
.overdue-info,
.pending-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.payment-date,
.overdue-days,
.due-date {
    color: #666;
}

.payment-amount {
    font-weight: 600;
    color: #10b981;
}

/* Ödeme Geçmişi Bölümü */
.payment-history-section {
    margin-bottom: 20px;
}

.payment-history-section h4 {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.payment-history-list {
    max-height: 300px;
    overflow-y: auto;
}

.payment-history-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 2fr;
    gap: 15px;
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

.payment-history-item:last-child {
    border-bottom: none;
}

.payment-date {
    font-weight: 500;
    color: #333;
}

.payment-amount {
    font-weight: 600;
    color: #10b981;
}

.payment-method {
    color: #666;
    font-size: 0.9rem;
}

.payment-note {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

.no-payment-history {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

/* Ödeme Geçmişi Modal Stilleri */
.payment-history-modal {
    max-width: 900px;
}

.payment-history-content {
    padding: 20px;
}

.history-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9ff;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.history-total,
.history-count {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.total-label,
.count-label {
    font-size: 0.8rem;
    color: #666;
}

.total-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: #10b981;
}

.count-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #667eea;
}

/* Ödeme Yöntemleri Özeti */
.payment-methods-summary {
    margin-bottom: 30px;
}

.payment-methods-summary h4 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.payment-method-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #e0e7ff;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.payment-method-card:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.method-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.method-info {
    flex: 1;
}

.method-name {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.method-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.method-count {
    color: #667eea;
    font-weight: 500;
}

.method-total {
    color: #10b981;
    font-weight: 600;
}

/* Ödeme Yöntemi Rozetleri */
.payment-method-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    display: inline-block;
}

.payment-method-badge-table {
    background: #f8f9ff;
    color: #667eea;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #e0e7ff;
}

.payment-method-badge-table i {
    font-size: 0.9rem;
}

.payment-method-info {
    display: flex;
    justify-content: center;
    margin: 4px 0;
}

.payment-history-table {
    overflow-x: auto;
}

.payment-history-table h4 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.payment-history-table table {
    width: 100%;
    border-collapse: collapse;
}

.payment-history-table th {
    background: #f8f9ff;
    color: #333;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 2px solid #e0e7ff;
}

.payment-history-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.payment-history-table .amount {
    font-weight: 600;
    color: #10b981;
}

/* Modal Actions */
.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 20px;
    border-top: 1px solid #f0f0f0;
    background: #f8f9ff;
}

/* Responsive Tasarım - Borç Takibi */
@media (max-width: 1024px) {
    .debt-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .monthly-payments-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .detailed-debt-table {
        font-size: 0.8rem;
    }
    
    .detailed-debt-table th,
    .detailed-debt-table td {
        padding: 10px 8px;
    }
    
    .student-details-list {
        font-size: 0.7rem;
    }
    
    .debt-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    
    .payment-history-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .debt-summary-grid {
        grid-template-columns: 1fr;
    }
    
    .monthly-payments-grid {
        grid-template-columns: 1fr;
    }
    
    .history-summary {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .debt-details-modal {
        margin: 10px;
        max-width: calc(100vw - 20px);
    }
    
    .debt-summary-card {
        padding: 15px;
    }
    
    .summary-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .summary-value {
        font-size: 1.1rem;
    }
    
    .monthly-payment-card {
        padding: 12px;
    }
    
    .payment-history-item {
        padding: 8px;
    }
} 

/* Modern Grafik Stilleri */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.chart-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.chart-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.chart-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-title i {
    font-size: 1.1rem;
    color: #667eea;
}

.chart-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-top: 4px;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

.chart-container canvas {
    border-radius: 8px;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #555;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
}

.chart-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.chart-stat {
    text-align: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.chart-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.chart-stat-label {
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Özel grafik stilleri */
.donut-chart-container {
    position: relative;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.donut-chart-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.donut-total {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.donut-label {
    font-size: 0.9rem;
    color: #666;
}

.line-chart-container {
    height: 280px;
}

.bar-chart-container {
    height: 320px;
}

.polar-chart-container {
    height: 300px;
}

/* Responsive grafik stilleri */
@media (max-width: 1024px) {
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .chart-card {
        padding: 20px;
    }
    
    .chart-container {
        height: 250px;
    }
    
    .chart-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .chart-container {
        height: 200px;
    }
    
    .chart-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .chart-stat {
        padding: 10px;
    }
    
    .chart-stat-value {
        font-size: 1.3rem;
    }
    
    .donut-chart-container {
        height: 200px;
    }
    
    .donut-total {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .chart-card {
        padding: 16px;
    }
    
    .chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .chart-title {
        font-size: 1.1rem;
    }
    
    .chart-container {
        height: 180px;
    }
    
    .chart-legend {
        gap: 8px;
    }
    
    .legend-item {
        font-size: 0.8rem;
    }
} 

/* SMS Logları Stilleri */
.sms-logs-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
}

.sms-logs-table th {
    background: linear-gradient(135deg, #3b82f6, #10b981);
    color: white;
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
}

.sms-logs-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.sms-logs-table tr:hover {
    background-color: #f8f9fa;
}

.sms-logs-table tr:last-child td {
    border-bottom: none;
}

.student-sms-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.student-sms-info .student-name {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.student-sms-info .parent-name {
    font-size: 0.9rem;
    color: #666;
}

.sms-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sms-text {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.4;
    max-width: 300px;
}

.sms-details {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.payment-amount {
    color: #e74c3c;
    font-weight: 600;
}

.unpaid-months {
    color: #f39c12;
    font-weight: 600;
    background: rgba(243, 156, 18, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.due-date {
    color: #f59e0b;
    font-weight: 500;
}

.month-name {
    color: #9b59b6;
    font-weight: 500;
}

.phone-number {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #333;
}

.phone-number i {
    color: #3b82f6;
    font-size: 0.8rem;
}

.sms-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.sms-status.sent {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.sms-status.pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.sms-status.failed {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.sms-date {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sms-date .date {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

.sms-date .time {
    font-size: 0.8rem;
    color: #666;
}

.sms-actions {
    display: flex;
    gap: 8px;
}

.sms-actions .btn {
    padding: 6px 10px;
    font-size: 0.8rem;
}

/* Responsive SMS logları */
@media (max-width: 1024px) {
    .sms-logs-table {
        font-size: 0.9rem;
    }
    
    .sms-logs-table th,
    .sms-logs-table td {
        padding: 12px 8px;
    }
    
    .sms-text {
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .sms-logs-table {
        display: block;
        overflow-x: auto;
    }
    
    .sms-logs-table th,
    .sms-logs-table td {
        min-width: 120px;
        padding: 10px 6px;
    }
    
    .sms-text {
        max-width: 150px;
        font-size: 0.8rem;
    }
    
    .sms-details {
        flex-direction: column;
        gap: 4px;
    }
    
    .sms-actions {
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .sms-logs-table th,
    .sms-logs-table td {
        min-width: 100px;
        padding: 8px 4px;
        font-size: 0.8rem;
    }
    
    .sms-text {
        max-width: 120px;
        font-size: 0.75rem;
    }
    
    .student-sms-info .student-name {
        font-size: 0.9rem;
    }
    
    .student-sms-info .parent-name {
        font-size: 0.8rem;
    }
}

/* SMS Yönetimi Container */
.sms-management-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.sms-send-section,
.sms-preview-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.sms-send-header,
.sms-preview-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.sms-send-header h3,
.sms-preview-header h3 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.sms-send-header i,
.sms-preview-header i {
    color: #667eea;
    margin-right: 8px;
}

.sms-send-header p,
.sms-preview-header p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Öğrenci SMS Listesi */
.student-sms-grid {
    display: grid;
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.student-sms-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.student-sms-card:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.student-sms-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #f8f9ff, #e8ecff);
}

.student-sms-card.has-unpaid {
    border-color: #ff6b6b;
    background: linear-gradient(135deg, #fff5f5, #ffe8e8);
}

.student-sms-card.has-unpaid:hover {
    background: linear-gradient(135deg, #ffe0e0, #ffd0d0);
}

.student-sms-info {
    flex: 1;
}

.student-sms-info .student-name {
    font-weight: 600;
    color: #333;
    font-size: 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.student-sms-info .student-name i {
    color: #667eea;
    font-size: 14px;
}

.student-details {
    display: flex;
    gap: 15px;
    margin-top: 8px;
    font-size: 12px;
    color: #666;
}

.student-details span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.student-details i {
    color: #667eea;
    font-size: 10px;
}

.payment-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 8px;
}

.payment-badge.unpaid {
    background: rgba(255, 107, 107, 0.2);
    color: #dc3545;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.payment-status-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.payment-status-info span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
}

.monthly-fee {
    color: #28a745;
}

.monthly-fee i {
    color: #28a745;
    font-size: 10px;
}

.unpaid-amount {
    color: #dc3545;
}

.unpaid-amount i {
    color: #dc3545;
    font-size: 10px;
}

.payment-status-good {
    color: #28a745;
}

.payment-status-good i {
    color: #28a745;
    font-size: 10px;
}

.parent-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.parent-name,
.parent-phone {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #666;
}

.parent-name i,
.parent-phone i {
    margin-right: 5px;
    color: #667eea;
    width: 12px;
}

.student-sms-actions {
    margin-left: 15px;
}

.select-student-btn {
    padding: 8px 15px;
    font-size: 12px;
}

/* SMS Önizleme */
.sms-preview-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.preview-recipient {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.recipient-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.recipient-name {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.recipient-phone {
    color: #666;
    font-size: 14px;
}

.sms-message-preview {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #e9ecef;
    border-bottom: 1px solid #dee2e6;
}

.message-label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.message-length {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.message-content {
    padding: 15px;
    min-height: 120px;
    max-height: 200px;
    overflow-y: auto;
    line-height: 1.5;
    color: #333;
    font-size: 14px;
    border: none;
    outline: none;
    background: white;
    resize: none;
}

.message-content:focus {
    background: #fff;
    box-shadow: inset 0 0 0 2px #667eea;
}

.sms-actions {
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.btn-send-sms {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
}

.btn-send-sms:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Boş öğrenci durumu */
.empty-students {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-students i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
}

.empty-students h4 {
    margin-bottom: 10px;
    color: #333;
}

/* SMS Logları Bölümü */
.sms-logs-section {
    margin-top: 40px;
}

/* Responsive SMS Yönetimi */
@media (max-width: 1024px) {
    .sms-management-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .sms-send-section,
    .sms-preview-section {
        padding: 20px;
    }
    
    .student-sms-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .student-sms-actions {
        margin-left: 0;
        width: 100%;
    }
    
    .select-student-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .sms-send-section,
    .sms-preview-section {
        padding: 15px;
    }
    
    .sms-send-header h3,
    .sms-preview-header h3 {
        font-size: 16px;
    }
    
    .student-sms-info .student-name {
        font-size: 14px;
    }
    
    .parent-name,
    .parent-phone {
        font-size: 12px;
    }
    
    .message-content {
        min-height: 100px;
        font-size: 13px;
    }
}

/* Twilio Ayarları */
.twilio-status {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}

.status-indicator.active {
    background: #e8f5e8;
    color: #388e3c;
    border: 1px solid #4caf50;
}

.status-indicator.inactive {
    background: #ffebee;
    color: #d32f2f;
    border: 1px solid #f44336;
}

.twilio-info {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.twilio-info h4 {
    margin: 0 0 15px 0;
    color: #3b82f6;
    display: flex;
    align-items: center;
    gap: 8px;
}

.twilio-info ol {
    margin: 0;
    padding-left: 20px;
}

.twilio-info li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.twilio-info a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.twilio-info a:hover {
    text-decoration: underline;
} 

/* Öğrenci Modal Form Stilleri */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #f7f7fa;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #667eea;
    background: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 0;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
    cursor: pointer;
}

.form-checkbox span {
    font-size: 0.95rem;
    color: #333;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Modal içeriği için responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* Öğrenci modal özel stilleri */
.student-detail-modal .modal-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.student-detail-modal .student-details-list {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #dee2e6;
}

.student-detail-modal .student-details-list span {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #495057;
}

.student-detail-modal .student-details-list strong {
    color: #333;
    font-weight: 600;
}

/* Öğrenci detay tablosu */
.student-detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.student-detail-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

.student-detail-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f1f3f4;
    color: #495057;
    font-size: 0.9rem;
}

.student-detail-table tr:hover {
    background: #f8f9fa;
}

.student-detail-table tr:last-child td {
    border-bottom: none;
}

/* Boş durum mesajı */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #495057;
}

/* Rapor kartları metinleri beyaz */
.report-card,
.report-card *,
.report-card h3,
.report-card div,
.report-card span,
.report-card p {
    color: #fff !important;
}

/* Net kar negatifse kırmızı, pozitifse yeşil ama yazı rengi yine beyaz */
.report-card .net-profit-negative {
    color: #fff !important;
    background: none;
}
.report-card .net-profit-positive {
    color: #fff !important;
    background: none;
}

.badge-modern {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px 6px 14px;
  border-radius: 18px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  margin: 0 2px;
  border: 2px solid transparent;
  transition: background 0.2s, border 0.2s;
  min-width: 110px;
  justify-content: center;
}
.badge-modern .badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  margin-right: 4px;
}
.badge-modern.badge-success {
  background: linear-gradient(90deg, #16c784 0%, #11998e 100%);
  color: #fff;
  border-color: #16c784;
  box-shadow: 0 2px 12px rgba(22,199,132,0.18);
}
.badge-modern.badge-danger {
  background: linear-gradient(90deg, #ff4e50 0%, #f44336 100%);
  color: #fff;
  border-color: #ff4e50;
  box-shadow: 0 2px 12px rgba(255,78,80,0.18);
}

.payment-row-paid {
  background: #e6f9ed !important;
}
.payment-row-unpaid {
  background: #ffeaea !important;
}

/* Kısmi ödeme stilleri */
.payment-row-partial {
  background: #eff6ff !important;
  border-left: 4px solid #3b82f6;
}

/* Kısmi ödeme için özel stiller */
.partial-payment-info {
  background-color: #eff6ff;
  border: 1px solid #3b82f6;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.partial-payment-info h4 {
  color: #1e40af;
  margin-bottom: 10px;
  font-size: 16px;
}

.partial-payment-info .info-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

.partial-payment-info .info-row:last-child {
  margin-bottom: 0;
}

.partial-payment-info .info-label {
  font-weight: 600;
  color: #374151;
}

.partial-payment-info .info-value {
  color: #1f2937;
}

.partial-payment-info .remaining-amount {
  color: #dc2626;
  font-weight: 600;
}

.partial-payment-info .paid-amount {
  color: #059669;
  font-weight: 600;
}

/* Ödeme türü seçici stilleri */
.payment-type-selector {
  margin-bottom: 20px;
}

.payment-type-option {
  display: flex;
  align-items: center;
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.payment-type-option:hover {
  border-color: #3b82f6;
  background-color: #eff6ff;
}

.payment-type-option.selected {
  border-color: #3b82f6;
  background-color: #eff6ff;
}

.payment-type-option input[type="radio"] {
  margin-right: 10px;
}

.payment-type-option .option-label {
  font-weight: 600;
  color: #374151;
}

.payment-type-option .option-description {
  font-size: 14px;
  color: #6b7280;
  margin-left: 10px;
}

/* Kısmi ödeme tutar alanı */
.partial-amount-group {
  background-color: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.partial-amount-group label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  display: block;
}

.partial-amount-group input[type="number"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 16px;
}

.partial-amount-group input[type="number"]:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.partial-amount-group small {
  display: block;
  margin-top: 5px;
  color: #6b7280;
  font-size: 12px;
}

/* Ödeme durumu badge'leri */
.payment-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.payment-status-badge.full-paid {
  background-color: #dcfce7;
  color: #166534;
}

.payment-status-badge.partial-paid {
  background-color: #dbeafe;
  color: #1e40af;
}

.payment-status-badge.unpaid {
  background-color: #fef2f2;
  color: #dc2626;
}

/* Ödeme detayları için tooltip benzeri stil */
.payment-details-tooltip {
  position: relative;
  cursor: help;
}

.payment-details-tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #1f2937;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 1000;
  margin-bottom: 5px;
}

.payment-details-tooltip:hover::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1f2937;
  margin-bottom: -5px;
}

/* Badge modern stilleri için kısmi ödeme */
.badge-modern.badge-warning {
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  border-color: #f59e0b;
  box-shadow: 0 2px 12px rgba(245,158,11,0.18);
}

/* Logo responsive tasarım */
@media (max-width: 768px) {
  .login-logo {
    width: 160px;
  }

  .fallback-logo .logo-graphic {
    width: 70px;
    height: 50px;
  }

  .fallback-logo .logo-title {
    font-size: 1.6rem;
  }

  .fallback-logo .logo-subtitle {
    font-size: 0.8rem;
    padding: 3px 10px;
  }

  .login-header h1 {
    font-size: 1.8rem;
  }

  .login-header p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .login-logo {
    width: 140px;
  }

  .fallback-logo .logo-graphic {
    width: 60px;
    height: 45px;
  }

  .fallback-logo .logo-title {
    font-size: 1.4rem;
  }

  .fallback-logo .logo-subtitle {
    font-size: 0.75rem;
    padding: 2px 8px;
  }
  
  .login-header h1 {
    font-size: 1.5rem;
  }
  
  .login-header p {
    font-size: 0.9rem;
  }
}

/* Şifre Doğrulama Modal Stilleri */
.password-verification-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
}

.password-verification-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.password-verification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px 16px 0 0;
  color: white;
}

.password-verification-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.password-verification-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background-color: rgba(255, 255, 255, 0.1);
}

.password-verification-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.password-verification-body {
  padding: 24px;
}

.password-verification-info {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.password-verification-info div {
  margin-bottom: 8px;
}

.password-verification-info div:last-child {
  margin-bottom: 0;
}

.password-verification-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #ffffff;
  box-sizing: border-box;
}

.password-verification-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

.password-verification-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: flex-end;
}

.password-verification-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.password-verification-btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.password-verification-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.password-verification-btn-secondary {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.password-verification-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* Responsive tasarım */
@media (max-width: 480px) {
  .password-verification-content {
    width: 95%;
    margin: 10px;
  }
  
  .password-verification-header {
    padding: 16px 20px 12px;
  }
  
  .password-verification-title {
    font-size: 1.1rem;
  }
  
  .password-verification-body {
    padding: 20px;
  }
  
  .password-verification-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .password-verification-btn {
    width: 100%;
    padding: 14px 20px;
  }
}