/* =============================================
   COMPUTER LEARNING CENTER - SISTEM PENILAIAN
   Responsive CSS - Mobile First Approach
   ============================================= */

:root {
    --primary-color: #e94560;
    --primary-light: #ff6b6b;
    --dark-bg: #1a1a2e;
    --dark-secondary: #16213e;
    --excel-color: #27ae60;
    --word-color: #2980b9;
    --ppt-color: #e74c3c;
    --safe-area-inset-top: env(safe-area-inset-top, 0px);
    --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-inset-left: env(safe-area-inset-left, 0px);
    --safe-area-inset-right: env(safe-area-inset-right, 0px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background: #f0f2f5;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding-top: var(--safe-area-inset-top);
    padding-bottom: var(--safe-area-inset-bottom);
    padding-left: var(--safe-area-inset-left);
    padding-right: var(--safe-area-inset-right);
}

/* ===== HEADER ===== */
.main-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #e94560 0%, #ff6b6b 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
    flex-shrink: 0;
}

.logo-text {
    min-width: 0;
    overflow: hidden;
}

.logo-text h1 {
    font-size: clamp(0.75rem, 3.5vw, 1rem);
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logo-text p {
    font-size: clamp(0.55rem, 2vw, 0.7rem);
    opacity: 0.8;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.header-info {
    text-align: right;
    font-size: clamp(0.6rem, 2.5vw, 0.75rem);
    flex-shrink: 0;
    white-space: nowrap;
}

.header-info .date {
    opacity: 0.9;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    padding: 12px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

/* ===== CARD PESERTA ===== */
.peserta-card {
    background: white;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.peserta-card .card-title {
    font-size: clamp(0.85rem, 3vw, 1rem);
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.peserta-card .card-title::before {
    content: "";
    width: 3px;
    height: 18px;
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    border-radius: 2px;
    flex-shrink: 0;
}

.peserta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #444;
    font-size: clamp(0.75rem, 2.5vw, 0.85rem);
}

.form-group select,
.form-group input[type="date"] {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: clamp(0.85rem, 3vw, 0.95rem);
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fafafa;
    min-height: 44px;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: #e94560;
    background: white;
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

/* ===== SEARCHABLE SELECT ===== */
.search-select-container {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: clamp(0.85rem, 3vw, 0.95rem);
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fafafa;
    min-height: 44px;
}

.search-input:focus {
    outline: none;
    border-color: #e94560;
    background: white;
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.search-input.has-selection {
    display: none;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e8e8e8;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    -webkit-overflow-scrolling: touch;
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover,
.search-result-item:active {
    background: #f8f9fa;
}

.search-result-item.highlighted {
    background: rgba(233, 69, 96, 0.1);
}

.search-result-item .nip {
    font-weight: 600;
    color: #e94560;
    font-size: clamp(0.75rem, 2.5vw, 0.85rem);
    min-width: 55px;
    flex-shrink: 0;
}

.search-result-item .nama {
    color: #333;
    font-size: clamp(0.8rem, 2.8vw, 0.9rem);
    word-break: break-word;
}

.search-no-result {
    padding: 12px;
    text-align: center;
    color: #999;
    font-size: 0.85rem;
}

.selected-peserta {
    display: none;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.08), rgba(255, 107, 107, 0.08));
    border: 2px solid #e94560;
    border-radius: 8px;
    position: relative;
    min-height: 44px;
}

.selected-peserta.active {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.selected-peserta .info {
    flex: 1;
    min-width: 0;
}

.selected-peserta .info .nip {
    font-weight: 600;
    color: #e94560;
    font-size: clamp(0.7rem, 2.5vw, 0.8rem);
}

.selected-peserta .info .nama {
    color: #1a1a2e;
    font-size: clamp(0.85rem, 3vw, 0.95rem);
    font-weight: 500;
    word-break: break-word;
}

.selected-peserta .btn-clear {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(233, 69, 96, 0.15);
    color: #e94560;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.selected-peserta .btn-clear:hover,
.selected-peserta .btn-clear:active {
    background: #e94560;
    color: white;
}

/* ===== TABS ===== */
.tabs-container {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 12px;
}

.tabs-header {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #e8e8e8;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tabs-header::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    flex: 1;
    min-width: 0;
    padding: 10px 6px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: clamp(0.7rem, 2.5vw, 0.85rem);
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    position: relative;
}

.tab-btn::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    transition: all 0.3s ease;
}

.tab-btn:hover,
.tab-btn:active {
    background: #f0f0f0;
}

.tab-btn.active {
    color: #1a1a2e;
    background: white;
}

.tab-btn.active.excel::after { background: #27ae60; }
.tab-btn.active.word::after { background: #2980b9; }
.tab-btn.active.ppt::after { background: #e74c3c; }

.tab-btn .icon {
    font-size: 1.1rem;
}

.tab-btn .text {
    display: none;
}

.tab-btn .avg {
    background: #e8e8e8;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: clamp(0.6rem, 2vw, 0.7rem);
    font-weight: 700;
    min-width: 30px;
    text-align: center;
}

.tab-btn.excel .avg { background: rgba(39, 174, 96, 0.15); color: #27ae60; }
.tab-btn.word .avg { background: rgba(41, 128, 185, 0.15); color: #2980b9; }
.tab-btn.ppt .avg { background: rgba(231, 76, 60, 0.15); color: #e74c3c; }

.tab-content {
    display: none;
    padding: 12px;
}

.tab-content.active {
    display: block;
}

/* ===== SCORE GRID ===== */
.score-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.score-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.2s ease;
    min-height: 44px;
}

.score-item:hover,
.score-item:focus-within {
    background: #f0f0f0;
}

.score-item .number {
    width: 22px;
    height: 22px;
    background: #e8e8e8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.6rem, 2vw, 0.7rem);
    font-weight: 600;
    color: #666;
    flex-shrink: 0;
}

.tab-content.excel .score-item .number { background: rgba(39, 174, 96, 0.15); color: #27ae60; }
.tab-content.word .score-item .number { background: rgba(41, 128, 185, 0.15); color: #2980b9; }
.tab-content.ppt .score-item .number { background: rgba(231, 76, 60, 0.15); color: #e74c3c; }

.score-item .label {
    flex: 1;
    font-size: clamp(0.7rem, 2.5vw, 0.85rem);
    color: #444;
    line-height: 1.3;
    min-width: 0;
}

.score-item input {
    width: 55px;
    padding: 8px 4px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    text-align: center;
    font-size: clamp(0.85rem, 3vw, 1rem);
    font-weight: 600;
    font-family: inherit;
    transition: all 0.3s ease;
    flex-shrink: 0;
    min-height: 38px;
}

.score-item input:focus {
    outline: none;
    border-color: #e94560;
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

/* ===== SUMMARY CARD ===== */
.summary-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 10px;
    padding: 12px;
    color: white;
    margin-bottom: 12px;
    box-shadow: 0 4px 20px rgba(26, 26, 46, 0.3);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.summary-item {
    text-align: center;
    padding: 8px 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.summary-item:hover {
    background: rgba(255,255,255,0.12);
}

.summary-item.final {
    background: linear-gradient(135deg, #e94560 0%, #ff6b6b 100%);
}

.summary-item .label {
    font-size: clamp(0.5rem, 2vw, 0.65rem);
    opacity: 0.9;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.summary-item .value {
    font-size: clamp(1rem, 4vw, 1.3rem);
    font-weight: 700;
}

/* ===== BUTTONS ===== */
.btn-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: clamp(0.85rem, 3vw, 0.95rem);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 48px;
    touch-action: manipulation;
}

.btn-submit {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-submit:hover,
.btn-submit:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
}

.btn-submit:disabled {
    background: #bdc3c7;
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
}

.btn-reset {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e0e0e0;
}

.btn-reset:hover,
.btn-reset:active {
    background: #e9ecef;
    border-color: #d0d0d0;
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    z-index: 2000;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: calc(100% - 30px);
    text-align: center;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.toast.hide {
    transform: translateX(-50%) translateY(-20px);
    opacity: 0;
}

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    line-height: 1.3;
}

.toast.success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.toast.success .toast-icon {
    background: rgba(255,255,255,0.25);
    color: white;
}

.toast.error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.toast.error .toast-icon {
    background: rgba(255,255,255,0.25);
    color: white;
}

/* ===== LOADING ===== */
.loading {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    padding: 12px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 20px 16px;
    border-radius: 14px;
    max-width: 350px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
    animation: modalIn 0.3s ease;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 12px;
}

.modal-title {
    font-size: clamp(0.95rem, 3.5vw, 1.1rem);
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.modal-message {
    color: #666;
    margin-bottom: 6px;
    font-size: clamp(0.75rem, 2.5vw, 0.85rem);
}

.modal-info {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
    text-align: left;
}

.modal-info p {
    margin: 4px 0;
    font-size: clamp(0.75rem, 2.5vw, 0.85rem);
}

.modal-info strong {
    color: #1a1a2e;
}

.modal-buttons {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.modal-btn {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
}

.modal-btn.cancel {
    background: #f0f0f0;
    color: #666;
}

.modal-btn.cancel:hover,
.modal-btn.cancel:active {
    background: #e0e0e0;
}

.modal-btn.update {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.modal-btn.update:hover,
.modal-btn.update:active {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(243, 156, 18, 0.4);
}

/* ===== FOOTER ===== */
.main-footer {
    background: #1a1a2e;
    color: white;
    padding: 12px 15px;
    text-align: center;
}

.footer-brand {
    font-size: clamp(0.85rem, 3vw, 1rem);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 2px;
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-info {
    font-size: clamp(0.6rem, 2vw, 0.7rem);
    opacity: 0.7;
}

/* =============================================
   VERY SMALL SCREENS (max-width: 359px)
   ============================================= */
@media (max-width: 359px) {
    .main-header {
        padding: 8px 10px;
    }
    
    .logo-icon {
        width: 28px;
        height: 28px;
        font-size: 0.65rem;
    }
    
    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .summary-item.final {
        grid-column: span 2;
    }
    
    .score-item input {
        width: 50px;
        padding: 6px 2px;
    }
}

/* =============================================
   SMALL TABLETS & LARGE PHONES (min-width: 360px)
   ============================================= */
@media (min-width: 360px) {
    .main-header {
        padding: 12px 15px;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .peserta-card,
    .tabs-container,
    .summary-card {
        padding: 15px;
        border-radius: 12px;
        margin-bottom: 15px;
    }
    
    .tab-content {
        padding: 15px;
    }
    
    .score-grid {
        gap: 10px;
    }
    
    .score-item {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .score-item input {
        width: 60px;
    }
}

/* =============================================
   TABLET & DESKTOP RESPONSIVE (min-width: 480px)
   ============================================= */
@media (min-width: 480px) {
    .main-header {
        padding: 15px 20px;
    }

    .logo-icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
        border-radius: 8px;
    }

    .logo-section {
        gap: 12px;
    }

    .main-content {
        padding: 20px;
    }

    .peserta-card {
        padding: 20px;
        border-radius: 14px;
    }

    .score-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .summary-grid {
        gap: 10px;
    }

    .summary-item {
        padding: 12px 8px;
    }

    .btn-group {
        flex-direction: row;
    }

    .tab-btn {
        flex-direction: row;
        padding: 14px 12px;
    }

    .tab-btn .text {
        display: inline;
    }

    .tab-btn .avg {
        padding: 3px 8px;
        min-width: 35px;
    }
}

/* =============================================
   DESKTOP RESPONSIVE (min-width: 768px)
   ============================================= */
@media (min-width: 768px) {
    .main-header {
        padding: 18px 30px;
    }

    .logo-section {
        gap: 15px;
    }

    .logo-icon {
        width: 50px;
        height: 50px;
        border-radius: 12px;
        font-size: 1.2rem;
    }

    .main-content {
        padding: 30px;
    }

    .peserta-card {
        padding: 25px;
        margin-bottom: 25px;
        border-radius: 16px;
    }

    .peserta-grid {
        grid-template-columns: 2fr 1fr;
        gap: 20px;
    }

    .form-group select,
    .form-group input[type="date"],
    .search-input {
        padding: 14px 16px;
        font-size: 1rem;
        min-height: 50px;
    }

    .tabs-container {
        border-radius: 16px;
        margin-bottom: 25px;
    }

    .tab-btn {
        padding: 18px 20px;
        font-size: 0.95rem;
        gap: 8px;
    }

    .tab-btn .icon {
        font-size: 1.2rem;
    }

    .tab-btn .avg {
        padding: 4px 10px;
        font-size: 0.8rem;
        min-width: 45px;
    }

    .tab-content {
        padding: 25px;
    }

    .score-grid {
        gap: 15px;
    }

    .score-item {
        gap: 12px;
        padding: 12px 15px;
    }

    .score-item .number {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .score-item .label {
        font-size: 0.9rem;
    }

    .score-item input {
        width: 70px;
        padding: 10px;
        font-size: 1rem;
    }

    .summary-card {
        padding: 25px;
        border-radius: 16px;
        margin-bottom: 25px;
    }

    .summary-grid {
        gap: 15px;
    }

    .summary-item {
        padding: 15px;
    }

    .summary-item .label {
        font-size: 0.75rem;
        margin-bottom: 8px;
        letter-spacing: 1px;
    }

    .summary-item .value {
        font-size: 1.8rem;
    }

    .btn-group {
        gap: 15px;
    }

    .btn {
        padding: 16px 30px;
        font-size: 1rem;
        border-radius: 12px;
    }

    .modal-content {
        padding: 30px 25px;
        max-width: 400px;
        border-radius: 18px;
    }

    .modal-icon {
        width: 65px;
        height: 65px;
        font-size: 1.8rem;
        margin-bottom: 18px;
    }

    .modal-buttons {
        gap: 12px;
        margin-top: 22px;
    }

    .modal-btn {
        padding: 14px 18px;
        font-size: 0.95rem;
    }

    .main-footer {
        padding: 18px 25px;
    }
}

/* =============================================
   LARGE DESKTOP (min-width: 1024px)
   ============================================= */
@media (min-width: 1024px) {
    .summary-item:hover {
        transform: translateY(-2px);
    }
    
    .score-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-content {
        padding: 35px 40px;
    }
}

/* =============================================
   LANDSCAPE MODE (max-height: 500px)
   ============================================= */
@media (max-height: 500px) and (orientation: landscape) {
    .main-header {
        padding: 8px 15px;
        position: relative;
    }
    
    .logo-icon {
        width: 30px;
        height: 30px;
    }
    
    .main-content {
        padding: 10px 15px;
    }
    
    .peserta-card,
    .tabs-container,
    .summary-card {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .score-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .summary-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .btn-group {
        flex-direction: row;
    }
    
    .main-footer {
        padding: 8px 15px;
    }
    
    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* =============================================
   PRINT STYLES
   ============================================= */
@media print {
    .main-header,
    .main-footer,
    .btn-group {
        display: none;
    }
    
    .main-content {
        padding: 0;
    }
    
    .peserta-card,
    .tabs-container,
    .summary-card {
        box-shadow: none;
        border: 1px solid #e8e8e8;
    }
}
