* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Giriş Ekranı */
.ekran {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo p {
    font-size: 24px;
    color: #F59E0B;
    font-weight: 600;
    margin-top: 15px;
}

.giris-form {
    max-width: 400px;
    margin: 0 auto;
}

.giris-form h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.giris-form input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
}

.giris-form input:focus {
    outline: none;
    border-color: #F59E0B;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header h2 {
    color: #333;
    font-size: 20px;
}

.header span {
    color: #F59E0B;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    gap: 8px;
    background: white;
    padding: 10px 12px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    box-sizing: border-box;
}

.tab-navigation::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    background: #f7fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-sizing: border-box;
}

.tab-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.tab-btn.active {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    border-color: #F59E0B;
}

.tab-btn .tab-btn-text {
    font-size: 14px;
}

.tab-btn .sidebar-svg-icon {
    width: 18px;
    height: 18px;
    color: #F59E0B;
    stroke: #F59E0B;
    transition: all 0.3s;
}

.tab-btn:hover .sidebar-svg-icon {
    color: #D97706;
    stroke: #D97706;
}

.tab-btn.active .sidebar-svg-icon {
    color: #ffffff;
    stroke: #ffffff;
}

/* Diğer butonu ve menü - masaüstünde gizli */
.tab-btn-diger,
.ogretmen-diger-menu,
.ogretmen-diger-overlay {
    display: none;
}

/* Tab Content */
.tab-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Section Card */
.section-card {
    background: #f7fafc;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    border: 2px solid #e2e8f0;
}

.section-card h3 {
    color: #2d3748;
    margin-bottom: 20px;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Form Elements */
input[type="text"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #F59E0B;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

/* Buttons */
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(72, 187, 120, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #f56565 0%, #c53030 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 101, 101, 0.4);
}

.btn-secondary {
    background: #718096;
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* Soru Card */
.soru-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
}

.soru-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.soru-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.soru-header-mobile {
    margin-bottom: 15px;
}

.soru-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.soru-badges-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.brans-badge {
    background: #F59E0B;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

.durum-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

.durum-badge.beklemede {
    background: #fef3c7;
    color: #92400e;
}

.durum-badge.cozuldu {
    background: #d1fae5;
    color: #065f46;
}

.durum-badge.onaylandi {
    background: #d1fae5;
    color: #065f46;
}

.durum-badge.iptal {
    background: #fee2e2;
    color: #991b1b;
}

.tarih {
    color: #718096;
    font-size: 13px;
    white-space: nowrap;
}

/* Etüt Card */
.etut-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border: 2px solid #e2e8f0;
}

.etut-card p {
    margin-bottom: 8px;
    color: #4a5568;
}

.etut-card strong {
    color: #2d3748;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    cursor: pointer;
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.lightbox-close:hover {
    color: #ccc;
}

/* Tıklanabilir görseller */
.clickable-image {
    cursor: pointer;
    transition: all 0.3s;
}

.clickable-image:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Thumbnail görseller */
.thumbnail-image {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.thumbnail-image:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Zoom hint */
.zoom-hint {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.thumbnail-image:hover + .zoom-hint,
.clickable-image:hover ~ .zoom-hint {
    opacity: 1;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #718096;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .ekran {
        padding: 20px;
    }
    
    .tab-navigation {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        margin: 0;
        border-radius: 20px 20px 0 0;
        padding: 6px 4px calc(8px + env(safe-area-inset-bottom, 0px));
        gap: 2px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
        overflow: hidden;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-sizing: border-box;
    }

    .tab-btn,
    .tab-btn-diger {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-width: 0;
        flex: 1;
        padding: 6px 2px !important;
        font-size: 11px !important;
        font-weight: 600;
        gap: 4px;
        border-radius: 10px;
        border: none;
        background: transparent;
        color: #4a5568;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        box-sizing: border-box;
    }

    .tab-btn .nav-icon-wrap,
    .tab-btn-diger .nav-icon-wrap {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        height: 22px;
        flex-shrink: 0;
    }

    .tab-btn .sidebar-svg-icon,
    .tab-btn-diger .sidebar-svg-icon {
        width: 20px;
        height: 20px;
        stroke: #F59E0B;
        color: #F59E0B;
    }

    /* İlk 4 tab görünsün, 5. ve sonrası mobilde Diğer popup'ına taşınır */
    .tab-btn:nth-child(n+5) {
        display: none !important;
    }

    .tab-btn.active,
    .tab-btn-diger.active {
        background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
        color: white !important;
    }

    .tab-btn.active .sidebar-svg-icon,
    .tab-btn-diger.active .sidebar-svg-icon {
        stroke: white !important;
        color: white !important;
    }

    .tab-btn-text {
        font-size: 11px;
        line-height: 1.1;
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Diğer Menü Popup (Öğrenci Paneli Tarzı) */
    .ogretmen-diger-menu {
        display: none;
        position: fixed;
        bottom: 75px;
        left: 14px;
        right: 14px;
        background: white;
        border-radius: 20px;
        padding: 16px;
        box-shadow: 0 -8px 30px rgba(0,0,0,0.2);
        z-index: 1001;
        gap: 12px;
    }

    .ogretmen-diger-menu.acik {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .ogretmen-diger-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 18px 10px;
        border-radius: 14px;
        border: 1.5px solid #edf2f7;
        background: #f8fafc;
        cursor: pointer;
        font-size: 13px;
        font-weight: 700;
        color: #334155;
        transition: all 0.2s ease;
    }

    .ogretmen-diger-item .nav-icon-wrap {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .ogretmen-diger-item .sidebar-svg-icon {
        width: 26px;
        height: 26px;
        color: #F59E0B;
        stroke: #F59E0B;
    }

    .ogretmen-diger-item:hover,
    .ogretmen-diger-item.active {
        background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
        color: white;
        border-color: #F59E0B;
    }

    .ogretmen-diger-item:hover .sidebar-svg-icon,
    .ogretmen-diger-item.active .sidebar-svg-icon {
        stroke: white !important;
        color: white !important;
    }

    .ogretmen-diger-overlay {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.4);
        z-index: 1000;
        backdrop-filter: blur(2px);
    }

    .ogretmen-diger-overlay.acik {
        display: block;
    }

    #ogretmenPanel {
        padding-bottom: 80px;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .header-left {
        flex-direction: column;
        text-align: center;
    }
    
    .header h2 {
        font-size: 18px;
    }
    
    .section-card {
        padding: 15px;
    }
    
    .section-card h3 {
        font-size: 18px;
    }
    
    .soru-card {
        padding: 15px;
    }
    
    .soru-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
    }
    
    .soru-badges-row {
        width: 100%;
    }
    
    .tarih {
        font-size: 12px;
        width: 100%;
        text-align: left;
    }
    
    .brans-badge,
    .durum-badge {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    .etut-card {
        padding: 15px;
    }
    
    .btn {
        font-size: 14px;
        padding: 10px 20px;
    }
    
    .btn-sm {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .filtre-buttons {
        gap: 8px;
    }
    
    .filtre-btn {
        font-size: 13px;
        padding: 8px 15px;
    }
    
    /* Mobilde thumbnail'ler tam genişlik */
    .thumbnail-image {
        max-width: 100% !important;
        max-height: 250px !important;
    }
    
    .zoom-hint {
        font-size: 11px;
        padding: 3px 8px;
    }
}


/* Filtre Butonları */
.filtre-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filtre-btn {
    padding: 10px 20px;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #4a5568;
    transition: all 0.3s;
}

.filtre-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.filtre-btn.active {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    border-color: #F59E0B;
}

/* Küçük Ekranlar */
@media (max-width: 480px) {
    .container {
        padding: 5px;
    }

    .tab-btn {
        font-size: 9px;
        padding: 5px 2px;
    }

    .tab-btn span {
        font-size: 18px;
    }

    .tab-content {
        padding: 15px;
    }

    .section-card {
        padding: 10px;
    }

    .modal-content {
        margin: 3% auto;
        padding: 15px;
        width: 95%;
    }

    .filtre-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Fotoğraf Kırpma Modalı Stilleri */
.cropper-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.cropper-modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: cropperPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cropperPopIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.cropper-modal-header {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cropper-title {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cropper-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.cropper-close-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

.cropper-modal-body {
    padding: 15px;
    background: #0f172a;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 280px;
    max-height: 55vh;
}

.cropper-img-wrapper {
    width: 100%;
    max-height: 100%;
}

.cropper-img-wrapper img {
    display: block;
    max-width: 100%;
    max-height: 50vh;
}

.cropper-hint-bar {
    background: #0f172a;
    color: #94a3b8;
    font-size: 12px;
    padding: 8px 15px;
    text-align: center;
    border-top: 1px solid #1e293b;
}

.cropper-modal-footer {
    padding: 14px 20px;
    background: #ffffff;
    display: flex;
    gap: 12px;
    border-top: 1px solid #e2e8f0;
}

.btn-crop-cancel {
    flex: 1;
    padding: 12px;
    border: 2px solid #cbd5e0;
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-crop-cancel:hover {
    background: #e2e8f0;
}

.btn-crop-save {
    flex: 1;
    padding: 12px;
    border: none;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-weight: 700;
    font-size: 14px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: transform 0.2s;
}

.btn-crop-save:hover {
    transform: translateY(-1px);
}

/* ================= YOKLAMA MİMARİSİ VE RESPONSIVE STİLLER ================= */
.yoklama-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.yoklama-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f7fafc;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
}

.yoklama-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.yoklama-header-info strong {
    font-size: 16px;
    color: #1e293b;
    white-space: nowrap;
}

.yoklama-sayi-badge {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    background: #e2e8f0;
    padding: 3px 10px;
    border-radius: 6px;
    white-space: nowrap;
    display: inline-block;
}

.yoklama-header-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.yoklama-ogrenci-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.yoklama-ogrenci-kart {
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.yoklama-ogrenci-kart:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e0 !important;
}

.yoklama-ogrenci-kart:active {
    transform: scale(0.99);
}

/* Mobile Responsive Adjustments (< 768px) */
@media (max-width: 768px) {
    .container {
        padding: 12px 12px 110px 12px !important;
    }

    .tab-content {
        padding: 16px !important;
        padding-bottom: 90px !important;
    }

    .yoklama-form-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .yoklama-header-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px !important;
    }

    .yoklama-header-info {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 8px;
    }

    .yoklama-header-btns {
        width: 100%;
        display: flex;
        gap: 8px;
    }

    .yoklama-header-btns button {
        flex: 1;
        text-align: center;
        padding: 10px 6px !important;
        font-size: 12px !important;
    }
    
    .yoklama-ogrenci-grid {
        grid-template-columns: 1fr !important;
        gap: 8px;
    }

    .yoklama-ogrenci-kart {
        padding: 14px 12px !important;
    }

    .gecmis-yoklama-kart {
        flex-direction: column;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .gecmis-yoklama-actions {
        width: 100%;
        justify-content: space-between;
    }
}

/* ============ CEVAP ANAHTARLARI STİLLERİ ============ */
.ca-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 15px;
}

.ca-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ca-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.ca-card-header {
    padding: 12px 14px;
    background: #fafafa;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.ca-badge-tur {
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ca-card-preview {
    height: 160px;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.ca-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.ca-card-preview:hover img {
    transform: scale(1.04);
}

.ca-preview-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 600;
    font-size: 13.5px;
    opacity: 0;
    transition: opacity 0.2s ease;
    backdrop-filter: blur(2px);
}

.ca-card-preview:hover .ca-preview-overlay {
    opacity: 1;
}

.ca-card-body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ca-card-title {
    margin: 0 0 6px 0;
    font-size: 15px;
    color: #1e293b;
    font-weight: 700;
    line-height: 1.35;
}

.ca-card-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.ca-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
}

.ca-btn-view {
    flex: 1;
    padding: 11px 14px;
    background: #eef2ff;
    color: #4338ca;
    border: 1.5px solid #c7d2fe;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.15s ease;
}

.ca-btn-view:hover {
    background: #e0e7ff;
    border-color: #a5b4fc;
}

.ca-btn-download {
    padding: 11px 14px;
    background: #f0fdf4;
    color: #16a34a;
    border: 1.5px solid #bbf7d0;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13.5px;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.ca-btn-download:hover {
    background: #dcfce7;
    border-color: #86efac;
}

#ogretmenCaModal {
    z-index: 9999 !important;
}

#ogretmenCaModal .modal-content {
    margin: auto !important;
}

@media (max-width: 768px) {
    .ca-grid {
        grid-template-columns: 1fr;
    }
    #ogretmenCaModal {
        padding: 10px 8px !important;
    }
    #ogretmenCaModal .modal-content {
        width: 96vw !important;
        max-width: 96vw !important;
        height: 92vh !important;
        max-height: 92vh !important;
        padding: 12px 14px !important;
        border-radius: 14px !important;
    }
}





