/* Basic Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f9fafb;
    color: #111827;
}

.flex {
    display: flex;
}

.h-screen {
    height: 100vh;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.overflow-auto {
    overflow: auto;
}

.flex-1 {
    flex: 1;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: #ffffff;
    border-right: 1px solid #e5e7eb;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: #1e3a8a;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #4b5563;
    text-decoration: none;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
    transition: background-color 0.2s;
}

.nav-link i {
    margin-top: 2px;
}

.nav-link:hover {
    background-color: #f3f4f6;
    color: #111827;
}



/* Form Styles */
input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.btn-primary {
    background-color: #1e40af;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #1e3a8a;
}

.main-content {
    padding: 2rem;
}

.sidebar-footer {
    margin-top: auto;
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

.nav-link-static {
    cursor: default;
}

.nav-link-button {
    width: 100%;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
}

/* Auth pages */
.auth-card {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.auth-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-error {
    background-color: #fee2e2;
    border: 1px solid #ef4444;
    color: #b91c1c;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.auth-field {
    margin-bottom: 1rem;
}

.auth-submit {
    width: 100%;
    padding: 0.75rem;
    margin-top: 1rem;
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
}

.auth-help {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.auth-link {
    color: #1e40af;
    text-decoration: none;
    font-weight: 500;
}

/* Home page */
.home-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.home-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #111827;
}

.home-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.home-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.home-primary-link {
    background-color: #1e40af;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: bold;
}

.home-secondary-link {
    background-color: #ffffff;
    color: #1e40af;
    border: 1px solid #1e40af;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: bold;
}

/* Download page */
.download-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.download-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.download-card {
    background: white;
    padding: 3rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.download-icon {
    width: 64px;
    height: 64px;
    color: #1e40af;
    margin-bottom: 1.5rem;
}

.download-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.download-description {
    color: #6b7280;
    margin-bottom: 2rem;
}

.download-button {
    background-color: #1e40af;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.download-footer {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #9ca3af;
}

/* About page */
.about-container {
    max-width: 800px;
    margin: 0 auto;
}

.about-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-card {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.about-paragraph {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.about-paragraph:last-child {
    margin-bottom: 0;
}

/* Active matches page */
.active-matches-title {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.active-matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

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

.active-match-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.active-match-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.active-match-map {
    font-weight: bold;
    font-size: 1.1rem;
}

.active-match-status {
    background: #ecfdf5;
    color: #059669;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
}

.active-match-meta {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.active-match-meta:last-child {
    margin-bottom: 0;
}

.active-matches-empty {
    text-align: center;
    padding: 4rem;
    color: #6b7280;
}

.active-matches-empty-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

/* Match history page */
.match-history-title {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.match-history-table-wrapper {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.match-history-table {
    width: 100%;
    border-collapse: collapse;
}

.match-history-table thead {
    background: #f9fafb;
}

.match-history-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #4b5563;
}

.match-history-table tbody tr {
    border-top: 1px solid #e5e7eb;
}

.match-history-table td {
    padding: 1rem;
}

.match-history-date {
    color: #6b7280;
}

.match-history-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.match-history-empty {
    text-align: center;
    padding: 4rem;
    color: #6b7280;
}
