* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 600px;
}

.login-box, .results-box {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 40px;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #667eea;
}

.header h1 {
    color: #667eea;
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
}

.header h2 {
    color: #555;
    font-size: 20px;
    font-weight: 500;
}

.login-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.error-message {
    background-color: #fee;
    color: #c33;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #c33;
    font-size: 14px;
    animation: shake 0.5s ease-in-out;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #28a745;
    font-size: 14px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.btn-login, .btn-logout {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-login:hover, .btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-login:active, .btn-logout:active {
    transform: translateY(0);
}

.student-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.info-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    font-weight: 600;
    color: #555;
    width: 200px;
    flex-shrink: 0;
}

.info-row .value {
    color: #333;
    flex: 1;
}

.results-table {
    margin-bottom: 30px;
}

.results-table h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 22px;
    text-align: center;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

table th:first-child {
    width: 60px;
    text-align: center;
}

table th:last-child {
    text-align: center;
}

table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

table tbody tr:hover {
    background-color: #f8f9fa;
}

table tbody tr:last-child {
    border-bottom: none;
}

table td {
    padding: 15px;
    color: #333;
}

table td:first-child {
    text-align: center;
    font-weight: 600;
    color: #667eea;
}

table td.nilai {
    text-align: center;
    font-weight: 700;
    font-size: 18px;
    color: #667eea;
}

.actions {
    text-align: center;
    margin-top: 30px;
}

.btn-logout {
    max-width: 200px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.btn-logout:hover {
    box-shadow: 0 5px 20px rgba(245, 87, 108, 0.4);
}

/* Validation Section */
.validation-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.validation-section h3 {
    margin-top: 0;
    color: #667eea;
    font-size: 20px;
}

.status-badge {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 20px;
}

.status-valid {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.status-revisi {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.status-belum-valid {
    background: #fff3cd;
    color: #856404;
    border: 2px solid #ffeaa7;
}

.validation-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-valid {
    flex: 1;
    min-width: 200px;
    padding: 14px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-valid:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.4);
}

.btn-revisi {
    flex: 1;
    min-width: 200px;
    padding: 14px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-revisi:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(220, 53, 69, 0.4);
}

.revisi-form {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 2px solid #f8d7da;
}

.revisi-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
}

.revisi-form textarea:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
    outline: none;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-submit-revisi {
    flex: 1;
    padding: 12px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit-revisi:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.btn-cancel {
    flex: 1;
    padding: 12px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #5a6268;
}

.revisi-notice {
    margin-top: 20px;
    padding: 15px;
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    border-radius: 5px;
}

.revisi-notice h4 {
    margin: 0 0 10px 0;
    color: #721c24;
    font-size: 16px;
}

.revisi-notice p {
    margin: 0;
    color: #721c24;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 600px) {
    .login-box, .results-box {
        padding: 25px;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .header h2 {
        font-size: 18px;
    }
    
    .info-row {
        flex-direction: column;
    }
    
    .info-row .label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    table {
        font-size: 14px;
    }
    
    table th, table td {
        padding: 10px;
    }
    
    .validation-buttons {
        flex-direction: column;
    }
    
    .btn-valid, .btn-revisi {
        width: 100%;
    }
}

