:root {
    --primary: #1351b4;
    --primary-light: #2670e8;
    --primary-dark: #0c326f;
    --secondary: #fadb41;
    --accent: #00883b;
    --success: #00883b;
    --danger: #d93025;
    --warning: #f2994a;
    --info: #2f80ed;
    --dark: #1a1a1a;
    --light: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-600: #475569;
    --gray-700: #334155;
    --white: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.95);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --radius: 12px;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--light);
    background-image: radial-gradient(at 0% 0%, hsla(217,100%,97%,1) 0, transparent 50%), 
                      radial-gradient(at 50% 0%, hsla(217,100%,98%,1) 0, transparent 50%);
    color: var(--gray-700);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Glassmorphism Header */
header {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--primary-light));
}

header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.025em;
}

header p {
    color: var(--gray-600);
    font-size: 1rem;
    margin-top: 5px;
}

/* Modern Card */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow-md);
    margin-bottom: 25px;
    transition: box-shadow 0.2s ease;
    overflow: visible;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

/* Result Display Bar */
.score-display {
    background: var(--white);
    color: var(--gray-700);
    padding: 15px 30px;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
    border: 1px solid var(--gray-200);
}

.score-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    text-shadow: none;
}

.status-badge {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid var(--gray-200);
}

/* Inputs & Form Elements */
.input-group label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-bottom: 8px;
}

input[type="number"], input[type="text"], input[type="password"], input[type="date"], input[type="email"], select, textarea {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.2s;
    width: 100%;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary-light);
    outline: none;
    box-shadow: 0 0 0 4px rgba(38, 112, 232, 0.15);
}

/* Category Sections */
.category-section {
    border: none;
    background: white;
    padding: 0;
    overflow: hidden;
}

.category-header {
    background: var(--gray-100);
    padding: 20px 30px;
    border-bottom: 1px solid var(--gray-200);
}

.category-header h3 {
    color: var(--primary-dark);
    font-size: 1.25rem;
    font-weight: 800;
}

.criteria-list {
    padding: 10px 30px;
}

.criteria-item {
    display: block;
    padding: 30px 0;
    border-bottom: 1px solid var(--gray-100);
}

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

.criteria-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 8px;
}

/* Evidence Hints */
.evidence-hint {
    background: #f0f7ff;
    border: 1px solid #cce3ff;
    border-left: 4px solid var(--primary);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 0.9rem;
}

.evidence-hint strong {
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

/* Upload modern style */
.upload-zone {
    border: 2px dashed var(--gray-300);
    background: var(--gray-100);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s;
}

.upload-zone:hover {
    border-color: var(--primary);
    background: var(--white);
    transform: translateY(-2px);
}

.upload-zone.has-file {
    border-style: solid;
    border-color: var(--success);
    background: #f0fdf4;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(19, 81, 180, 0.3);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(19, 81, 180, 0.4);
}

/* Admin Specific */
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.admin-table th {
    text-align: left;
    padding: 12px 20px;
    color: var(--gray-600);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-table tr td {
    background: white;
    padding: 16px 20px;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}

.admin-table tr td:first-child {
    border-left: 1px solid var(--gray-100);
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.admin-table tr td:last-child {
    border-right: 1px solid var(--gray-100);
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

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

.category-section {
    animation: slideUp 0.4s ease-out backwards;
}

/* Responsive */
@media (max-width: 768px) {
    .criteria-item {
        grid-template-columns: 1fr;
    }
    .attachment-group {
        grid-template-columns: 1fr !important;
    }
    .score-display {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

.observation-input {
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    background: var(--white);
    transition: all 0.2s;
}

.observation-input:focus {
    border-color: var(--primary-light);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(38, 112, 232, 0.1);
}

.disabled-input {
    opacity: 0.4;
    pointer-events: none;
    filter: grayscale(1);
    cursor: not-allowed;
}

.print-only {
    display: none;
}

@media print {
    body * {
        visibility: hidden;
    }
    .print-only, .print-only * {
        visibility: visible;
    }
    .print-only {
        display: block !important;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    .no-print {
        display: none !important;
    }
}
