/* Layout utama */
* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    display: flex;
    min-height: 100vh;
    margin: 0;
    background: #f8f9fa;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.8rem;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--card-shadow);
    display: none;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: #1a5cc8;
    transform: scale(1.05);
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(32,124,229,0.18) 0%, rgba(106,130,251,0.18) 100%);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Page title styling */
h1 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 2rem;
}

/* Main content styling */
.main-content {
    flex: 1;
    margin-left: 220px;
    padding: 2rem;
    background: #f8f9fa;
    overflow-x: hidden; /* Prevent horizontal scroll */
    max-width: calc(100vw - 220px);
    width: calc(100vw - 220px);
    box-sizing: border-box;
}

/* Stats container */
.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.stat-box, .stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.stat-box h3 {
    color: #666;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Filter container */
.filter-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.filter-select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 150px;
    max-width: 100%;
    box-sizing: border-box;
}

/* Table styling */
.table-responsive {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px; /* Minimum width for proper table display */
}

.history-table th,
.history-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.history-table th {
    font-weight: 600;
    color: #666;
    background: #f8f9fa;
}

/* Badge styling */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-ujian { background: var(--primary-color); color: white; }
.badge-latihan { background: #4caf50; color: white; }
.badge-full { background: #9c27b0; color: white; }
.badge-belum-lulus { background: #f44336; color: white; }
.badge-lulus { background: #4caf50; color: white; }

/* Action buttons */
.btn-action {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 0.2rem;
}

.btn-cetak { background: var(--primary-color); color: white; }
.btn-delete { background: #f44336; color: white; }

/* Reset button */
.btn-danger {
    background: #ff4757;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background-color: #fff;
    margin: 2% auto;
    padding: 0;
    border-radius: 16px;
    width: 95%;
    max-width: 900px;
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
    position: relative;
}

@keyframes slideIn {
    from { 
        transform: translateY(-50px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.close-btn:hover {
    color: #e74c3c;
    background: #fff;
    transform: scale(1.1);
}

/* Certificate Styles */
.certificate {
    width: 100%;
    padding: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 3px solid #2471f3;
    position: relative;
    font-family: 'Georgia', serif;
    min-height: 600px;
    box-sizing: border-box;
}

.certificate::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    border: 2px solid #2471f3;
    border-radius: 8px;
    pointer-events: none;
    opacity: 0.3;
}

/* Decorative corners */
.certificate::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30px 30px, #2471f3 2px, transparent 2px),
        radial-gradient(circle at calc(100% - 30px) 30px, #2471f3 2px, transparent 2px),
        radial-gradient(circle at 30px calc(100% - 30px), #2471f3 2px, transparent 2px),
        radial-gradient(circle at calc(100% - 30px) calc(100% - 30px), #2471f3 2px, transparent 2px);
    pointer-events: none;
    opacity: 0.6;
}

.certificate-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 3px solid #2471f3;
    padding-bottom: 25px;
    position: relative;
}

.certificate-title {
    font-size: 42px;
    color: #2471f3;
    font-weight: bold;
    margin: 20px 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(36, 113, 243, 0.1);
    line-height: 1.2;
}

.certificate-subtitle {
    font-size: 20px;
    color: #555;
    margin: 15px 0;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

.certificate-content {
    text-align: center;
    margin: 50px 0;
    position: relative;
}

.certificate-score {
    font-size: 72px;
    color: #2471f3;
    font-weight: bold;
    margin: 30px 0;
    border: 4px solid #2471f3;
    display: inline-block;
    padding: 20px 50px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(36, 113, 243, 0.05) 0%, rgba(36, 113, 243, 0.1) 100%);
    box-shadow: 0 8px 25px rgba(36, 113, 243, 0.2);
    position: relative;
    overflow: hidden;
}

.certificate-score::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
    100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

.certificate-details {
    margin: 35px 0;
    font-size: 18px;
    line-height: 2;
    color: #444;
    background: rgba(36, 113, 243, 0.05);
    padding: 25px;
    border-radius: 12px;
    border-left: 5px solid #2471f3;
}

.certificate-status {
    margin: 25px 0;
    font-size: 20px;
    font-weight: 600;
}

.status-lulus {
    background: linear-gradient(135deg, #e3fcef, #d1f2dd);
    color: #0d9448;
    padding: 8px 20px;
    border-radius: 25px;
    border: 2px solid #0d9448;
    display: inline-block;
}

.status-tidak {
    background: linear-gradient(135deg, #ffe9e9, #ffdddd);
    color: #d63031;
    padding: 8px 20px;
    border-radius: 25px;
    border: 2px solid #d63031;
    display: inline-block;
}

.certificate-footer {
    border-top: 3px solid #2471f3;
    padding-top: 25px;
    text-align: center;
    margin-top: 50px;
    background: rgba(36, 113, 243, 0.02);
    margin-left: -40px;
    margin-right: -40px;
    margin-bottom: -40px;
    padding-left: 40px;
    padding-right: 40px;
    padding-bottom: 40px;
}

.certificate-validation {
    font-size: 14px;
    color: #666;
    margin-top: 20px;
    font-style: italic;
    line-height: 1.6;
}

/* Modal Footer */
.modal-footer {
    padding: 25px 40px;
    text-align: center;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 16px 16px;
}

.btn-cetak {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-cetak:hover {
    background: linear-gradient(135deg, #218838, #1dc1a3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.btn-cetak:active {
    transform: translateY(0);
}

.btn-cetak i {
    font-size: 18px;
}

/* ===================== */
/* PRINT STYLES - FINAL */
/* ===================== */
@media print {
    @page {
        size: A4;
        margin: 20mm;
    }
    
    /* Reset everything */
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    /* Hide everything by default */
    body > * {
        display: none !important;
    }
    
    /* Show only certificate modal */
    #certificateModal {
        display: block !important;
        position: static !important;
        background: white !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: auto !important;
        backdrop-filter: none !important;
    }
    
    #certificateModal .modal-content {
        position: static !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: white !important;
        transform: none !important;
    }
    
    /* Certificate base styling */
    .certificate {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 20pt !important;
        background: white !important;
        border: 2px solid #2471f3 !important;
        color: black !important;
        font-family: Arial, sans-serif !important;
        font-size: 11pt !important;
        line-height: 1.4 !important;
        page-break-inside: avoid !important;
    }
    
    /* Certificate header */
    .certificate-header {
        text-align: center !important;
        margin-bottom: 20pt !important;
        padding-bottom: 15pt !important;
        border-bottom: 1px solid #2471f3 !important;
    }
    
    .certificate-title {
        font-size: 22pt !important;
        color: #2471f3 !important;
        margin: 10pt 0 !important;
        font-weight: bold !important;
    }
    
    .certificate-subtitle {
        font-size: 12pt !important;
        color: #666 !important;
        margin: 5pt 0 !important;
    }
    
    /* Certificate content */
    .certificate-content {
        text-align: center !important;
        margin: 15pt 0 !important;
    }
    
    .cert-info-box {
        font-size: 10pt !important;
        padding: 12pt !important;
        margin-bottom: 20pt !important;
        background: #f5f5f5 !important;
        border-left: 4px solid #2471f3 !important;
        text-align: left !important;
        color: black !important;
    }
    
    .certificate-score {
        font-size: 32pt !important;
        color: #2471f3 !important;
        font-weight: bold !important;
        margin: 20pt 0 !important;
        padding: 15pt 25pt !important;
        border: 2px solid #2471f3 !important;
        background: #f5f5f5 !important;
        border-radius: 8pt !important;
        display: inline-block !important;
    }
    
    .certificate-details {
        font-size: 10pt !important;
        margin: 15pt 0 !important;
        padding: 12pt !important;
        text-align: left !important;
        line-height: 1.5 !important;
    }
    
    .certificate-status {
        margin: 20pt 0 !important;
        font-size: 12pt !important;
        text-align: center !important;
    }
    
    .status-lulus {
        background: #d4edda !important;
        color: #155724 !important;
        padding: 8pt 15pt !important;
        border: 1px solid #155724 !important;
        border-radius: 5pt !important;
        font-weight: bold !important;
        display: inline-block !important;
    }
    
    .status-tidak {
        background: #f8d7da !important;
        color: #721c24 !important;
        padding: 8pt 15pt !important;
        border: 1px solid #721c24 !important;
        border-radius: 5pt !important;
        font-weight: bold !important;
        display: inline-block !important;
    }
    
    .certificate-footer {
        border-top: 1px solid #2471f3 !important;
        padding-top: 15pt !important;
        margin-top: 20pt !important;
        background: #f5f5f5 !important;
        text-align: center !important;
        font-size: 9pt !important;
    }
    
    /* Fix layout elements */
    .cert-header-flex,
    .cert-footer-flex {
        display: block !important;
        text-align: center !important;
    }
    
    .cert-logo {
        display: inline-block !important;
        width: 40pt !important;
        height: 40pt !important;
        background: #2471f3 !important;
        color: white !important;
        text-align: center !important;
        line-height: 40pt !important;
        border-radius: 50% !important;
        font-weight: bold !important;
        font-size: 18pt !important;
        margin-bottom: 10pt !important;
    }
    
    /* Grid layouts for breakdown */
    .score-breakdown {
        text-align: center !important;
        margin: 15pt 0 !important;
    }
    
    .score-item {
        display: inline-block !important;
        margin: 5pt !important;
        padding: 10pt !important;
        border: 1px solid #ccc !important;
        background: white !important;
        text-align: center !important;
        min-width: 60pt !important;
        vertical-align: top !important;
    }
    
    .item-score {
        font-size: 16pt !important;
        font-weight: bold !important;
        margin-bottom: 5pt !important;
    }
    
    .item-label {
        font-size: 9pt !important;
    }
    
    /* Ensure color printing */
    body {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color: black !important;
        background: white !important;
    }
}

/* Print mode helper */
body.print-mode {
    overflow: hidden !important;
}

body.print-mode * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
}

body.print-mode .certificate {
    animation: none !important;
}

body.print-mode .certificate-score::before {
    display: none !important;
}

/* Global Logout Button Styling - Warna Merah Konsisten */
.logout-btn {
    background: #dc3545 !important;
    color: #fff !important;
    border: none !important;
}

.logout-btn:hover {
    background: #c82333 !important;
    box-shadow: 0 4px 15px rgba(220,53,69,0.35) !important;
}

.logout-btn:active {
    background: #bd2130 !important;
}

/* =========================== */
/* RESPONSIVE MEDIA QUERIES */
/* =========================== */

/* Mobile devices - 768px and down */
@media screen and (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .sidebar-overlay.active {
        display: block;
        opacity: 1;
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
        padding-top: 4rem; /* Space for mobile menu button */
        max-width: 100vw;
        width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    h1 {
        font-size: 1.5rem;
        margin-top: 0.5rem;
        margin-bottom: 1rem;
        text-align: left;
        word-wrap: break-word;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
        max-width: 100%;
    }

    .stat-box, .stat-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .filter-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        width: 100%;
        max-width: 100%;
    }

    .filter-select {
        min-width: auto;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .btn-danger {
        width: 100%;
        margin-top: 0.5rem;
        box-sizing: border-box;
    }

    .table-responsive {
        overflow-x: auto;
        padding: 0.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
    }

    .history-table {
        min-width: 600px; /* Reduced for mobile */
        font-size: 0.85rem;
    }

    .history-table th,
    .history-table td {
        padding: 0.5rem;
        white-space: nowrap;
        font-size: 0.8rem;
    }

    .btn-action {
        padding: 0.3rem 0.5rem;
        margin: 0 0.1rem;
        font-size: 0.75rem;
    }

    .badge {
        padding: 0.2rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* Tablets - 769px to 991px */
@media screen and (min-width: 769px) and (max-width: 991px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .sidebar-overlay.active {
        display: block;
        opacity: 1;
    }
    
    .main-content {
        margin-left: 0;
        padding: 1.5rem;
        padding-top: 4rem;
        max-width: 100vw;
        width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .filter-container {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .filter-select {
        min-width: 150px;
        flex: 1;
        max-width: calc(50% - 0.5rem);
    }

    .btn-danger {
        flex: 1;
        min-width: 200px;
    }
}

/* Desktop - 992px and up */
@media screen and (min-width: 992px) {
    .mobile-menu-btn {
        display: none;
    }
    
    .sidebar {
        transform: translateX(0);
    }
    
    .sidebar-overlay {
        display: none !important;
    }
    
    .main-content {
        margin-left: 220px;
        padding: 2rem;
        max-width: calc(100vw - 220px);
        width: calc(100vw - 220px);
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .stats-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* ============================== */
/* CERTIFICATE RESPONSIVE STYLES */
/* ============================== */

/* Mobile styles - 576px and down */
@media screen and (max-width: 576px) {
    .modal-content {
        margin: 0;
        border-radius: 0;
        width: 100%;
        height: 100%;
        max-height: 100vh;
    }
    
    .certificate {
        padding: 20px;
        min-height: auto;
    }
    
    .certificate-title {
        font-size: 24px;
        letter-spacing: 1px;
        margin: 10px 0;
    }
    
    .certificate-subtitle {
        font-size: 14px;
        margin: 8px 0;
    }
    
    .certificate-score {
        font-size: 40px;
        padding: 15px 25px;
        margin: 20px 0;
    }
    
    .certificate-details {
        font-size: 14px;
        padding: 15px;
        margin: 20px 0;
        line-height: 1.5;
    }
    
    .cert-info-box {
        font-size: 14px;
        padding: 10px;
    }
    
    .score-breakdown {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .item-score {
        font-size: 18px;
    }
    
    .certificate-footer {
        margin-left: -20px;
        margin-right: -20px;
        margin-bottom: -20px;
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 20px;
    }
    
    .cert-header-flex, .cert-footer-flex {
        flex-direction: column;
        gap: 10px;
    }
    
    .cert-header-text, .cert-footer-text {
        text-align: center;
    }
    
    .test-details {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .btn-cetak {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }
}

/* Tablet styles - 577px to 991px */
@media screen and (min-width: 577px) and (max-width: 991px) {
    .certificate {
        padding: 30px;
    }
    
    .certificate-title {
        font-size: 32px;
    }
    
    .certificate-score {
        font-size: 54px;
    }
    
    .certificate-details {
        font-size: 16px;
        padding: 20px;
    }
    
    .score-breakdown {
        gap: 15px;
    }
}

/* ===================== */
/* PRINT STYLES - A4 OPTIMIZED */
/* ===================== */
@media print {
    @page {
        size: A4 portrait;
        margin: 0.5cm;
    }
    
    /* Hide everything except certificate */
    body * {
        visibility: hidden;
    }
    
    body {
        margin: 0;
        padding: 0;
        background: #fff;
    }
    
    #certificateModal, #certificateModal * {
        visibility: visible;
    }
    
    #certificateModal {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        background: #fff;
        overflow: visible;
    }
    
    .modal-content {
        box-shadow: none;
        margin: 0;
        padding: 0;
        width: 100%;
        max-width: none;
        border: none;
        background: #fff;
    }
    
    .certificate {
        width: 100%;
        height: auto;
        padding: 1cm;
        border: 1px solid #2471f3;
        margin: 0;
        font-size: 11pt;
        min-height: auto;
    }
    
    .close-btn, .modal-footer {
        display: none;
    }
    
    /* Certificate header */
    .certificate-header {
        margin-bottom: 1cm;
        border-bottom: 1px solid #2471f3;
        padding-bottom: 0.5cm;
    }
    
    .certificate-title {
        font-size: 24pt;
        margin: 0.5cm 0;
        color: #2471f3;
    }
    
    .certificate-subtitle {
        font-size: 12pt;
        margin: 0.3cm 0;
    }
    
    /* Certificate content */
    .certificate-content {
        margin: 1cm 0;
    }
    
    .certificate-score {
        font-size: 36pt;
        padding: 0.5cm 1cm;
        margin: 0.7cm auto;
        border: 2px solid #2471f3;
        color: #2471f3;
        background: rgba(36, 113, 243, 0.05);
        display: inline-block;
    }
    
    .cert-info-box {
        margin-bottom: 0.5cm;
        padding: 0.3cm;
        font-size: 10pt;
        background: #f9f9f9;
        border-left: 3px solid #2471f3;
    }
    
    /* Stop animations */
    .certificate-score::before {
        display: none;
    }
    
    .certificate-details {
        margin: 0.5cm 0;
        padding: 0.5cm;
        font-size: 10pt;
        line-height: 1.4;
        background: #f9f9f9;
    }
    
    .score-breakdown {
        display: flex;
        justify-content: space-around;
        gap: 0.5cm;
        margin: 0.5cm 0;
    }
    
    .score-item {
        flex: 1;
        padding: 0.3cm;
        border: 1px solid;
        background: #fff;
    }
    
    .item-score {
        font-size: 16pt;
    }
    
    .item-label {
        font-size: 9pt;
    }
    
    .certificate-footer {
        border-top: 1px solid #2471f3;
        padding-top: 0.5cm;
        margin-top: 0.7cm;
        padding-bottom: 0.5cm;
        font-size: 9pt;
    }
    
    .certificate-validation {
        font-size: 8pt;
        line-height: 1.3;
    }
    
    /* Force showing backgrounds and colors */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }
}

/* Hapus duplikasi CSS untuk modal dan certificate di bawah */

