@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@500;700&display=swap');

:root {
    --primary: #ff7675;
    --secondary: #6c5ce7;
    --accent: #74b9ff;
    --card-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.4);
    --text-color: #2d3436;
}

body {
    font-family: 'Quicksand', sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
    
    background: linear-gradient(45deg, #a29bfe, #ffeaa7, #fab1a0, #81ecec);
    background-size: 400% 400%;
    animation: auroraBG 15s ease infinite;
    background-attachment: fixed;
    color: var(--text-color);
}

@keyframes auroraBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.dark-theme { 
    background: #2d3436 !important; 
    color: white; 
}
.dark-theme .card, 
.dark-theme .sidebar { 
    background: rgba(0, 0, 0, 0.4); 
}


header {
    padding: 30px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.layout {
    flex: 1;
    display: flex;
    padding: 40px;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.sidebar {
    width: 250px;
    background: var(--card-bg);
    padding: 25px;
    border-radius: 30px;
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    position: sticky;
    top: 20px;
    height: fit-content;
}

.content { 
    flex-grow: 1; 
}

footer { 
    text-align: center; 
    padding: 20px; 
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-top: 1px solid var(--glass-border);
}


.card {
    background: var(--card-bg);
    padding: 30px;
    margin-bottom: 25px;
    border-radius: 30px;
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.welcome-card h2 { 
    color: var(--secondary); 
    font-size: 2rem; 
    margin-top: 0;
}

button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover { 
    transform: scale(1.05); 
    filter: brightness(1.1); 
}

.sidebar button {
    display: block;
    width: 100%;
    margin-bottom: 15px;
    background: white;
    color: var(--secondary);
}

.sidebar button:hover { 
    background: var(--secondary); 
    color: white; 
    transform: translateY(-3px); 
}

#myImg {
    border-radius: 20px;
    border: 5px solid white;
    transition: 0.5s;
    margin-top: 15px;
    max-width: 100%;
}

.grade-calculator-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
}

.grade-calculator-form div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.grade-calculator-form label {
    font-weight: 700;
    color: var(--secondary);
}

.grade-calculator-form input {
    width: 120px;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    text-align: center;
}

#gradeResultCard {
    border-left: 8px solid var(--accent);
    background: rgba(116, 185, 255, 0.15); 
}

#resetGradeBtn {
    background: var(--primary); /* Red/Coral color for reset */
}