:root {
    --primary-color: #0d47a1;
    --primary-light: #5472d3;
    --primary-dark: #002171;
    --accent-color: #ffd54f;
    --success-color: #2e7d32;
    --danger-color: #c62828;
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --bg-color: #f0fdf4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Prompt', sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #e0f2f1 0%, #bbdefb 100%);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    overflow-x: hidden;
    padding: 40px 0;
}

.background-shapes {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 10s infinite ease-in-out alternate;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: #64b5f6;
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: #ffd54f;
    bottom: -50px;
    right: -100px;
    animation-delay: -5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: #81c784;
    top: 40%;
    left: 40%;
    animation-delay: -2s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 30px) scale(1.1); }
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.header h1 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 5px;
    font-weight: 600;
}

.header p {
    color: var(--text-muted);
    font-size: 1rem;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    padding: 40px;
    transition: all 0.3s ease;
}

.search-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

label {
    font-weight: 500;
    color: var(--primary-dark);
}

input[type="text"] {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255,255,255,0.8);
    border-radius: 12px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

input[type="text"]:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(84, 114, 211, 0.1);
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    padding: 16px 25px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.3);
    margin-top: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 71, 161, 0.4);
}

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

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 25px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    margin-top: 20px;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.error-msg {
    color: var(--danger-color);
    font-size: 0.9rem;
    min-height: 20px;
    margin-top: -5px;
}

.hidden {
    display: none !important;
}

.result-section {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 15px;
}

.result-header h2 {
    color: var(--primary-dark);
}

.badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.badge.pass {
    background-color: rgba(46, 125, 50, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.badge.fail {
    background-color: rgba(198, 40, 40, 0.1);
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
}

.badge.absent {
    background-color: rgba(230, 126, 34, 0.1);
    color: #e67e22;
    border: 1px solid #e67e22;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.5);
    padding: 20px;
    border-radius: 12px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item .label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.info-item .value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.score-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.score-card {
    background: white;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.05);
}

.score-card h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.score-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    height: 35px;
}

.score-circle {
    width: 90px;
    height: 90px;
    margin: 0 auto;
    border-radius: 50%;
    background: conic-gradient(var(--accent-color) 0%, #f0f0f0 0%);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.score-circle::before {
    content: '';
    position: absolute;
    width: 76px;
    height: 76px;
    background: white;
    border-radius: 50%;
    z-index: 0;
}

.score-circle span {
    z-index: 1;
}

.max-score {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: normal;
    margin-left: 2px;
}

.footer {
    text-align: center;
    margin-top: 30px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

@media (max-width: 480px) {
    .input-group {
        flex-direction: column;
    }
    .btn-primary {
        padding: 15px;
    }
    .score-cards {
        grid-template-columns: 1fr;
    }
    .glass-effect {
        padding: 25px;
    }
}
