/* General Styles */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #4776E6;
    --primary-light: #e8f0ff;
    --primary-dark: #3264d0;
    --secondary-color: #FF5E62;
    --secondary-light: #fff5f5;
    --text-color: #333;
    --text-light: #6c757d;
    --bg-color: #f8f9fa;
    --border-radius: 12px;
    --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, #4776E6, #8E54E9);
    --gradient-secondary: linear-gradient(135deg, #FF5E62, #FF9966);
    --box-shadow-hover: 0 10px 30px rgba(71, 118, 230, 0.2);
    --box-shadow-light: 0 5px 15px rgba(0, 0, 0, 0.05);
    --round-button-radius: 50%;
    --circle-dimension: 50px;
}

body, html {
    background-color: var(--bg-color) !important;
    color: var(--text-color) !important;
    font-family: 'Nunito', 'Segoe UI', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    font-weight: 400;
    width: 100%;
    max-width: 100vw;
}

* {
    box-sizing: border-box;
}

/* YÜKLEME EKRANI STILLERİ */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #f7f9fc;
    z-index: 10000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0s 0.5s;
}

.loading-hidden {
    opacity: 0 !important;
    pointer-events: none;
    visibility: hidden !important;
    transition-delay: 0s !important;
}

/* İçeriği başlangıçta gizle, JS ile göstereceğiz */
#content {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0s 0.5s;
}

.content-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity 0.5s ease, visibility 0s;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Wrapper */
.wrapper {
    width: 100%;
    max-width: 100vw;
    position: relative;
    overflow-x: hidden;
}

/* Content */
#content {
    width: 100%;
    max-width: 100vw;
    transition: var(--transition);
    margin-left: 0;
    margin-top: 0;
    padding-top: 0;
    background-color: #f7f9fc !important;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}


/* Make all headings use proper font weights */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

h2 {
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

h5 {
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: -0.3px;
}

/* Adjust font weights for specific elements */
.btn {
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: 0 4px 12px rgba(71, 118, 230, 0.3);
}

.btn-primary:hover {
    background: var(--gradient-primary);
    box-shadow: 0 6px 20px rgba(71, 118, 230, 0.4);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border-width: 2px;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Background Accents */
.accent-circle {
    position: fixed;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.05;
    filter: blur(60px);
    z-index: -1;
}

.accent-circle-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    left: -200px;
    animation: pulse 20s ease-in-out infinite alternate;
    will-change: transform, opacity;
}

.accent-circle-2 {
    width: 500px;
    height: 500px;
    bottom: -100px;
    right: -100px;
    animation: pulse 25s ease-in-out infinite alternate-reverse;
    will-change: transform, opacity;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.05; }
    50% { transform: scale(1.02); opacity: 0.06; }
}

/* Calendar Icon */
.calendar-icon {
    width: 90px;
    height: 90px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    animation: scaleOnly 3s infinite;
    box-shadow: 0 12px 30px rgba(71, 118, 230, 0.35);
    font-size: 2.8rem;
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.3);
    will-change: transform;
}

.calendar-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    z-index: -1;
    opacity: 0.6;
    filter: blur(10px);
}

.calendar-icon i {
    font-size: 2.5rem;
    color: white;
    position: relative;
    z-index: 2;
}

.calendar-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    z-index: -2;
    opacity: 0.4;
    filter: blur(15px);
}

@keyframes scaleOnly {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Card Styling */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    overflow-x: hidden;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: 100%;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(71, 118, 230, 0.15);
    border-color: rgba(71, 118, 230, 0.2);
}

.glass-card .card-body {
    padding: 2rem;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Result Form Container */
.result-form-container {
    margin: 0 10px;
}

.result-form-container .card {
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.result-form-container .card:hover {
    box-shadow: 0 8px 30px rgba(71, 118, 230, 0.12);
}

.result-form-container .form-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.result-form-container .form-control {
    border-radius: 12px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    padding: 12px 16px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.8);
}

.result-form-container .form-control:hover {
    border-color: rgba(71, 118, 230, 0.3);
    background: rgba(255, 255, 255, 1);
}

.result-form-container .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(71, 118, 230, 0.15);
    background: rgba(255, 255, 255, 1);
    outline: none;
}

/* Subject Form Item */
.subject-form-item {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.6), rgba(255, 255, 255, 0.8));
    transition: all 0.3s ease;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.subject-form-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 250, 0.9));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.subject-form-item .remove-subject-btn {
    opacity: 0.7;
    transition: all 0.3s ease;
}

.subject-form-item .remove-subject-btn:hover {
    opacity: 1;
    transform: scale(1.15);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

/* Subjects Table */
#subjectsTable {
    margin-bottom: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    width: 100%;
    table-layout: fixed;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #555;
}

#subjectsTable thead th {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 12px 10px;
    vertical-align: middle;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: var(--text-color);
    border-bottom: 2px solid rgba(71, 118, 230, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
}

#subjectsTable tbody td {
    padding: 10px;
    vertical-align: middle;
    background: rgba(255, 255, 255, 0.6);
    transition: background 0.2s ease;
}

#subjectsTable tbody tr:hover td {
    background: rgba(71, 118, 230, 0.05);
}

#subjectsTable .form-control-sm {
    font-size: 0.9rem;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

#subjectsTable .form-control-sm:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(71, 118, 230, 0.1);
}

#subjectsTable .subject-net-display {
    font-size: 0.95rem;
    font-weight: 700;
}

#subjectsTable .remove-row-btn {
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

#subjectsTable .remove-row-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

/* Exam Subjects List */
.exam-subjects-list {
    padding: 12px;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.6), rgba(255, 255, 255, 0.8));
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.exam-subjects-list .table {
    margin-bottom: 0;
    font-size: 0.9rem;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    min-width: 100%;
}

.exam-subjects-list .table th {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 10px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 2px solid rgba(71, 118, 230, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
}

.exam-subjects-list .table td {
    padding: 10px;
    vertical-align: middle;
    background: rgba(255, 255, 255, 0.8);
    transition: background 0.2s ease;
}

.exam-subjects-list .table tbody tr:hover td {
    background: rgba(71, 118, 230, 0.05);
}

/* Statistics Container */
.statistics-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 250, 0.95));
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin: 0 10px 30px 10px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 32px;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.3);
    flex: 1;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    opacity: 0;
    transition: all 0.3s ease;
}

.stat-item.completed::before {
    background: linear-gradient(135deg, #10B981, #34D399);
    opacity: 1;
}

.stat-item.remaining::before {
    background: linear-gradient(135deg, #F59E0B, #FBBF24);
    opacity: 1;
}

.stat-item.progress::before {
    background: linear-gradient(135deg, #6366F1, #818CF8);
    opacity: 1;
}

.stat-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: rgba(71, 118, 230, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-icon {
    width: 55px;
    height: 55px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    position: relative;
    overflow: hidden;
}

.stat-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    filter: blur(8px);
    opacity: 0.5;
    transform: scale(1.2);
}

.stat-icon.completed {
    background: linear-gradient(135deg, #10B981, #34D399);
    color: white;
}

.stat-icon.remaining {
    background: linear-gradient(135deg, #F59E0B, #FBBF24);
    color: white;
}

.stat-icon.progress {
    background: linear-gradient(135deg, #6366F1, #818CF8);
    color: white;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1;
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 300;
}

/* Subject Filters */
#subjectFilters {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 10px;
}

#subjectFilters .form-check {
    margin-bottom: 0;
    flex-shrink: 0;
}

/* Charts Container */
.charts-container {
    margin: 0 10px;
    width: calc(100% - 20px);
    overflow-x: hidden;
}

.charts-container .card {
    margin-bottom: 20px;
    overflow: hidden;
    width: 100%;
}

.charts-container .card-body {
    overflow-x: hidden;
    width: 100%;
}

.charts-container canvas {
    max-height: 400px !important;
    min-height: 300px !important;
    max-width: 100% !important;
}

/* Chart Container */
#totalNetChartContainer,
#subjectNetChartContainer {
    position: relative;
    width: 100% !important;
    height: 400px;
    min-height: 300px;
    max-height: 400px;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

#totalNetChartContainer canvas,
#subjectNetChartContainer canvas {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* Calendar Container */
.calendar-container {
    margin: 0 10px;
    width: calc(100% - 20px);
    overflow-x: hidden;
}

/* Container Fluid */
.container-fluid {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 0;
    margin-top: 0;
}

.container-fluid .row {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

.container-fluid .col-12 {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    overflow-x: hidden;
}

/* Results Calendar */
.results-calendar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    min-height: 200px;
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
}

.result-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 250, 0.95));
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 5px solid var(--primary-color);
    min-height: 200px;
}

.result-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.result-item:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 12px 32px rgba(71, 118, 230, 0.15);
    border-color: rgba(71, 118, 230, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.result-item:hover::before {
    opacity: 1;
}

.result-item-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    padding-right: 45px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.result-subject {
    font-weight: 500;
    color: var(--primary-color);
    background: var(--primary-light);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    max-width: calc(100% - 50px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 1;
}

.result-date {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
    flex-shrink: 0;
}

.result-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.result-detail-item {
    text-align: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
}

.result-detail-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.result-detail-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}

.result-detail-value.correct {
    color: #10B981;
}

.result-detail-value.wrong {
    color: #EF4444;
}

.result-detail-value.blank {
    color: #6B7280;
}

.result-net {
    text-align: center;
    padding: 18px;
    background: var(--gradient-primary);
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 1.4rem;
    margin-top: 12px;
    box-shadow: 0 4px 12px rgba(71, 118, 230, 0.3);
    position: relative;
    overflow: hidden;
}

.result-net::before {
    display: none;
}

.result-net-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.result-delete-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.2));
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #EF4444;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.25);
}

.result-delete-btn:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(239, 68, 68, 0.4));
    border-color: rgba(239, 68, 68, 0.5);
    transform: scale(1.2) rotate(90deg);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
}

.result-delete-btn:active {
    transform: scale(0.9) rotate(90deg);
}

/* Badge styling */
.badge {
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(71, 118, 230, 0.2);
    background: var(--gradient-primary);
    border: none;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

.badge i {
    margin-right: 6px;
    font-size: 1rem;
}

/* Animasyonlar */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-item {
    animation: slideIn 0.4s ease forwards;
    will-change: transform, opacity;
}

/* Media Queries */
@media (max-width: 1200px) {
    .results-calendar {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
        padding: 15px;
    }
    
    .result-form-container .form-control {
        font-size: 0.95rem;
    }
}

@media (max-width: 992px) {
    .results-calendar {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        padding: 15px;
        gap: 15px;
        max-height: 500px;
    }
    
    .statistics-container {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        margin: 0 5px 20px 5px;
    }

    .stat-item {
        padding: 15px 20px;
    }

    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
    }

    .stat-value {
        font-size: 1.6rem;
        font-weight: 500;
    }
    
    .glass-card .card-body {
        padding: 1.5rem;
    }
    
    .result-form-container {
        margin: 0 5px;
        width: calc(100% - 10px);
        overflow-x: hidden;
    }
    
    .result-form-container .card-body {
        padding: 1rem !important;
        overflow-x: hidden;
    }
    
    .result-form-container .table-responsive {
        overflow-x: visible !important;
        overflow-y: visible !important;
        margin: 0;
        padding: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .calendar-container,
    .charts-container {
        margin: 0 5px;
        width: calc(100% - 10px);
        overflow-x: hidden;
    }
    
    .charts-container .card {
        width: 100%;
        overflow: hidden;
    }
    
    .charts-container .card-body {
        padding: 1.25rem !important;
        overflow-x: hidden;
        width: 100%;
    }
    
    .charts-container canvas {
        max-height: 350px;
        min-height: 280px;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    #totalNetChartContainer,
    #subjectNetChartContainer {
        height: 350px !important;
        min-height: 280px;
        max-height: 350px;
        width: 100% !important;
        overflow: hidden;
        padding: 0;
        margin: 0;
    }
    
    #totalNetChartContainer canvas,
    #subjectNetChartContainer canvas {
        max-width: 100% !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    .result-item {
        padding: 15px;
        min-height: 180px;
    }
    
    .result-delete-btn {
        width: 28px;
        height: 28px;
        top: 8px;
        right: 8px;
    }
    
    .result-delete-btn i {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .small-info-alert {
        max-width: 100% !important;
        font-size: 0.8rem;
        padding: 6px 10px !important;
    }
    
    .small-info-alert .text-muted {
        font-size: 0.8rem;
    }
    
    .small-info-alert i {
        font-size: 0.8rem !important;
    }
    
    .results-calendar {
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 12px;
        max-height: 450px;
    }
    
    .result-item {
        padding: 12px;
        min-height: 160px;
    }
    
    .result-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 12px;
        padding-right: 40px;
        width: 100%;
        overflow-x: hidden;
    }
    
    .result-item {
        overflow-x: hidden;
        width: 100%;
    }
    
    .result-date {
        font-size: 1rem;
    }
    
    .result-subject {
        font-size: 0.85rem;
        padding: 4px 10px;
        max-width: calc(100% - 40px);
    }
    
    /* Form Tablosu Mobil */
    #subjectsTable {
        display: block;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }
    
    #subjectsTable thead {
        display: none;
    }
    
    #subjectsTable tbody {
        display: block;
        width: 100%;
    }
    
    #subjectsTable tbody tr {
        display: block;
        width: 100%;
        margin-bottom: 12px;
        padding: 12px;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 10px;
        border: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
    
    #subjectsTable tbody tr:last-child {
        margin-bottom: 0;
    }
    
    #subjectsTable tbody td {
        display: block;
        width: 100%;
        padding: 6px 0;
        border: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        text-align: left;
    }
    
    #subjectsTable tbody td:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    #subjectsTable tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-color);
        display: block;
        margin-bottom: 4px;
        font-size: 0.8rem;
    }
    
    #subjectsTable tbody td:first-child::before {
        content: "Ders Adı";
    }
    
    #subjectsTable tbody td:nth-child(2)::before {
        content: "Doğru";
    }
    
    #subjectsTable tbody td:nth-child(3)::before {
        content: "Yanlış";
    }
    
    #subjectsTable tbody td:nth-child(4)::before {
        content: "Boş";
    }
    
    #subjectsTable tbody td:nth-child(5)::before {
        content: "Net";
    }
    
    #subjectsTable tbody td:nth-child(5) .d-flex {
        display: block !important;
    }
    
    #subjectsTable .form-control-sm {
        font-size: 0.85rem;
        padding: 6px 10px;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    #subjectsTable .subject-net-display {
        font-size: 0.9rem;
        display: block;
        margin-bottom: 6px;
    }
    
    #subjectsTable .remove-row-btn {
        font-size: 0.7rem;
        padding: 5px 10px !important;
        width: 100%;
        margin-top: 0;
    }
    
    .table-responsive {
        overflow-x: visible !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        max-width: 100%;
    }
    
    /* Ders Filtreleri Mobil */
    #subjectFilters {
        gap: 8px !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }
    
    #subjectFilters .form-check {
        min-width: auto;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    #subjectFilters .form-check-label {
        font-size: 0.85rem;
    }
    
    /* Butonlar Mobil */
    .btn-sm {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    /* Grafik Başlık ve Butonlar */
    .d-flex.justify-content-between.align-items-center.flex-wrap {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }
    
    .d-flex.justify-content-between.align-items-center.flex-wrap > div {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .d-flex.justify-content-between.align-items-center.flex-wrap .btn {
        width: 100%;
        margin-bottom: 0;
        margin-right: 0 !important;
    }
    
    /* Chart Container Mobil */
    .charts-container {
        width: calc(100% - 10px) !important;
        overflow-x: hidden;
    }
    
    .charts-container .card-body {
        overflow-x: hidden;
        width: 100%;
    }
    
    #totalNetChartContainer,
    #subjectNetChartContainer {
        width: 100% !important;
        overflow: hidden;
        max-width: 100%;
    }
    
    .result-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .result-detail-item {
        padding: 8px;
    }
    
    .result-detail-label {
        font-size: 0.75rem;
    }
    
    .result-detail-value {
        font-size: 1rem;
    }
    
    .result-net {
        padding: 12px;
        font-size: 1.1rem;
    }
    
    .result-net-label {
        font-size: 0.8rem;
    }
    
    .statistics-container {
        padding: 15px;
        gap: 12px;
    }
    
    .stat-item {
        padding: 12px 15px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .stat-value {
        font-size: 1.4rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .result-form-container .row {
        --bs-gutter-y: 0.75rem;
    }
    
    .result-form-container .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .result-form-container .form-control {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
    
    .calendar-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .calendar-icon i {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h5 {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .small-info-alert {
        max-width: 100% !important;
        font-size: 0.75rem;
        padding: 5px 8px !important;
    }
    
    .small-info-alert .text-muted {
        font-size: 0.75rem;
    }
    
    .small-info-alert i {
        font-size: 0.75rem !important;
    }
    
    .glass-card .card-body {
        padding: 1rem;
        overflow-x: hidden;
    }
    
    .result-item {
        padding: 10px;
        min-height: 150px;
    }
    
    .result-details {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .result-detail-item {
        padding: 6px;
    }
    
    .result-detail-label {
        font-size: 0.7rem;
    }
    
    .result-detail-value {
        font-size: 0.95rem;
    }
    
    .result-net {
        padding: 10px;
        font-size: 1rem;
        margin-top: 8px;
    }
    
    .results-calendar {
        padding: 8px;
        gap: 10px;
        max-height: 400px;
    }
    
    .statistics-container {
        padding: 12px;
        margin: 0 5px 15px 5px;
        flex-direction: column;
        gap: 10px;
    }
    
    .stat-item {
        padding: 10px 12px;
        gap: 12px;
        width: 100%;
    }
    
    .stat-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .result-form-container {
        margin: 0 2px !important;
        width: calc(100% - 4px) !important;
        overflow-x: hidden;
        max-width: 100%;
    }
    
    .result-form-container .card {
        width: 100%;
        overflow-x: hidden;
        max-width: 100%;
    }
    
    .result-form-container .card-body {
        padding: 0.75rem !important;
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    .result-form-container .table-responsive {
        overflow-x: visible !important;
        overflow-y: visible !important;
        margin: 0;
        padding: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .result-form-container .form-control {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
    
    .result-form-container .btn {
        font-size: 0.85rem;
        padding: 8px;
    }
    
    /* Form Tablosu Küçük Ekran - Mobil görünüm kullan */
    .table-responsive {
        overflow-x: visible !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch;
        margin: 0;
        padding: 0;
        width: 100%;
        max-width: 100%;
    }
    
    #addSubjectRowBtn {
        font-size: 0.8rem;
        padding: 6px 10px;
        width: 100%;
        margin-top: 8px;
    }
    
    /* Ders Filtreleri Küçük Ekran */
    #subjectFilters {
        gap: 6px !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }
    
    #subjectFilters .form-check {
        width: auto;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    #subjectFilters .form-check-label {
        font-size: 0.8rem;
    }
    
    /* Grafik Butonları */
    .d-flex.justify-content-between.align-items-center.flex-wrap .btn {
        font-size: 0.75rem;
        padding: 5px 8px;
        margin-bottom: 5px;
    }
    
    /* Exam Subjects List Mobil */
    .exam-subjects-list {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -0.75rem;
        padding: 8px 0.75rem;
    }
    
    .exam-subjects-list .table {
        font-size: 0.75rem;
        min-width: 400px;
        width: 100%;
    }
    
    .exam-subjects-list .table th,
    .exam-subjects-list .table td {
        padding: 4px;
        font-size: 0.7rem;
        white-space: nowrap;
    }
    
    .exam-subjects-list .table th:first-child,
    .exam-subjects-list .table td:first-child {
        position: sticky;
        left: 0;
        background: white;
        z-index: 1;
    }
    
    .charts-container {
        margin: 0 2px !important;
        width: calc(100% - 4px) !important;
        overflow-x: hidden;
    }
    
    .charts-container .card {
        width: 100%;
        overflow: hidden;
    }
    
    .charts-container .card-body {
        padding: 0.75rem !important;
        overflow-x: hidden;
        width: 100%;
    }
    
    .charts-container canvas {
        max-height: 280px;
        min-height: 250px;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    #totalNetChartContainer,
    #subjectNetChartContainer {
        height: 280px !important;
        min-height: 250px;
        max-height: 280px;
        width: 100% !important;
        overflow: hidden;
        padding: 0;
        margin: 0;
    }
    
    #totalNetChartContainer canvas,
    #subjectNetChartContainer canvas {
        max-width: 100% !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    .calendar-container {
        margin: 0 2px !important;
        width: calc(100% - 4px) !important;
        overflow-x: hidden;
    }
    
    .calendar-container .card {
        width: 100%;
        overflow-x: hidden;
    }
    
    .calendar-container .card-body {
        padding: 0.75rem !important;
        overflow-x: hidden;
        width: 100%;
    }
    
    .statistics-container {
        width: calc(100% - 4px) !important;
        overflow-x: hidden;
    }
    
    .result-delete-btn {
        width: 24px;
        height: 24px;
        top: 5px;
        right: 5px;
    }
    
    .result-delete-btn i {
        font-size: 0.75rem;
    }
    
    .calendar-icon {
        width: 60px;
        height: 60px;
    }
    
    .calendar-icon i {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    h5 {
        font-size: 1rem;
    }
    
    .text-muted {
        font-size: 0.85rem;
    }
    
    .badge {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
    
    /* Form Label Mobil */
    .form-label {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    
    /* Row g-3 Mobil */
    .row.g-3 {
        --bs-gutter-y: 0.75rem;
        --bs-gutter-x: 0.75rem;
    }
}


/* Chart Empty Message */
.chart-empty-message {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-empty-message i {
    opacity: 0.5;
}

/* Alert Styling */
.alert {
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 0;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background-color: #d1f2eb;
    color: #0d6efd;
    border-left: 4px solid #10B981;
}

.alert-danger {
    background-color: #ffe5e5;
    color: #dc3545;
    border-left: 4px solid #EF4444;
}

.alert-warning {
    background-color: #fff9e6;
    color: #e6a100;
    border-left: 4px solid #F59E0B;
}

.alert-info {
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
}

.small-info-alert {
    padding: 8px 12px !important;
    font-size: 0.85rem;
    background-color: rgba(71, 118, 230, 0.05) !important;
    border-left: 2px solid rgba(71, 118, 230, 0.2) !important;
    border-radius: 8px;
    box-shadow: none;
}

.small-info-alert .text-muted {
    color: #6c757d !important;
    line-height: 1.4;
}

.small-info-alert i {
    font-size: 0.85rem !important;
    line-height: 1.4;
    flex-shrink: 0;
}

/* Top Bar Placeholder - Normal flow'da kalmalı, sabitlenmemeli */
.top-bar-placeholder {
    position: relative !important;
    width: 100% !important;
    z-index: 100;
    flex-shrink: 0;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* User Profile Container'ı da normal flow'da tut - sadece container için */
#user-profile-container {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
}

/* User info box'u normal flow'da tut ama içindeki gölgeleri koru */
#user-profile-container .user-info-top-right {
    position: relative !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important;
}

/* Kullanıcı adındaki gölgeyi kaldır */
#user-profile-container .user-name {
    text-shadow: none !important;
    box-shadow: none !important;
    filter: none !important;
}

#user-profile-container .user-name::after,
#user-profile-container .user-name::before {
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
    display: none !important;
}

/* Button ve dropdown toggle gölgelerini kaldır */
#user-profile-container .navbar-profile-btn {
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
}

#user-profile-container .navbar-profile-btn::after,
#user-profile-container .navbar-profile-btn::before {
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
}

#user-profile-container .dropdown-toggle::after {
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
}

/* Profil resmi içindeki gölgeyi koru */
#user-profile-container .navbar-profile-pic {
    position: relative !important;
    box-shadow: 0 3px 8px rgba(71, 118, 230, 0.15) !important;
}

/* Sol Üst Geri Butonu Stili */
.back-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    padding: 0;
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.2);
    transition: all 0.3s ease;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(220, 53, 69, 0.3);
}
