/* --- ENFORCED GRID SYSTEM --- */
.card-grid { 
    display: grid !important; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important; 
    gap: 20px !important; 
    width: 100% !important; 
}

/* --- ACTION BUTTONS (Icons fixed to White) --- */
.action-btn { 
    background: var(--bg-panel); 
    border: 1px solid var(--border-color); 
    color: var(--text-main); 
    padding: 12px 20px; 
    border-radius: 8px; 
    font-weight: 600; 
    font-size: 14px; 
    display: inline-flex; 
    align-items: center; 
    gap: 10px; 
    cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
    text-decoration: none; 
}
.action-btn i { 
    color: #ffffff !important; 
    transition: none !important; 
    transform: none !important;
}
.action-btn:hover { transform: translateY(-3px); }
.action-btn.calendar { border-color: var(--accent-violet); background: rgba(139, 92, 246, 0.08); }
.action-btn.calendar:hover { background: var(--accent-violet); box-shadow: 0 8px 25px var(--accent-glow); }
.action-btn.pdf { border-color: #10b981; background: rgba(16, 185, 129, 0.08); }
.action-btn.pdf:hover { background: #10b981; box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4); }
.action-btn.report { border-color: #ef4444; background: rgba(239, 68, 68, 0.08); }
.action-btn.report:hover { background: #ef4444; box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4); }

/* --- MODAL OVERLAY --- */
.custom-modal { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; 
    background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(10px); 
    z-index: 9999; 
    display: none; 
    align-items: center; justify-content: center; 
}
.modal-card { 
    background: var(--bg-panel); border: 1px solid var(--border-color); 
    border-radius: 16px; padding: 35px; width: 90%; max-width: 480px; 
    position: relative; box-shadow: 0 20px 40px rgba(0,0,0,0.8); 
}

/* --- INITIAL SKELETON SHIMMER --- */
.skeleton-card {
    background: var(--bg-panel); border: 1px solid var(--border-color);
    border-radius: 12px; padding: 25px; min-height: 130px; position: relative; overflow: hidden;
}
.skeleton-card::after {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%); animation: skeleton-shimmer 1.5s infinite;
}
.skeleton-icon { width: 40px; height: 40px; border-radius: 50%; background: #1a1a1e; margin-bottom: 15px; }
.skeleton-text-1 { width: 60%; height: 20px; background: #1a1a1e; border-radius: 4px; margin-bottom: 10px; }
.skeleton-text-2 { width: 40%; height: 14px; background: #1a1a1e; border-radius: 4px; }
@keyframes skeleton-shimmer { 100% { transform: translateX(100%); } }

/* --- TIMETABLE ROW STYLES --- */
.schedule-row { display: flex; align-items: center; background: rgba(255,255,255,0.03); margin-bottom: 10px; padding: 15px; border-radius: 8px; border: 1px solid var(--border-color); }
.time-pill { font-weight: 800; color: var(--accent-violet); width: 150px; font-size: 15px; }
.subject-title { flex: 1; font-weight: 600; font-size: 16px; }

/* --- PDF PRINT STYLING --- */
@media print {
    body * { visibility: hidden; }
    #schedule-box, #schedule-box * { visibility: visible; }
    #schedule-box { position: absolute; left: 0; top: 0; width: 100%; background: white !important; color: black !important; border: none !important; box-shadow: none !important; padding: 0 !important; }
    #schedule-data h2 { color: #000 !important; border-bottom: 2px solid #8B5CF6; padding-bottom: 10px; }
    .time-pill { color: #8B5CF6 !important; }
    .schedule-row { border: 1px solid #ccc !important; background: #fafafa !important; color: #000 !important; }
    .no-print { display: none !important; }
}