/* =============================================
   EÄŸitim KoÃ§luÄŸu Sistemi - Ana Stil DosyasÄ±
   ============================================= */

html { scrollbar-gutter: stable; }
/* --- CSS Variables --- */
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #93bbfd;
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #06b6d4;
    --info-light: #cffafe;

    --sidebar-bg: #0f172a;
    --sidebar-hover: #1e293b;
    --sidebar-active: #334155;
    --sidebar-text: #94a3b8;
    --sidebar-text-active: #f8fafc;
    --sidebar-width: 260px;

    --topbar-height: 60px;
    --topbar-bg: #ffffff;
    --topbar-shadow: 0 1px 3px rgba(0,0,0,0.08);

    --body-bg: #f1f5f9;
    --card-bg: #ffffff;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --card-radius: 12px;

    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.2s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; scroll-behavior: smooth; }
body {
    font-family: var(--font-family);
    background: var(--body-bg);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }

/* --- App Layout --- */
.app-wrapper { display: flex; min-height: 100vh; }
.main-content {
    flex: 1;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: var(--transition);
}
.content-area {
    flex: 1;
    padding: 24px;
    margin-top: var(--topbar-height);
}

/* --- Sidebar --- */
.sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    z-index: 1000;
    display: flex; flex-direction: column;
    transition: var(--transition);
    overflow-y: auto;
    transform: translateX(-100%);
}
.sidebar.open { transform: translateX(0); }
.sidebar-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sidebar-logo {
    display: flex; align-items: center; gap: 12px;
}
.sidebar-logo i {
    font-size: 24px; color: var(--primary);
}
.sidebar-brand {
    font-size: 16px; font-weight: 700; color: #f8fafc;
    letter-spacing: -0.3px;
}
.sidebar-close {
    display: block; background: none; border: none;
    color: var(--sidebar-text); font-size: 20px;
    cursor: pointer;
}
.sidebar-nav { flex: 1; padding: 12px 0; }
.sidebar-menu { list-style: none; }
.menu-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 8px 16px; }
.menu-item { position: relative; }
.menu-link {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 20px;
    color: var(--sidebar-text);
    font-size: 13px; font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}
.menu-link:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text-active);
}
.menu-item.active > .menu-link {
    background: var(--sidebar-active);
    color: var(--sidebar-text-active);
    border-left-color: var(--primary);
}
.menu-link i:first-child { width: 20px; text-align: center; font-size: 15px; }
.submenu-arrow {
    margin-left: auto; font-size: 10px;
    transition: transform 0.2s;
}
.has-submenu.open .submenu-arrow { transform: rotate(180deg); }
.submenu {
    list-style: none; max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0,0,0,0.15);
}
.has-submenu.open .submenu { max-height: 500px; }
.submenu .menu-link { padding-left: 52px; font-size: 12.5px; }
/* --- Sidebar Sezon Değiştirici --- */
.sidebar-sezon-wrap {
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin: 0;
}
.sidebar-sezon-header {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 12.5px; font-weight: 700;
    border: 1px solid transparent;
    border-radius: 0;
    transition: all 0.2s;
    user-select: none;
}
.sidebar-sezon-header:hover { filter: brightness(0.92); }
.sidebar-sezon-list {
    background: rgba(0,0,0,0.15);
    padding: 6px 8px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.sidebar-user-mini {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: var(--sidebar-text);
}
.sidebar-user-mini .text-success { color: var(--success); font-size: 8px; }

/* --- Topbar --- */
.topbar {
    position: fixed; top: 0;
    left: 0; right: 0;
    height: var(--topbar-height);
    background: var(--topbar-bg);
    box-shadow: var(--topbar-shadow);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px;
    z-index: 999;
    transition: var(--transition);
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.sidebar-toggle {
    display: block; background: none; border: none;
    font-size: 20px; color: var(--text-secondary); cursor: pointer;
}
.page-title { font-size: 18px; font-weight: 600; color: var(--text-primary); }
.topbar-right { display: flex; align-items: center; gap: 20px; }
.topbar-item { display: flex; align-items: center; gap: 8px; }
.sezon-indicator {
    background: var(--info-light); color: var(--info);
    padding: 6px 14px; border-radius: 20px;
    font-size: 12px; font-weight: 600;
}
.user-dropdown {
    position: relative; cursor: pointer;
    padding: 6px 12px; border-radius: 8px;
    transition: var(--transition);
}
.user-dropdown:hover { background: var(--body-bg); }
.user-avatar i { font-size: 28px; color: var(--primary); }
.user-info { display: flex; flex-direction: column; }
.user-name { font-size: 13px; font-weight: 600; }
.user-role { font-size: 11px; color: var(--text-muted); }
.dropdown-menu {
    position: absolute; top: 100%; right: 0;
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    min-width: 180px; display: none; z-index: 1001;
    overflow: hidden;
}
.dropdown-menu.show { display: block; }
.dropdown-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px; color: var(--text-primary);
    font-size: 13px; transition: var(--transition);
}
.dropdown-item:hover { background: var(--body-bg); color: var(--danger); }

/* --- Cards --- */
.card {
    background: var(--card-bg); border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: var(--transition);
}
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}
.card-header h3 {
    font-size: 15px; font-weight: 600;
    display: flex; align-items: center; gap: 8px;
}
.card-header h3 i { color: var(--primary); }
.card-body { padding: 20px; }

/* Ã–dev Card Status Headers */
.odev-card .card-header {
    border-left: 4px solid var(--border-color);
}
.odev-card.status-beklemede .card-header {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-left-color: var(--warning);
}
.odev-card.status-kontrol_edildi .card-header {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-left-color: var(--success);
}
.odev-card.status-gelmedi .card-header {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-left-color: var(--danger);
}
.card-row { display: grid; gap: 20px; }

/* --- Stat Cards --- */
.stats-row {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--card-bg); border-radius: var(--card-radius);
    box-shadow: var(--card-shadow); padding: 12px 16px;
    display: flex; align-items: center; gap: 12px;
    transition: var(--transition); position: relative; overflow: hidden;
}
.stat-card::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 4px; height: 100%;
}
.stat-primary::before { background: var(--primary); }
.stat-success::before { background: var(--success); }
.stat-info::before { background: var(--info); }
.stat-warning::before { background: var(--warning); }
.stat-icon {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
}
.stat-primary .stat-icon { background: rgba(59,130,246,0.1); color: var(--primary); }
.stat-success .stat-icon { background: rgba(16,185,129,0.1); color: var(--success); }
.stat-info .stat-icon { background: rgba(6,182,212,0.1); color: var(--info); }
.stat-warning .stat-icon { background: rgba(245,158,11,0.1); color: var(--warning); }
.stat-value { font-size: 20px; font-weight: 700; display: block; line-height: 1.2; }
.stat-label { font-size: 11px; color: var(--text-muted); font-weight: 500; }

/* --- Grid Layouts --- */
.dashboard-grid { display: grid; gap: 24px; }
.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* --- Tables --- */
.table-responsive { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
    padding: 6px 10px; text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 12px;
}
.table th {
    background: var(--body-bg); font-weight: 600;
    color: var(--text-secondary); font-size: 12px;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.table tbody tr:hover { background: rgba(59,130,246,0.03); }
.table-compact th, .table-compact td { padding: 4px 6px; font-size: 11px; }

/* --- Badges --- */
.badge {
    display: inline-flex; align-items: center;
    padding: 3px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 600;
}
.badge-success { background: var(--success-light); color: #065f46; }
.badge-warning { background: var(--warning-light); color: #92400e; }
.badge-danger { background: var(--danger-light); color: #991b1b; }
.badge-info { background: var(--info-light); color: #155e75; }
.badge-secondary { background: #f1f5f9; color: #475569; }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px; border-radius: 8px;
    font-size: 13px; font-weight: 600;
    border: none; cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-info { background: var(--info); color: #fff; }
.btn-warning { background: #eab308; color: #fff; }
.btn-warning:hover { background: #ca8a04; color: #fff; }

.btn-outline-success { background: transparent; border: 1px solid var(--success); color: var(--success); }
.btn-outline-success:hover, .btn-outline-success.active-solid { background: var(--success); color: #fff; border-color: var(--success); }

.btn-outline-warning { background: transparent; border: 1px solid #eab308; color: #eab308; }
.btn-outline-warning:hover, .btn-outline-warning.active-solid { background: #eab308; color: #fff; border-color: #eab308; }

.btn-outline-danger { background: transparent; border: 1px solid var(--danger); color: var(--danger); }
.btn-outline-danger:hover, .btn-outline-danger.active-solid { background: var(--danger); color: #fff; border-color: var(--danger); }

.btn-outline-info { background: transparent; border: 1px solid var(--info); color: var(--info); }
.btn-outline-info:hover, .btn-outline-info.active-solid { background: var(--info); color: #fff; border-color: var(--info); }

.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-block { display: flex; justify-content: center; width: 100%; }

/* --- Forms --- */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 6px; font-size: 13px; font-weight: 600;
    color: var(--text-secondary);
}
.form-control {
    width: 100%; padding: 10px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px; font-size: 13px;
    font-family: var(--font-family);
    transition: var(--transition);
    background: #fff;
}
.form-control:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.password-wrapper { position: relative; }
.password-toggle {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--text-muted); cursor: pointer;
}

/* --- Alerts --- */
.alert {
    padding: 12px 16px; border-radius: 8px;
    font-size: 13px; margin-bottom: 16px;
    display: flex; align-items: center; gap: 10px;
    position: relative;
    animation: slideDown 0.3s ease;
}
.alert-success { background: var(--success-light); color: #065f46; border-left: 4px solid var(--success); }
.alert-danger { background: var(--danger-light); color: #991b1b; border-left: 4px solid var(--danger); }
.alert-warning { background: var(--warning-light); color: #92400e; border-left: 4px solid var(--warning); }
.alert-close {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; font-size: 18px; cursor: pointer;
    color: inherit; opacity: 0.6;
}

/* --- Login Page --- */
.login-body {
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
}
.login-container { width: 100%; max-width: 480px; padding: 20px; }
.login-card {
    background: var(--card-bg); border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 40px; position: relative; overflow: hidden;
}
.login-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 4px; background: linear-gradient(90deg, var(--primary), var(--info));
}
.login-header { text-align: center; margin-bottom: 32px; }
.login-logos-top {
    display: flex; align-items: center; justify-content: center; gap: 24px;
    margin-bottom: 16px;
}
.login-logo {
    width: 120px; height: auto; object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}
.login-logo:hover { transform: scale(1.08); }
.login-header h1 { font-size: 18px; font-weight: 700; margin-bottom: 4px; line-height: 1.3; }
.login-header p { font-size: 13px; color: var(--text-muted); }
.login-form .form-group { margin-bottom: 20px; }
.login-form .btn-block { margin-top: 8px; }
.login-footer { text-align: center; margin-top: 24px; font-size: 11px; color: var(--text-muted); }

/* --- Empty States --- */
.empty-state {
    text-align: center; padding: 32px; color: var(--text-muted);
}
.empty-state i { font-size: 36px; margin-bottom: 12px; display: block; }

/* --- Error Pages --- */
.error-page {
    text-align: center; padding: 80px 20px;
}
.error-code { font-size: 80px; font-weight: 800; color: var(--primary); }
.error-message { font-size: 24px; font-weight: 600; margin-bottom: 16px; }

/* --- Progress Mini --- */
.progress-mini {
    position: relative; height: 22px;
    background: var(--body-bg); border-radius: 12px;
    overflow: hidden; min-width: 80px;
}
.progress-bar {
    height: 100%; background: linear-gradient(90deg, var(--primary), var(--info));
    border-radius: 12px; transition: width 0.5s ease;
}
.progress-bar.bg-success { background: linear-gradient(90deg, #10b981, #34d399); }
.progress-bar.bg-warning { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.progress-bar.bg-danger { background: linear-gradient(90deg, #ef4444, #f87171); }
.progress-mini span {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px; font-weight: 700;
}

/* --- GÃ¶rÃ¼ÅŸme Listesi --- */
.gorusme-listesi { display: flex; flex-direction: column; gap: 8px; }
.gorusme-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; border-radius: 8px; background: var(--body-bg);
    transition: var(--transition);
}
.gorusme-item:hover { background: #e2e8f0; }
.gorusme-saat { font-weight: 700; color: var(--primary); min-width: 50px; }
.gorusme-ogrenci { font-weight: 500; flex: 1; }
.gorusme-koc { font-size: 12px; color: var(--text-muted); }

/* --- Ã–dev Ã–zet --- */
.odev-ozet-bar { display: flex; gap: 32px; justify-content: center; }
.ozet-item { text-align: center; }
.ozet-badge {
    display: block; width: 52px; height: 52px; line-height: 52px;
    border-radius: 50%; margin: 0 auto 8px;
    font-size: 18px; font-weight: 700;
}
.ozet-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }

/* --- Student Info Card --- */
.student-info-card {
    display: flex; align-items: center; gap: 20px;
    background: var(--card-bg); border-radius: var(--card-radius);
    box-shadow: var(--card-shadow); padding: 24px;
}
.student-avatar i { font-size: 48px; color: var(--primary); }
.student-details h2 { font-size: 20px; margin-bottom: 4px; }

/* --- Info Rows --- */
.info-row {
    display: flex; justify-content: space-between;
    padding: 8px 0; border-bottom: 1px solid var(--border-color);
}
.info-label { font-weight: 600; color: var(--text-secondary); font-size: 13px; }
.info-value { font-size: 13px; }

/* --- Animations --- */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- App Footer --- */
.app-footer {
    padding: 16px 24px; text-align: center;
    border-top: 1px solid var(--border-color);
    font-size: 12px; color: var(--text-muted);
}

/* =============================================
   RESPONSIVE - TAM MOBÄ°L UYUMLULUK
   ============================================= */

/* --- Sidebar Overlay (Mobile) --- */
.sidebar-overlay {
    display: none;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}
.sidebar.open ~ .sidebar-overlay,
.sidebar.open + .main-content .sidebar-overlay { display: block; }

/* --- 1200px: Tablet Landscape --- */
@media (max-width: 1200px) {
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .grid-2col { grid-template-columns: 1fr; }
}

/* --- 1024px: Tablet --- */
@media (max-width: 1024px) {
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .grid-2col { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .form-row-3 { grid-template-columns: 1fr; }
    .student-detail-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .haftalik-plan-mini { grid-template-columns: repeat(4, 1fr); }
    .odev-row-fields { grid-template-columns: 1fr 1fr; }
    
    /* Topbar - tablet uyumu */
    .topbar { padding: 0 16px; }
    .page-title { font-size: 16px; }
    
    /* Anasayfa metin gizle */
    .topbar-left > span.d-none { display: none !important; }
    .topbar-left > a > span.d-none { display: none !important; }
}

/* --- 992px: Tablet Portrait --- */
@media (max-width: 992px) {
    .content-area { padding: 12px; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .user-info { display: none; }
    .haftalik-plan-mini { grid-template-columns: repeat(2, 1fr); }
    .student-stats-mini { flex-wrap: wrap; justify-content: flex-start; gap: 6px; }
    .odev-row-fields { grid-template-columns: 1fr; }
    
    /* Student detail header - mini stat dividers masaÃ¼stÃ¼nde gerekli ama mobilde bazÄ±larÄ±nÄ± kaldÄ±r */
    .mini-stat-divider { height: 24px; }
    
    /* Dashboard grid */
    .grid-3col { grid-template-columns: 1fr !important; }
    
    /* Topbar uzun metin gizle */
    .topbar-left > span { display: none !important; }
    .topbar-left > a > span { display: none !important; }
}

/* --- 768px: Mobile Landscape / Small Tablet --- */
@media (max-width: 768px) {
    .content-area { padding: 10px; margin-top: 56px; }
    
    /* Topbar daha kompakt */
    .topbar {
        height: 56px;
        padding: 0 12px;
    }
    .page-title { font-size: 15px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .sezon-indicator { padding: 4px 10px; font-size: 11px; }
    .sezon-indicator i { display: none; }
    .topbar-right { gap: 10px; }
    .user-dropdown { padding: 4px 8px; }
    .user-avatar i { font-size: 24px; }
    
    /* Sidebar tam ekran overlay */
    .sidebar { width: 280px; }
    
    /* Stats card dÃ¼zeni */
    .stats-row { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
    .stat-card { padding: 10px 12px; gap: 10px; }
    .stat-icon { width: 32px; height: 32px; font-size: 14px; }
    .stat-value { font-size: 18px; }
    .stat-label { font-size: 10px; }
    
    /* Card header/body padding kÃ¼Ã§Ã¼lt */
    .card-header { padding: 12px 14px; }
    .card-header h3 { font-size: 14px; }
    .card-body { padding: 14px; }
    
    /* Form dÃ¼zeni */
    .form-row, .form-row-3 { grid-template-columns: 1fr; gap: 10px; }
    
    /* Page header dÃ¼zeni */
    .page-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .page-header h2 { font-size: 18px; }
    
    /* Filtre row - mobilde dikey */
    .filter-row { flex-direction: column; align-items: stretch !important; }
    .filter-row input, .filter-row select { max-width: 100% !important; width: 100% !important; }
    .filter-row > span { margin-left: 0 !important; text-align: center; }
    
    /* =========================================
       TABLO â†’ KART DÃœZENÄ° (Mobil)
       ========================================= */
    /* Ã‡ok sÃ¼tunlu tablolar (10+) yatay kaydÄ±rma ile kalsÄ±n */
    .table-responsive.table-scroll-mobile {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .table-responsive.table-scroll-mobile::after {
        content: 'â† kaydÄ±rÄ±n â†’';
        display: block; text-align: center;
        font-size: 10px; color: var(--text-muted); padding: 4px;
    }
    
    /* Normal tablolar â†’ kart dÃ¼zeni */
    .table-responsive:not(.table-scroll-mobile) {
        overflow-x: visible;
    }
    .table-responsive:not(.table-scroll-mobile) .table {
        display: block;
    }
    .table-responsive:not(.table-scroll-mobile) .table thead {
        display: none;
    }
    .table-responsive:not(.table-scroll-mobile) .table tbody {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .table-responsive:not(.table-scroll-mobile) .table tbody tr {
        display: block;
        background: #fff;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 10px 12px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    }
    .table-responsive:not(.table-scroll-mobile) .table tbody tr:hover {
        background: rgba(59,130,246,0.02);
    }
    .table-responsive:not(.table-scroll-mobile) .table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 5px 0;
        border-bottom: 1px solid #f1f5f9;
        white-space: normal;
        font-size: 13px;
        gap: 8px;
    }
    .table-responsive:not(.table-scroll-mobile) .table tbody td:last-child {
        border-bottom: none;
    }
    .table-responsive:not(.table-scroll-mobile) .table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-secondary);
        font-size: 12px;
        min-width: 90px;
        flex-shrink: 0;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }
    /* data-label olmayan td'ler (henÃ¼z JS Ã§alÄ±ÅŸmamÄ±ÅŸsa) */
    .table-responsive:not(.table-scroll-mobile) .table tbody td:not([data-label])::before {
        content: '';
        min-width: 0;
    }
    /* Ä°ÅŸlem sÃ¼tunu - tam geniÅŸlik, ortalÄ± */
    .table-responsive:not(.table-scroll-mobile) .table tbody td:last-child {
        justify-content: flex-end;
        padding-top: 8px;
    }
    .table-responsive:not(.table-scroll-mobile) .table tbody td:last-child::before {
        display: none;
    }
    /* Kart iÃ§i buton grubu */
    .table-responsive:not(.table-scroll-mobile) .table tbody td div[style*="display:flex"],
    .table-responsive:not(.table-scroll-mobile) .table tbody td div[style*="display: flex"] {
        width: 100%;
        justify-content: flex-end;
    }
    /* Ders detay satÄ±rÄ± (deneme sonuÃ§ tablosunda) gizli satÄ±rlar */
    .table-responsive:not(.table-scroll-mobile) .ders-detay-row td {
        display: block;
    }
    .table-responsive:not(.table-scroll-mobile) .ders-detay-row td::before {
        display: none;
    }
    /* Badge ve progress kart iÃ§inde */
    .table-responsive:not(.table-scroll-mobile) .table tbody td .badge {
        font-size: 11px;
    }
    .table-responsive:not(.table-scroll-mobile) .table tbody td .progress-mini {
        width: 100%;
        max-width: 120px;
    }
    /* Ogrenci link kart iÃ§inde vurgulu */
    .table-responsive:not(.table-scroll-mobile) .table tbody td .ogrenci-link {
        font-size: 14px;
    }
    /* Kart ilk satÄ±rÄ± (genelde isim) vurgulu */
    .table-responsive:not(.table-scroll-mobile) .table tbody td:first-child {
        padding-bottom: 6px;
        margin-bottom: 2px;
        border-bottom: 2px solid var(--primary-light);
        font-weight: 600;
    }
    
    /* HaftalÄ±k plan - mobil */
    .haftalik-plan-mini { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    
    /* Student detail header */
    .student-detail-header { padding: 12px 14px; flex-direction: column; align-items: flex-start; gap: 10px; }
    .student-detail-info { gap: 10px; }
    .student-meta h2 { font-size: 15px; }
    .meta-badges { flex-wrap: wrap; gap: 4px; }
    .meta-badges .badge { font-size: 10px; padding: 2px 6px; }
    .student-stats-mini { gap: 4px; justify-content: flex-start; }
    .mini-stat { min-width: 40px; flex: 1; }
    .mini-val { font-size: 14px; }
    .mini-label { font-size: 9px; }
    .mini-stat-divider { height: 24px; margin: 0 2px; }
    
    /* Tabs mobil uyum */
    .tabs { gap: 0; padding: 0; }
    .tab-btn { padding: 8px 10px; font-size: 12px; }
    
    /* Modal mobil tam geniÅŸlik */
    .modal { width: 96%; max-width: none; max-height: 88vh; margin: 8px auto; }
    .modal-header { padding: 8px 12px; }
    .modal-header h3 { font-size: 14px; }
    .modal-body { padding: 8px 12px; overflow-y: auto; }
    .modal-footer { padding: 6px 12px; flex-wrap: wrap; }
    .modal-footer .btn { flex: 1; justify-content: center; min-width: 0; padding: 7px 10px; font-size: 12px; }
    
    /* Form satÄ±rlarÄ± - kompakt */
    .form-row { grid-template-columns: 1fr 1fr !important; gap: 6px !important; }
    .form-row-3 { grid-template-columns: 1fr !important; gap: 4px !important; }
    .form-group { margin-bottom: 0; }
    .form-group label { font-size: 10px; margin-bottom: 0; display: block; line-height: 1.3; color: var(--text-secondary); }
    .modal .form-control { padding: 4px 8px !important; font-size: 13px !important; height: 30px !important; }
    .modal select.form-control { padding: 3px 6px !important; height: 30px !important; }
    .modal textarea.form-control { height: auto !important; min-height: 40px !important; }
    
    /* Button sizes */
    .btn { padding: 8px 14px; font-size: 12px; }
    .btn-sm { padding: 5px 8px; font-size: 11px; }
    
    /* Ã–dev card header - artÄ±k detay.php'de 3 satÄ±r layout yÃ¶netiliyor */
    
    /* Progress mini */
    .progress-mini { min-width: 60px; height: 20px; }
    
    /* SayfalandÄ±rma */
    #paginationControls { flex-wrap: wrap; justify-content: center; }
    #paginationControls button { min-width: 32px !important; padding: 6px 8px !important; font-size: 12px !important; }
    
    /* Dashboard koÃ§ - buton grubu */
    td[style*="display: flex"] { flex-wrap: wrap; }
    
    /* Info row */
    .info-row { flex-direction: column; gap: 2px; }
    
    /* Ders detay grid */
    .ders-detay-grid { gap: 8px; }
    .ders-detay-item { padding: 6px 10px; }
    
    /* Konu Ä°statistikleri tablosu */
    .dka-table { font-size: 10px; }
    .dka-table th, .dka-table td { padding: 3px 4px; }
    
    /* GÃ¶rÃ¼ÅŸme listesi */
    .gorusme-item { flex-direction: column; gap: 6px; align-items: flex-start; }
    
    /* Odev ozet */
    .odev-ozet-bar { gap: 16px; flex-wrap: wrap; }
    .ozet-badge { width: 42px; height: 42px; line-height: 42px; font-size: 16px; }
    
    /* Topbar Anasayfa kÄ±sayolu gizle metinleri */
    .topbar-left a[href="/dashboard"] span { display: none; }
}

/* --- 576px: Mobile Portrait --- */
@media (max-width: 576px) {
    html { font-size: 13px; }
    .content-area { padding: 8px; margin-top: 52px; }
    
    /* Topbar minimal */
    .topbar {
        height: 52px;
        padding: 0 10px;
    }
    .sidebar-toggle { font-size: 18px; }
    .page-title { font-size: 14px; max-width: 120px; }
    .sezon-indicator { font-size: 10px; padding: 3px 8px; }
    .user-dropdown > i.fa-chevron-down { display: none; }
    
    /* Stats */
    .stats-row { grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
    .stat-card { padding: 8px 10px; }
    .stat-value { font-size: 16px; }
    
    /* Cards */
    .card { border-radius: 8px; }
    .card-header { padding: 10px 12px; }
    .card-header h3 { font-size: 13px; gap: 6px; }
    .card-body { padding: 10px 12px; }
    
    /* Kart gÃ¶rÃ¼nÃ¼mÃ¼nÃ¼ 576px'de daha kompakt yap */
    .table-responsive:not(.table-scroll-mobile) .table tbody tr {
        padding: 8px 10px;
    }
    .table-responsive:not(.table-scroll-mobile) .table tbody td {
        font-size: 12px;
        padding: 4px 0;
    }
    .table-responsive:not(.table-scroll-mobile) .table tbody td::before {
        font-size: 10px;
        min-width: 75px;
    }
    /* Ã‡ok sÃ¼tunlu tablo (scroll mode) iÃ§in kÃ¼Ã§Ã¼ltme */
    .table-scroll-mobile .table th,
    .table-scroll-mobile .table td { font-size: 10px; padding: 4px 5px; }
    .table-scroll-mobile .table-compact th,
    .table-scroll-mobile .table-compact td { font-size: 9px; padding: 3px 4px; }
    
    /* Filtreler dÃ¼zeni */
    .filter-row { gap: 8px !important; }
    .filter-row input.form-control,
    .filter-row select.form-control { font-size: 13px; padding: 8px 10px; }
    
    /* Page header */
    .page-header { margin-bottom: 12px; }
    .page-header h2 { font-size: 16px; }
    .page-header .btn { width: 100%; justify-content: center; }
    
    /* Student detail header - ultra compact */
    .student-detail-header { padding: 10px 12px; gap: 8px; margin-bottom: 10px; }
    .student-avatar-lg i { font-size: 30px; }
    .student-meta h2 { font-size: 14px; }
    .meta-badges { gap: 3px; }
    .meta-badges .badge { font-size: 9px; padding: 1px 5px; }
    .student-stats-mini { gap: 3px; }
    .mini-stat { min-width: 35px; flex: 1; }
    .mini-val { font-size: 13px; }
    .mini-label { font-size: 8px; }
    .mini-stat-divider { height: 20px; margin: 0 1px; }
    
    /* Tabs - kÃ¼Ã§Ã¼k ekranlarda kaydÄ±rÄ±labilir */
    .tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
    .tab-btn { padding: 7px 8px; font-size: 11px; flex-shrink: 0; }
    
    /* HaftalÄ±k plan */
    .haftalik-plan-mini { grid-template-columns: repeat(2, 1fr); gap: 4px; }
    .plan-gun-baslik { font-size: 10px; padding: 4px; border-radius: 4px 4px 0 0; }
    .plan-item { font-size: 10px; padding: 5px 6px; }
    .plan-ders { font-size: 10px; }
    .plan-konu { font-size: 9px; }
    
    /* Modal - tam ekran */
    .modal { width: calc(100% - 8px); margin: 4px; border-radius: 10px; max-height: 92vh; }
    .modal-header { padding: 6px 10px; }
    .modal-header h3 { font-size: 13px; }
    .modal-body { padding: 6px 10px; overflow-y: auto; }
    .modal-footer { padding: 6px 10px; }
    .form-row { grid-template-columns: 1fr 1fr !important; gap: 4px !important; }
    .form-row-3 { grid-template-columns: 1fr !important; gap: 3px !important; }
    .form-group { margin-bottom: 0; }
    .form-group label { font-size: 10px; margin-bottom: 0; }
    .modal .form-control { padding: 3px 6px !important; font-size: 13px !important; height: 28px !important; }
    .modal select.form-control { height: 28px !important; }
    
    /* Buttons touch-friendly */
    .btn { padding: 8px 12px; font-size: 12px; min-height: 36px; }
    .btn-sm { padding: 5px 8px; font-size: 11px; min-height: 28px; }
    
    /* SayfalandÄ±rma touch */
    div[style*="justify-content:space-between"][style*="border-top"] {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    /* Ä°ÅŸlem butonlarÄ± wrap */
    td > div[style*="display:flex"] { gap: 2px !important; }
    td > div[style*="display:flex"] .btn-sm { padding: 4px 6px; font-size: 10px; }
    
    /* Odev card - ultra compact */
    .odev-card .card-header h3 .badge { font-size: 9px !important; padding: 2px 6px; }
    
    /* Login page */
    .login-container { padding: 12px; }
    .login-card { padding: 24px 20px; }
    .login-header h1 { font-size: 18px; }
    .login-icon { width: 52px; height: 52px; }
    .login-icon i { font-size: 22px; }
    
    /* Alert */
    .alert { font-size: 12px; padding: 10px 12px; }
    
    /* ===== Ã–ÄŸrenci Tablosu â†’ 3 SatÄ±r Kompakt Mobil ===== */
    /* SÃ¼tunlar: No | Ad | SÄ±nÄ±f | KoÃ§ | âœ“ | âˆ’ | âœ— | GÃ–R. | KNT. | Ä°ÅŸlem */
    #ogrenciTable { border: none; }
    #ogrenciTable thead { display: none; }
    #ogrenciTable tbody tr {
        display: grid !important;
        grid-template-columns: repeat(12, 1fr);
        gap: 0;
        border-bottom: 1px solid var(--border-color);
        padding: 5px 2px;
        cursor: pointer;
        align-items: center;
    }
    #ogrenciTable tbody tr:active { background: var(--bg-hover); }
    #ogrenciTable tbody tr td {
        display: block;
        border: none !important;
        padding: 1px 2px !important;
        font-size: 11px;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    #ogrenciTable tbody tr td::before { display: none !important; }
    
    /* SatÄ±r 1: No(3) + Ad(6) + SÄ±nÄ±f(3) */
    #ogrenciTable tbody tr td:nth-child(1) { grid-column: span 3; font-size: 10px; }
    #ogrenciTable tbody tr td:nth-child(2) { grid-column: span 6; font-weight: 700; font-size: 12px; }
    #ogrenciTable tbody tr td:nth-child(3) { grid-column: span 3; font-size: 10px; text-align: right; }
    
    /* SatÄ±r 2: KoÃ§(4) + YaptÄ±(2) + Eksik(2) + YapmadÄ±(2) + boÅŸ(2) */
    #ogrenciTable tbody tr td:nth-child(4) { grid-column: span 6; font-size: 10px; color: var(--text-secondary); }
    #ogrenciTable tbody tr td:nth-child(5) { grid-column: span 2; text-align: center; font-size: 10px; }
    #ogrenciTable tbody tr td:nth-child(6) { grid-column: span 2; text-align: center; font-size: 10px; }
    #ogrenciTable tbody tr td:nth-child(7) { grid-column: span 2; text-align: center; font-size: 10px; }
    
    /* SatÄ±r 3: GÃ–R.(4) + KNT.(4) + Ä°ÅŸlem(4) */
    #ogrenciTable tbody tr td:nth-child(8) { grid-column: span 4; font-size: 10px; color: var(--text-secondary); }
    #ogrenciTable tbody tr td:nth-child(9) { grid-column: span 4; font-size: 10px; color: var(--text-secondary); }
    #ogrenciTable tbody tr td:nth-child(10) {
        grid-column: span 4;
        text-align: right;
    }
    #ogrenciTable tbody tr td:nth-child(10) .btn { font-size: 9px; padding: 1px 8px; }
    
    /* Ã–dev builder mobil */
    .odev-builder { grid-template-columns: 1fr !important; }
    .odev-palette-col { position: static !important; max-height: none !important; }
    .odev-palette { max-height: 300px !important; }
    .odev-grid { grid-template-columns: 1fr !important; max-height: none !important; overflow-y: visible !important; }
    .grid-day-header { position: sticky; top: 0; z-index: 20; }
    
    /* SMS card header - stack */
    .card-header[style*="flex-wrap: wrap"] > div { width: 100%; }
    
    /* Badge daha kÃ¼Ã§Ã¼k */
    .badge { padding: 2px 8px; font-size: 10px; }
    
    /* Deneme sonuÃ§larÄ± - kÃ¼Ã§Ã¼k ekran iÃ§in tablo */
    #sonucTable th, #sonucTable td { font-size: 10px; padding: 3px 4px; }
    
    /* Topbar profil modalÄ± */
    #profileUpdateModal .modal { padding: 14px !important; }
    #profileUpdateModal .modal input { padding: 10px 12px; }
    
    /* Toast bildirimi */
    .alert[style*="position:fixed"] { 
        left: 10px !important; 
        right: 10px !important; 
        min-width: auto !important; 
        top: 60px !important;
    }
}

/* --- 400px: Ã‡ok KÃ¼Ã§Ã¼k Ekran --- */
@media (max-width: 400px) {
    .content-area { padding: 6px; }
    .page-title { font-size: 13px; max-width: 100px; }
    .stats-row { gap: 6px; }
    .stat-card { padding: 10px; gap: 10px; }
    .stat-icon { width: 36px; height: 36px; font-size: 14px; border-radius: 8px; }
    .stat-value { font-size: 16px; }
    
    .card-header { padding: 8px 10px; }
    .card-body { padding: 8px 10px; }
    
    .student-meta h2 { font-size: 13px; }
    .meta-badges .badge { font-size: 8px; }
    .mini-val { font-size: 12px; }
    
    .tab-btn { padding: 6px 6px; font-size: 10px; }
    
    .modal { margin: 4px; border-radius: 10px; }
    .form-control { padding: 8px 10px; font-size: 13px; }
    
    /* GeniÅŸlik sÄ±nÄ±rlÄ± butonlar */
    .btn { font-size: 12px; padding: 8px 10px; }
}

/* --- Dashboard Compact Table (Mobile) --- */
@media (max-width: 768px) {
    .dash-table { overflow-x: visible !important; }
    .dash-table .table { display: block !important; }
    .dash-table .table thead { display: none !important; }
    .dash-table .table tbody { display: flex !important; flex-direction: column; gap: 6px; }
    .dash-table .table tbody tr {
        display: flex !important; flex-wrap: wrap; align-items: center;
        background: #fff; border: 1px solid var(--border-color);
        border-radius: 8px; padding: 8px 10px; gap: 0;
        box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    }
    .dash-table .table tbody td {
        display: inline-flex !important; align-items: center;
        border: none !important; border-bottom: none !important;
        padding: 2px 4px !important; font-size: 11px;
        white-space: nowrap;
        justify-content: flex-start !important;
    }
    .dash-table .table tbody td::before { display: none !important; content: '' !important; }
    /* Ä°sim sol tarafta, kalanlar saÄŸda */
    .dash-table .table tbody td:first-child {
        flex: 1; min-width: 0;
        font-weight: 700; font-size: 12px;
        border-bottom: none !important; margin-bottom: 0;
    }
    .dash-table .table tbody td .badge { font-size: 10px; padding: 2px 6px; }

    /* === Admin: Grid layout === */
    /* Row1: Ä°sim | SÄ±nÄ±f | KoÃ§   Row2: boÅŸ | Saat | Durum */
    .dash-table.dash-admin .table tbody tr {
        display: grid !important; flex-wrap: unset;
        grid-template-columns: 1fr auto auto;
        gap: 2px 6px; align-items: center;
    }
    .dash-table.dash-admin .table tbody td:nth-child(1) { grid-column: 1; grid-row: 1; font-weight: 700; font-size: 12px; }
    .dash-table.dash-admin .table tbody td:nth-child(2) { grid-column: 2; grid-row: 1; }
    .dash-table.dash-admin .table tbody td:nth-child(3) { grid-column: 3; grid-row: 1; }
    .dash-table.dash-admin .table tbody td:nth-child(4) { grid-column: 2; grid-row: 2; justify-self: end; }
    .dash-table.dash-admin .table tbody td:nth-child(5) { grid-column: 3; grid-row: 2; justify-self: end; }

    /* === KoÃ§: action butonlar alt satÄ±r === */
    .dash-table.dash-actions .table tbody td:last-child {
        width: 100% !important; flex-basis: 100% !important;
        padding-top: 6px !important; margin-top: 4px;
        border-top: 1px solid #f1f5f9 !important;
        display: flex !important; justify-content: flex-end !important; flex-wrap: wrap;
    }
}

/* --- YardÄ±mcÄ± Mobil SÄ±nÄ±flar --- */
@media (max-width: 768px) {
    .d-none-mobile { display: none !important; }
    .d-block-mobile { display: block !important; }
    .w-full-mobile { width: 100% !important; }
    .text-center-mobile { text-align: center !important; }
    .flex-column-mobile { flex-direction: column !important; }
    .gap-sm-mobile { gap: 6px !important; }
}

/* --- Touch Cihazlar iÃ§in Dokunma Ä°yileÅŸtirmeleri --- */
@media (hover: none) and (pointer: coarse) {
    /* Dokunmatik cihazlarda hover efektlerini kaldÄ±r */
    .btn:hover { transform: none; }
    .card:hover { box-shadow: var(--card-shadow); }
    .clickable-row:hover { background: transparent !important; }
    
    /* Daha bÃ¼yÃ¼k dokunma alanlarÄ± */
    .menu-link { padding: 12px 20px; }
    .submenu .menu-link { padding: 12px 20px 12px 52px; }
    .form-control { padding: 8px 12px; font-size: 16px; } /* iOS zoom engellemek iÃ§in min 16px */
    select.form-control { font-size: 16px; }
    /* Modal iÃ§inde daha kompakt */
    .modal .form-control { padding: 6px 10px !important; font-size: 14px !important; }
    .modal select.form-control { font-size: 14px !important; }
    
    /* Tablo satÄ±rlarÄ± arasÄ± boÅŸluk */
    .table td { padding: 8px 10px; }
    .table-compact td { padding: 6px 6px; }
}

/* --- Page Header --- */
.page-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px;
}
.page-header h2 {
    font-size: 20px; font-weight: 700;
    display: flex; align-items: center; gap: 10px;
}
.page-header h2 i { color: var(--primary); font-size: 22px; }

/* --- Filter Row --- */
.filter-row {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}

/* --- Form Rows --- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
textarea.form-control { min-height: 60px; resize: vertical; }
select.form-control { appearance: auto; }

/* --- Clickable Rows --- */
.clickable-row { cursor: pointer; transition: var(--transition); }
.clickable-row:hover { background: rgba(59,130,246,0.06) !important; }

/* --- Tabs --- */
.tabs {
    display: flex; gap: 4px; margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
    padding: 10px 20px; border: none;
    background: none; cursor: pointer;
    font-size: 13px; font-weight: 600;
    color: var(--text-muted);
    border-bottom: none;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active { color: var(--primary); box-shadow: inset 0 -2px 0 var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* --- Modals --- */
.modal-backdrop {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    animation: fadeIn 0.2s ease;
}
.modal {
    background: var(--card-bg); border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    width: 90%; max-width: 600px; max-height: 90vh;
    display: flex; flex-direction: column;
    animation: slideUp 0.3s ease;
}
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px; border-bottom: 1px solid var(--border-color);
}
.modal-header h3 { font-size: 16px; font-weight: 700; }
.modal-close {
    background: none; border: none; font-size: 24px;
    color: var(--text-muted); cursor: pointer;
    line-height: 1;
}
.modal-body { padding: 24px; overflow-y: auto; flex: 1; min-height: 0; }
.modal-footer {
    display: flex; justify-content: flex-end; gap: 10px;
    padding: 16px 24px; border-top: 1px solid var(--border-color);
}
.btn-secondary { background: #e2e8f0; color: var(--text-primary); }
.btn-secondary:hover { background: #cbd5e1; }
.btn-lg { padding: 12px 28px; font-size: 14px; }

/* --- Student Detail Header --- */
.student-detail-header {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--card-bg); border-radius: var(--card-radius);
    box-shadow: var(--card-shadow); padding: 10px 20px;
    margin-bottom: 16px;
}
.student-detail-info { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.student-avatar-lg i { font-size: 38px; color: var(--primary); }
.student-meta h2 { font-size: 17px; font-weight: 700; margin-bottom: 2px; }
.meta-badges { display: flex; gap: 6px; margin-bottom: 4px; flex-wrap: wrap; }
.meta-details { display: flex; gap: 16px; font-size: 11px; color: var(--text-muted); }
.meta-details span { display: flex; align-items: center; gap: 4px; }
.student-stats-mini { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.mini-stat { text-align: center; min-width: 45px; }
.mini-val { font-size: 16px; font-weight: 800; color: var(--primary); display: block; line-height: 1.2; }
.mini-label { font-size: 10px; color: var(--text-muted); font-weight: 600; }
.mini-stat-divider { width: 1px; height: 32px; background: var(--border-color); margin: 0 4px; flex-shrink: 0; }
.stat-color-success { color: var(--success) !important; }
.stat-color-warning { color: #eab308 !important; }
.stat-color-danger { color: var(--danger) !important; }

/* --- Action Bar --- */
.action-bar { display: flex; gap: 10px; margin-bottom: 20px; }

/* --- HaftalÄ±k Plan Mini (Day Grid) --- */
.haftalik-plan-mini {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px;
}
.plan-gun { min-width: 0; }
.plan-gun-baslik {
    font-size: 11px; font-weight: 700;
    text-align: center; padding: 6px;
    background: var(--sidebar-bg); color: #fff; border-radius: 6px 6px 0 0;
}
.plan-item {
    padding: 6px 8px; font-size: 11px;
    border: 1px solid var(--border-color); border-top: none;
    background: #fff;
}
.plan-item.yapti { background: var(--success-light); border-color: var(--success); }
.plan-item.eksik { background: var(--warning-light); border-color: var(--warning); }
.plan-item.yapmadi { background: var(--danger-light); border-color: var(--danger); }
.plan-ders { font-weight: 700; color: #1e3a5f; display: block; }
.plan-konu { font-size: 10px; color: var(--text-secondary); display: block; }
.plan-adet { font-size: 10px; color: var(--primary); font-weight: 600; }
.plan-bos { text-align: center; padding: 12px 0; color: #cbd5e1; font-size: 12px; border: 1px solid var(--border-color); border-top: none; }

/* --- Ã–dev Row (Dynamic) --- */
.odev-row { margin-bottom: 8px; }
.odev-row-fields {
    display: grid; grid-template-columns: 100px 140px 140px 120px 70px 120px 1fr 40px;
    gap: 6px; align-items: center;
}
.odev-row-fields .form-control { padding: 7px 10px; font-size: 12px; }

/* --- Kontrol Table --- */
.gun-baslik {
    font-size: 14px; font-weight: 700; color: var(--primary);
    padding: 12px 0 6px; border-bottom: 2px solid var(--primary);
    margin-bottom: 8px; margin-top: 16px;
}
.gun-baslik:first-child { margin-top: 0; }
.kontrol-table .durum-select { min-width: 120px; }

/* --- Trends --- */
.trend-up { color: var(--success); font-weight: 700; }
.trend-down { color: var(--danger); font-weight: 700; }
.trend-same { color: var(--text-muted); }

/* --- Ders Detay Grid --- */
.ders-detay-grid {
    display: flex; flex-wrap: wrap; gap: 12px; padding: 8px 0;
}
.ders-detay-item {
    background: var(--body-bg); padding: 8px 14px; border-radius: 8px;
    display: flex; flex-direction: column;
}
.dd-ders { font-weight: 700; font-size: 12px; color: var(--text-primary); }
.dd-vals { font-size: 11px; color: var(--text-secondary); }

/* --- Ogrenci Link --- */
.ogrenci-link { font-weight: 600; color: var(--primary); }
.ogrenci-link:hover { text-decoration: underline; }

/* --- Text Helpers --- */
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Print --- */
@media print {
    .sidebar, .topbar, .app-footer, .no-print { display: none !important; }
    .main-content { margin-left: 0 !important; }
    .content-area { margin-top: 0 !important; padding: 0 !important; }
}

/* ==============================
   Ã–DEV BUILDER - Drag & Drop
   ============================== */

/* Card overflow:hidden kaldÄ±r â€” sticky palette iÃ§in gerekli */
.card:has(.odev-builder) {
    overflow: visible;
}
.card:has(.odev-builder) > .card-body {
    overflow: visible;
}

.odev-builder {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 16px;
    min-height: 500px;
}

/* -- Palette Column (Left) -- */
.odev-palette-col {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-self: start;
    position: sticky;
    top: calc(var(--topbar-height) + 12px);
    max-height: calc(100vh - var(--topbar-height) - 24px);
}
.odev-palette {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}
.palette-header {
    padding: 10px 12px;
    font-weight: 700;
    font-size: 13px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}
.palette-header i { color: var(--primary); }
.palette-items {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}
.palette-ders { margin-bottom: 4px; }
.palette-ders-baslik {
    padding: 4px 6px; font-size: 12px; font-weight: 700; cursor: pointer;
    background: #cbd5e1; border-radius: 6px; 
    display: flex; align-items: center; gap: 8px;
    transition: all 0.2s; color: #1e293b;
    user-select: none;
}
.palette-ders-baslik:hover { background: #e2e8f0; }
.palette-ders-baslik i { font-size: 10px; transition: transform 0.2s; color: var(--primary); }
.palette-ders.open > .palette-ders-baslik i { transform: rotate(90deg); }
.palette-ders.open > .palette-ders-baslik { border-radius: 6px 6px 0 0; }
.palette-ders-icerik { padding: 4px 6px; background: #cbd5e1; border-radius: 0 0 6px 6px; }
.palette-grup-baslik.open i { transform: rotate(90deg); }

.palette-konu { margin-bottom: 2px; }
.palette-konu:nth-child(even) > .palette-konu-baslik { background: #f1f5f9; }
.palette-konu:nth-child(odd) > .palette-konu-baslik { background: #eef4ff; }
.palette-konu.verilmis > .palette-konu-baslik { background: #d1fae5 !important; color: #9ca3af; }
.palette-konu.open > .palette-konu-baslik { border-radius: 4px 4px 0 0; }
.palette-konu:not(.verilmis) > .palette-konu-baslik { color: var(--text-primary); }
.palette-konu-baslik {
    padding: 3px 5px; font-size: 10px; font-weight: 600; cursor: pointer; 
    color: var(--text-secondary); display: flex; align-items: center; gap: 6px;
    transition: color 0.2s; border-radius: 4px;
    user-select: none;
}
.palette-konu-baslik:hover { color: var(--text-primary); }
.palette-konu-baslik i { font-size: 10px; transition: transform 0.2s; }
.palette-konu.open > .palette-konu-baslik i { transform: rotate(90deg); }
.palette-konu-icerik { padding: 4px; border-radius: 0 0 4px 4px; }
.palette-konu:nth-child(even).open > .palette-konu-icerik { background: #f1f5f9; }
.palette-konu:nth-child(odd).open > .palette-konu-icerik { background: #eef4ff; }
.palette-konu.verilmis.open > .palette-konu-icerik { background: #d1fae5 !important; }

.palette-item {
    padding: 3px 6px; margin: 1px 0; font-size: 10px; border-radius: 4px;
    cursor: grab; transition: all 0.15s ease; border: 1px solid transparent;
    background: var(--body-bg); user-select: none;
}
.palette-item:hover { background: #dbeafe; border-color: var(--primary-light); transform: translateX(2px); }
.palette-item.dragging { opacity: 0.5; transform: scale(0.95); }
.palette-item-text { pointer-events: none; }

.action-item {
    font-size: 10px; padding: 2px 4px; border-left: 2px solid var(--primary-light);
    background: #fff; margin: 2px 0; border-radius: 0 4px 4px 0; border: 1px solid var(--border-color); border-left-width: 2px;
}
.action-item:hover { background: #eff6ff; border-left-color: var(--primary); }

/* -- Grid Area (Right) -- */
.odev-grid-area { min-width: 0; }
.odev-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    background: var(--card-bg);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 12px;
    overflow-anchor: none;
}
.grid-day {
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.grid-day-header {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 4px;
    background: var(--sidebar-bg);
    color: #fff;
    border-radius: 6px 6px 0 0;
    flex-shrink: 0;
}
.grid-day-body {
    min-height: 200px;
    background: #f8fafc;
    border: 2px dashed var(--border-color);
    border-top: none;
    border-radius: 0 0 6px 6px;
    padding: 6px;
    padding-bottom: 40px;
    transition: background 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    overflow-anchor: none;
}
.grid-day-body.drag-over {
    background: #dbeafe;
    border-color: var(--primary);
    box-shadow: inset 0 0 12px rgba(59,130,246,0.15);
}
.grid-day-body:empty::after {
    content: 'SÃ¼rÃ¼kle & BÄ±rak';
    text-align: center;
    color: #cbd5e1;
    font-size: 10px;
    padding-top: 60px;
    pointer-events: none;
}

/* -- "Yeni SatÄ±r Ekle" Drop Zone (only visible during drag) -- */
.drop-end-zone {
    margin-top: auto;
    padding: 10px 4px;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: #16a34a;
    border: 2px dashed #86efac;
    border-radius: 6px;
    background: rgba(220, 252, 231, 0.5);
    cursor: copy;
    animation: fadeIn 0.15s ease;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.drop-end-zone span {
    opacity: 0.8;
    pointer-events: none;
}
.drag-over .drop-end-zone {
    background: rgba(187, 247, 208, 0.7);
    border-color: #22c55e;
    color: #15803d;
}
.drop-end-zone.drop-end-zone-active {
    background: rgba(134, 239, 172, 0.8);
    border-color: #16a34a;
    border-style: solid;
    color: #15803d;
    transform: scale(1.02);
}

/* -- Grid Items (Inside Days) -- */
.grid-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 4px 6px;
    font-size: 10px;
    cursor: grab;
    transition: all 0.15s ease;
    position: relative;
    z-index: 1;
}
.grid-row-separator {
    height: 8px;
    position: relative;
    margin: 1px 0;
    flex-shrink: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.grid-row-separator::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 50%;
    height: 2px;
    background-image: linear-gradient(to right, #b0b8c4 50%, transparent 50%);
    background-size: 8px 2px;
    background-repeat: repeat-x;
}
.grid-row-separator:hover::before {
    background-image: linear-gradient(to right, #3b82f6 50%, transparent 50%);
}
.grid-insert-zone {
    height: 8px;
    position: relative;
    margin: 0 0 1px 0;
    flex-shrink: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.grid-insert-btn {
    display: none;
    width: 16px; height: 16px;
    background: #3b82f6;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    z-index: 5;
    pointer-events: none;
}
.grid-row-separator:hover .grid-insert-btn,
.grid-insert-zone:hover .grid-insert-btn {
    display: block;
}
.grid-row-placeholder {
    min-height: 40px;
    pointer-events: none;
    flex-shrink: 0;
    background: repeating-linear-gradient(-45deg, transparent, transparent 4px, rgba(148,163,184,0.06) 4px, rgba(148,163,184,0.06) 8px);
    border-radius: 4px;
}
.grid-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.grid-item:focus-within {
    outline: 2px solid #3b82f6;
    outline-offset: -1px;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.2), 0 2px 12px rgba(59,130,246,0.15);
    z-index: 10;
    transform: scale(1.02);
}
.grid-item.dragging {
    opacity: 0.4;
    transform: rotate(2deg);
}
.drop-target-highlight {
    outline: 2px solid #3b82f6 !important;
    outline-offset: -2px;
    box-shadow: 0 0 12px rgba(59,130,246,0.4) !important;
    background: rgba(59,130,246,0.05) !important;
}
.gi-ders {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-weight: 700;
    font-size: 10px;
    color: #1e3a5f;
    margin-bottom: 0px;
    gap: 2px;
}
.gi-konu {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gi-controls {
    display: flex;
    gap: 3px;
    margin-top: 4px;
    align-items: center;
}
.gi-adet {
    width: 50px;
    padding: 3px 5px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 10px;
    text-align: center;
}
/* Number input wrapper (test/soru adet) focus border */
.gi-adet.no-spinner:focus {
    outline: none;
}
.grid-item div:has(> .gi-adet.no-spinner:focus) {
    border-color: #1e293b !important;
    box-shadow: 0 0 0 1px #1e293b;
}
.gi-kaynak {
    flex: 1;
    padding: 3px 5px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 10px;
    min-width: 0;
}
/* All grid item inputs: black border on focus */
.grid-item .gi-aciklama:focus,
.grid-item .gi-adet:not(.no-spinner):focus,
.grid-item .gi-kaynak:focus,
.grid-item .gi-kaynak-select:focus,
.grid-item .gi-konu:focus,
.grid-item .gi-ders-select:focus {
    border-color: #1e293b !important;
    box-shadow: 0 0 0 1px #1e293b;
    outline: none;
}
.gi-remove {
    width: 18px;
    height: 18px;
    border: none;
    background: var(--danger);
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    line-height: 16px;
    text-align: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}
.gi-remove:hover { background: #dc2626; }

/* -- Status Buttons (Control Grid) -- */
.status-btn-group {
    display: flex; gap: 4px; margin-bottom: 4px; border-radius: 4px; overflow: hidden;
}
.btn-status {
    flex: 1; padding: 4px 0; border: 1px solid var(--border-color);
    background: #f8fafc; color: var(--text-muted); border-radius: 4px;
    cursor: pointer; font-size: 11px; transition: all 0.2s;
}
.btn-status:hover { background: #e2e8f0; color: #334155; }
.btn-yapti.active { background: #22c55e; color: #fff; border-color: #22c55e; }
.btn-eksik.active { background: #eab308; color: #fff; border-color: #eab308; }
.btn-yapmadi.active { background: #ef4444; color: #fff; border-color: #ef4444; }

.day-status-toggles {
    display: flex; border-radius: 0 0 6px 6px; border: 1px solid var(--border-color); border-top: none;
    overflow: hidden; background: #f8fafc; height: 32px;
}
.btn-day-status {
    flex: 1; border: none; background: transparent; color: var(--text-secondary);
    padding: 0; cursor: pointer; transition: all 0.2s; font-size: 12px;
}
.btn-day-status:hover { background: #e2e8f0; }
.btn-day-status:not(:last-child) { border-right: 1px solid var(--border-color); }

.btn-day-yapti:hover { color: #22c55e; }
.btn-day-eksik:hover { color: #eab308; }
.btn-day-yapmadi:hover { color: #ef4444; }

/* -- Responsive -- */
@media (max-width: 1200px) {
    .odev-builder {
        grid-template-columns: 200px 1fr;
    }
    /* Hafta ayarlarÄ± - tablette kompakt */
    .odev-grid-area .form-row-3 {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 8px;
    }
    .odev-grid-area .form-row-3 .form-group {
        min-width: 0;
        overflow: hidden;
    }
    .odev-grid-area .form-row-3 .form-group label {
        font-size: 11px;
    }
    .odev-grid-area .form-row-3 .form-control,
    .odev-grid-area .form-row-3 input[type="datetime-local"] {
        padding: 4px 6px;
        font-size: 11px;
        height: 30px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
}
@media (max-width: 900px) {
    .odev-builder {
        grid-template-columns: 1fr;
    }
    .odev-palette-col {
        position: static;
        max-height: none;
    }
    .odev-palette {
        max-height: 250px;
    }
    .odev-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .grid-day-body {
        min-height: 120px;
    }
    .odev-grid-area .form-row-3 {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
}
@media (max-width: 600px) {
    .odev-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-day-body {
        min-height: 80px;
    }
}

/* ==============================
   Ã–DEV Ä°STATÄ°STÄ°K PANELÄ°
   ============================== */
.odev-istatistik-panel {
    border-radius: 6px;
    overflow: hidden;
    font-size: 10px;
}
.istat-header {
    padding: 5px 8px;
    font-weight: 800;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    background: linear-gradient(135deg, #92400e, #d97706);
    color: #fff;
    border-radius: 6px;
    user-select: none;
}
.istat-header:hover { opacity: 0.9; }
.istat-badge {
    margin-left: auto;
    font-size: 10px;
    opacity: 0.7;
    font-weight: 600;
}
.istat-body {
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    background: #e2e8f0;
    border-radius: 0 0 6px 6px;
}
.istat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.5);
    gap: 4px;
}
.istat-row:last-child { border-bottom: none; }
.istat-ders {
    font-weight: 600;
    font-size: 10px;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
}
.istat-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.istat-kez {
    font-weight: 700;
    font-size: 10px;
    color: #3b82f6;
}

/* Mobil: istatistik paneli */
@media (max-width: 900px) {
    .istat-body { max-height: 120px; }
}

.istat-body {
    background: #fef3c7;
}
.istat-row {
    border-bottom-color: rgba(180,120,20,0.15);
}
.istat-kez {
    color: #b45309;
}

/* ==============================
   ROW DRAG HANDLE
   ============================== */
.odev-grid-area {
    overflow: visible;
}
#odevGrid {
    position: relative;
    overflow: visible;
}
.row-drag-handle {
    position: absolute;
    left: -12px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    border-radius: 5px;
    cursor: grab;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(59,130,246,0.5);
    transition: background 0.15s, box-shadow 0.15s;
    user-select: none;
    pointer-events: auto;
}
.row-drag-handle:hover {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    box-shadow: 0 3px 12px rgba(59,130,246,0.6);
}
.row-drag-handle:active {
    cursor: grabbing;
}
.row-insert-handle {
    position: absolute;
    left: -12px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #10b981, #14b8a6);
    color: #fff;
    border-radius: 5px;
    cursor: grab;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    z-index: 101;
    box-shadow: 0 2px 8px rgba(16,185,129,0.5);
    transition: background 0.15s, box-shadow 0.15s;
    user-select: none;
    pointer-events: auto;
}
.row-insert-handle:hover {
    background: linear-gradient(135deg, #059669, #0d9488);
    box-shadow: 0 3px 12px rgba(16,185,129,0.6);
}
.row-insert-handle:active {
    cursor: grabbing;
}
.grid-item.row-drag-highlight {
    outline: 2px solid #f59e0b !important;
    outline-offset: -1px;
    box-shadow: 0 0 8px rgba(245,158,11,0.3) !important;
}
.grid-item.row-dragging-source {
    opacity: 0.5;
    outline: 2px dashed #3b82f6 !important;
    outline-offset: 1px;
    background: rgba(59,130,246,0.08) !important;
    box-shadow: 0 0 12px rgba(59,130,246,0.25) !important;
}
.row-drop-indicator {
    height: 3px;
    background: #3b82f6;
    border-radius: 2px;
    margin: 1px 0;
    box-shadow: 0 0 6px rgba(59,130,246,0.5);
    pointer-events: none;
    animation: fadeIn 0.15s ease;
}
.row-drop-target-box {
    position: absolute;
    left: -14px;
    width: 28px;
    border: 2px dashed #94a3b8;
    background: rgba(148,163,184,0.08);
    border-radius: 6px;
    pointer-events: auto;
    cursor: copy;
    z-index: 49;
    transition: all 0.15s ease;
}
.row-drop-target-box.active {
    border-color: #3b82f6;
    background: rgba(59,130,246,0.15);
    box-shadow: 0 0 12px rgba(59,130,246,0.4);
}
/* Mobilde inputlara tiklaninca ekrani yaklastirmamasi (zoom yapmamasi) icin genel engel */
@media (max-width: 768px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

.row-merge-handle {
    position: absolute;
    left: -12px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: #fff;
    border-radius: 5px;
    cursor: grab;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 99;
    box-shadow: 0 2px 8px rgba(245,158,11,0.5);
    transition: background 0.15s, box-shadow 0.15s;
    user-select: none;
    pointer-events: auto;
}
.row-merge-handle:hover {
    background: linear-gradient(135deg, #d97706, #c2410c);
    box-shadow: 0 3px 12px rgba(245,158,11,0.6);
}
.row-merge-handle:active {
    cursor: grabbing;
}
.grid-item-empty {
    min-height: 58px;
    background: #f1f5f9 !important;
    border: 1px dashed #e2e8f0 !important;
    border-radius: 6px;
    pointer-events: none;
}
.row-delete-handle {
    position: absolute;
    left: -12px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 98;
    box-shadow: 0 2px 8px rgba(239,68,68,0.5);
    transition: background 0.15s, box-shadow 0.15s;
    user-select: none;
    pointer-events: auto;
}
.row-delete-handle:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 3px 12px rgba(239,68,68,0.6);
}
.grid-item.row-merge-conflict {
    outline: 3px solid #ef4444 !important;
    outline-offset: -1px;
    box-shadow: 0 0 12px rgba(239,68,68,0.4) !important;
    animation: mergeConflictPulse 0.5s ease 2;
}
@keyframes mergeConflictPulse {
    0%, 100% { outline-color: #ef4444; }
    50% { outline-color: #f59e0b; }
}
