/* 
 * Alap Technical Training Center (BTEB-50353)
 * Modern Design System & Specialized Styles
 */

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0b325e;
    --primary-light: #164e87;
    --primary-dark: #072242;
    --secondary: #0284c7;
    --accent: #0ea5e9;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --text-main: #0f172a;
    --text-muted: #475569;
    --bg-page: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Hind Siliguri', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-page);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

.font-bangla {
    font-family: 'Hind Siliguri', 'Inter', sans-serif;
}

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

.fade-in {
    animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Glass Header Effect */
.header-glass {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
}

/* Marquee for Breaking Announcements */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
}
.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}
.marquee-content:hover {
    animation-play-state: paused;
}
@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Result Status Badges */
.badge-pass {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #065f46;
    background-color: #d1fae5;
    border: 1px solid #a7f3d0;
    border-radius: 9999px;
}

.badge-fail {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #991b1b;
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 9999px;
}

/* Official Result Card Container */
.result-certificate-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(11, 50, 94, 0.08), 0 8px 10px -6px rgba(11, 50, 94, 0.04);
    position: relative;
    overflow: hidden;
}

.result-certificate-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #0b325e 0%, #0284c7 50%, #10b981 100%);
}

/* Print Specific Rules for Result Sheet */
@media print {
    body * {
        visibility: hidden;
    }
    
    #printable-result-card, #printable-result-card * {
        visibility: visible;
    }

    #printable-result-card {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 20px;
        box-shadow: none !important;
        border: 2px solid #0b325e !important;
    }

    .no-print {
        display: none !important;
    }
}

/* Responsive Table Wrapper */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Editable cells in preview table */
.cell-editable {
    outline: none;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px dashed transparent;
    transition: all 0.2s ease;
}
.cell-editable:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}
.cell-editable:focus {
    border-color: #0284c7;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}
