/* Custom styles */
body {
    font-family: 'K2D','Sarabun', sans-serif;
}

/* Animation for cards */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Responsive table */
.responsive-table {
    width: 100%;
    overflow-x: auto;
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        background: none;
        font-size: 12pt;
    }
    
    .print-full-width {
        width: 100%;
    }
}

/* สไตล์สำหรับแท็บ */
#studentDataTabs button {
    transition: all 0.3s ease;
}

#studentDataTabs button.active {
    color: #2563eb;
    font-weight: 600;
}

.tab-content {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==========================================
   Custom Gradient Cards (Fallback & Override)
   ========================================== */

/* Card สีฟ้า (พฤศจิกายน) */
.card-gradient-blue {
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%); /* from-blue-400 to-blue-600 */
    color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card-gradient-blue:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Card สีเขียว (มิถุนายน) */
.card-gradient-green {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%); /* from-emerald-400 to-emerald-600 */
    color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card-gradient-green:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* กล่องข้อความโปร่งแสงด้านใน Card */
.card-inner-box {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 0.05rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px); /* สำหรับ Safari */
}

/* ลูกศรลูกเล่น */
.card-arrow {
    transition: transform 0.3s ease;
}

.card-gradient-blue:hover .card-arrow,
.card-gradient-green:hover .card-arrow {
    transform: translateX(5px);
}