* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    background-color: #001a4d;
    color: white;
    padding: 5px 0;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    flex: 1;
}

.header-logo {
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-logo h1 {
    font-size: 1.6rem;
    font-weight: bold;
    margin: 0;
    letter-spacing: 1px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.user-email {
    color: white;
}

.separator {
    color: #ffb81c;
    margin: 0 0.5rem;
}

.header-link, .logout-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-link:hover, .logout-link:hover {
    color: #ffb81c;
}

.logout-form-header {
    margin: 0;
    padding: 0;
    display: inline;
}

.logout-link {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    color: white;
}

/* Navigation Bar */
.navbar {
    background-color: #001a4d;
    padding: 0;
    border-bottom: 3px solid #ffb81c;
}

.navbar .container {
    display: flex;
    align-items: center;
    padding: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
    margin: 0;
    padding: 0;
    width: 100%;
}

.nav-link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 0.7em 1.2rem;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    border-bottom: 3px solid transparent;
}

.nav-link:hover {
    background-color: rgba(255, 184, 28, 0.1);
    border-bottom-color: #ffb81c;
}

/* Dropdown Menu */
.nav-item-dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 0.4rem;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #001a4d;
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 150px;
    border: 1px solid #ffb81c;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-item-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid rgba(255, 184, 28, 0.2);
}

.dropdown-menu a:hover {
    background-color: rgba(255, 184, 28, 0.2);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 0;
    min-height: calc(100vh - 250px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #001a4d 0%, #002e7a 100%);
    color: white;
    padding: 4rem 3rem;
    border-radius: 0;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Page Links Grid */
.page-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin: 1rem 0;
    padding: 0;
    list-style: none;
}

.link-card {
    background-color: #001a4d;
    color: white;
    text-decoration: none;
    padding: 2.5rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    border: 2px solid transparent;
}

.link-card:hover {
    background-color: #002e7a;
    border-color: #ffb81c;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(255, 184, 28, 0.3);
}

.link-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
}

.link-card h3 {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: white;
}

.button-group {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 0;
    text-decoration: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: #ffb81c;
    color: #003366;
}

.btn-primary:hover {
    background-color: #ffc940;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 184, 28, 0.4);
}

.btn-secondary {
    background-color: #003366;
    color: white;
    border: 2px solid #ffb81c;
}

.btn-secondary:hover {
    background-color: #002244;
    border-color: #ffc940;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Features Section */
.features {
    background: white;
    padding: 3rem;
    border-radius: 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.features h3 {
    margin-bottom: 2rem;
    color: #003366;
    font-size: 1.8rem;
    border-bottom: 3px solid #ffb81c;
    padding-bottom: 1rem;
}

.features ul {
    list-style: none;
    padding-left: 0;
    column-count: 2;
    column-gap: 2rem;
}

.features li {
    padding: 1rem 0;
    padding-left: 2rem;
    position: relative;
    break-inside: avoid;
}

.features li:before {
    content: "🎳";
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Forms */

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: #003366;
}

.form-control {
    width: 100%;
    border: 2px solid #ddd;
    border-radius: 0;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #ffb81c;
    box-shadow: 0 0 0 3px rgba(255, 184, 28, 0.1);
}

.form-group small {
    display: block;
    margin-top: 0.3rem;
    color: #666;
    font-size: 0.9rem;
}

.error-message {
    color: #d9534f;
    font-size: 0.875rem;
    margin-top: 0.3rem;
    display: block;
}

/* Alerts */
.alert {
    padding: 1.2rem;
    border-radius: 0;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-success {
    background-color: #dff0d8;
    color: #3c763d;
    border-color: #5cb85c;
}

.alert-danger {
    background-color: #f2dede;
    color: #a94442;
    border-color: #d9534f;
}

.alert-warning {
    background-color: #fcf8e3;
    color: #8a6d3b;
    border-color: #faebcc;
}

/* Auth Forms */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 4rem 0;
}

.auth-form {
    background: white;
    padding: 3rem;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    border-top: 4px solid #ffb81c;
}

.auth-form h2 {
    margin-bottom: 2rem;
    color: #003366;
    text-align: center;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
}

.auth-link a {
    color: #ffb81c;
    text-decoration: none;
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Dashboard */
.dashboard {
    background: white;
    padding: 3rem;
    border-radius: 0;
}

.dashboard h2 {
    color: #003366;
    margin-bottom: 2rem;
    font-size: 2rem;
    border-bottom: 3px solid #ffb81c;
    padding-bottom: 1rem;
}

.user-info-box {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 0;
    margin-bottom: 2rem;
    border-left: 5px solid #ffb81c;
}

.user-info-box h3 {
    color: #003366;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.user-info-box p {
    margin: 0.5rem 0;
}

.dashboard-section {
    margin-top: 3rem;
}

.dashboard-section h3 {
    color: #003366;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    border-bottom: 2px solid #ffb81c;
    padding-bottom: 0.5rem;
}

.dashboard-section ul {
    list-style: none;
}

.dashboard-section li {
    margin: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.dashboard-section li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #ffb81c;
    font-weight: bold;
}

.dashboard-section a {
    color: #003366;
    text-decoration: none;
    font-weight: 500;
}

.dashboard-section a:hover {
    color: #ffb81c;
    text-decoration: underline;
}

/* Privacy Page */
.privacy-page {
    background: white;
    padding: 3rem;
    border-radius: 0;
    max-width: 900px;
    margin: 0 auto;
}

.privacy-page h2 {
    color: #003366;
    margin-bottom: 2rem;
    font-size: 2rem;
    border-bottom: 3px solid #ffb81c;
    padding-bottom: 1rem;
}

.privacy-page section {
    margin-bottom: 2.5rem;
}

.privacy-page h3 {
    color: #003366;
    margin: 1.5rem 0 0.8rem 0;
    font-size: 1.3rem;
}

.privacy-page p {
    color: #555;
    line-height: 1.8;
    font-size: 1rem;
}

/* Footer */
.footer {
    background-color: #003366;
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    border-top: 4px solid #ffb81c;
}

.footer p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.footer-links {
    margin-top: 0.75rem;
}

.footer-link {
    color: #ffb81c;
    text-decoration: none;
    font-size: 14px;
}

.footer-link:hover {
    text-decoration: underline;
}

.footer-separator {
    color: rgba(255, 255, 255, 0.4);
    margin: 0 8px;
}

/* Shared Tabs + Table Actions */
.tab-navigation {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
}

.tab-button {
    background: none;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    color: #999;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
}

.tab-button.active {
    color: #00204a;
    border-bottom-color: #00204a;
}

.tab-button:hover {
    color: #00204a;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.leagues-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.leagues-table thead {
    background-color: #00204a;
    color: white;
}

.leagues-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.leagues-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.leagues-table tbody tr:hover {
    background-color: #e8f0ff;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.link-manage {
    color: #00204a;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.link-manage:hover {
    text-decoration: underline;
}

.link-archive {
    background: none;
    border: none;
    color: #00204a;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.link-archive:hover {
    text-decoration: underline;
}

.button-center {
    text-align: center;
}

.btn-add-league {
    display: inline-block;
    background-color: #00204a;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn-add-league:hover {
    background-color: #001a3a;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-links-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .link-card {
        min-height: 180px;
        padding: 2rem 1rem;
    }

    .link-icon {
        font-size: 3rem;
        margin-bottom: 0.8rem;
    }

    .link-card h3 {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .header-info {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.8rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        gap: 0;
    }

    .nav-link {
        padding: 0.8rem 0.6rem;
        font-size: 0.8rem;
    }

    .page-links-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .link-card {
        min-height: 150px;
        padding: 1.5rem 0.8rem;
    }

    .link-icon {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .link-card h3 {
        font-size: 0.9rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .button-group {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
    }

    .auth-form {
        margin: 1rem;
    }

    .features ul {
        column-count: 1;
    }

    .privacy-page {
        padding: 2rem 1rem;
    }
}
