/* Main navigation styles */
.main-nav {
    background-color: var(--primary-500);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo a,
.logo a:link,
.logo a:visited,
.logo a:hover,
.logo a:active {
    color: white !important;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.logo a:hover {
    background-color: var(--primary-600);
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-links a:hover {
    background-color: var(--primary-600);
}

/* Basket count badge */
.basket-link {
    position: relative;
}

.basket-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--secondary-500);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.8rem;
    min-width: 18px;
    text-align: center;
}

/* Content area */
.content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    padding-bottom: 5rem; /* Add padding to prevent content from being hidden by fixed footer */
}

/* Welcome section styles */
.welcome-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--card-shadow);
}

.welcome-section h1 {
    color: var(--primary-400);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.welcome-section p {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

/* Parent system link */
.parent-system-link {
    text-align: center;
    margin-bottom: 3rem;
}

.parent-system-link a {
    color: var(--link-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.parent-system-link a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* Years list */
.years-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.year-link {
    text-decoration: none;
    color: inherit;
}

.year-content {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.year-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--card-shadow);
}

.year-content h2 {
    color: var(--primary-300);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.year-content p {
    color: var(--text-secondary);
}

/* No data message */
.no-data-message {
    text-align: center;
    padding: 3rem;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--card-shadow);
}

.no-data-message p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.no-data-message small {
    color: var(--text-secondary);
    opacity: 0.8;
}

/* Footer styles */
footer {
    background-color: var(--primary-100);
    color: var(--primary-900);
    padding: 1rem;
    position: fixed;
    bottom: 0;
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-link {
    color: var(--primary-900);
    text-decoration: none;
    transition: color 0.2s;
}

.about-link:hover {
    color: var(--primary-600);
}

.copyright {
    color: var(--primary-900);
}

/* Button styles */
button {
    background-color: var(--primary-500);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: var(--primary-600);
}

button:disabled {
    background-color: var(--primary-300);
    cursor: not-allowed;
}

/* Card styles */
.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    margin-bottom: 1rem;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Responsive Design */
@media (max-width: 768px) {
    .welcome-section {
        padding: 1.5rem;
    }

    .welcome-section h1 {
        font-size: 2rem;
    }

    .year-content {
        padding: 1rem;
    }

    .year-content h2 {
        font-size: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
}
