:root {
    --primary-maroon: #76232F;
    --secondary-gold: #D1A11E;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

header {
    background-color: var(--primary-maroon);
    color: var(--white);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

header .logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

header img.logo {
    height: 60px;
    background-color: white; /* Ensure logo is visible if transparent */
    padding: 2px;
    border-radius: 4px;
}

header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.user-info {
    text-align: right;
    font-size: 0.9rem;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Login Page Specifics */
.login-container {
    max-width: 400px;
    margin: 5rem auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--secondary-gold);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.btn {
    display: inline-block;
    background-color: var(--primary-maroon);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.3s;
    width: 100%; /* Default for login */
    text-align: center;
}

.btn:hover {
    background-color: #5a1a23;
}

.btn-secondary {
    background-color: #6c757d;
}

.error-message {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 1rem;
    text-align: center;
    display: none;
}

/* Dashboard Tiles */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tile {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    border-bottom: 4px solid var(--secondary-gold);
    cursor: pointer;
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-height: 200px;
}

.tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.tile h3 {
    margin-top: 0;
    color: var(--primary-maroon);
}

/* Summer School Page */
.split-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.module-list {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.module-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

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

.price-tag {
    font-weight: bold;
    color: var(--primary-maroon);
}

.cart-panel {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.total-section {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid #eee;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
}

.warning-box {
    background-color: #fff3cd;
    color: #856404;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    border: 1px solid #ffeeba;
    display: none;
}

.payment-info {
    margin-top: 2rem;
    background: #e9ecef;
    padding: 1.5rem;
    border-radius: 8px;
}

.payment-info img {
    max-width: 100%;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
}
