@charset "utf-8";

body {
    background: url('../images/resault.png') no-repeat center center fixed;
    background-size: cover; 
    position: relative;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    margin: 0;
    direction: rtl;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.45);
    pointer-events: none;
    z-index: 0;
}

.top-header {
    width: 100%;
    background: #2ecc71;
    padding: 14px 0;
    text-align: center;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}

.page-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 10px;
    position: relative;
    z-index: 2;
}

.glass-card {
    background: rgba(255, 255, 255, 0.92);
    padding: 30px 30px 35px;
    border-radius: 25px;
    width: 420px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.7);
}

.header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

.logo-dot {
    width: 14px;
    height: 14px;
    background: #2ecc71;
    border-radius: 50%;
}

h2 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin: 0;
}

.description {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 20px;
    line-height: 1.7;
}

.input-group {
    margin-bottom: 12px;
}

.input-group label {
    display: block;
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-bottom: 4px;
}

.score-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #e8ecef;
    border-radius: 10px;
    font-weight: bold;
    text-align: center;
    transition: 0.25s;
    box-sizing: border-box;
}

.score-input:focus {
    border-color: #2ecc71;
    background: #fafffa;
}

#calcBtn {
    width: 100%;
    padding: 13px;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.95rem;
    margin-top: 10px;
    transition: 0.25s;
}

#calcBtn:hover {
    background: #27ae60;
    transform: translateY(-2px);
}

#resultArea {
    margin-top: 22px;
    text-align: center;
    display: none;
}

.avg-circle {
    font-size: 2.4rem;
    font-weight: 800;
    color: #2ecc71;
    margin-bottom: 8px;
}

.progress-container {
    width: 100%;
    height: 9px;
    background: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
    margin: 12px 0 8px;
}

#progressBar {
    height: 100%;
    width: 0%;
    background: #2ecc71;
    transition: width 1s ease-out;
}

.pass {
    color: #27ae60;
    font-weight: bold;
    font-size: 0.9rem;
}

.fail {
    color: #e74c3c;
    font-weight: bold;
    font-size: 0.9rem;
}

.error-border {
    border: 2px solid #e74c3c !important;
    background-color: #fff0f0 !important;
}

@media (max-width: 480px) {
    .glass-card {
        width: 95%;
        padding: 25px 20px 30px;
    }
}
