/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #cc0000 0%, #990000 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigation */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    margin-bottom: 20px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    height: 50px;
    width: auto;
    margin-right: 15px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-nav {
    background: #2c3e50;
    padding: 0;
    margin-bottom: 20px;
}

.admin-nav .nav-container {
    display: flex;
    gap: 0;
}

.nav-link {
    color: #ecf0f1;
    padding: 15px 20px;
    text-decoration: none;
    transition: background 0.3s;
}

.nav-link:hover,
.nav-link.active {
    background: #34495e;
    color: #fff;
}

/* Login Card */
.login-card {
    background: white;
    border-radius: 10px;
    padding: 40px;
    max-width: 400px;
    margin: 100px auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.login-card h1 {
    color: #cc0000;
    margin-bottom: 10px;
    text-align: center;
}

.login-card h2 {
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.5em;
}

.login-links {
    text-align: center;
    margin-top: 20px;
}

.login-links a {
    color: #cc0000;
    text-decoration: none;
}

.login-links a:hover {
    text-decoration: underline;
}

.admin-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.admin-link a {
    color: #666;
    text-decoration: none;
    font-size: 0.9em;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #cc0000;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-primary {
    background: #cc0000;
    color: white;
}

.btn-primary:hover {
    background: #990000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(204, 0, 0, 0.4);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-small {
    padding: 6px 12px;
    font-size: 14px;
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Tickets Grid */
.tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.ticket-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.ticket-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.ticket-type-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.ticket-type-hockey {
    background: #3498db;
    color: white;
}

.ticket-type-baseball {
    background: #e67e22;
    color: white;
}

.ticket-card h3 {
    color: #333;
    margin-bottom: 15px;
    padding-right: 80px;
}

.ticket-info {
    margin-bottom: 15px;
}

.ticket-info p {
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
}

.request-form {
    margin-top: 15px;
}

.quantity-selector {
    margin-bottom: 10px;
}

.quantity-selector label {
    display: inline-block;
    margin-right: 10px;
    font-weight: 500;
}

.quantity-selector select {
    padding: 8px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    width: auto;
}

.request-status {
    margin-top: 15px;
}

.status-badge {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
}

.status-pending {
    background: #ffc107;
    color: #333;
}

.status-approved {
    background: #28a745;
    color: white;
}

.status-rejected {
    background: #dc3545;
    color: white;
}

.status-cancelled {
    background: #6c757d;
    color: white;
}

.sold-out {
    color: #e74c3c;
    font-weight: bold;
    text-align: center;
    padding: 10px;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 18px;
}

/* Filters */
.filters {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filter-form {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-form select,
.filter-form input[type="month"] {
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
}

.filter-form label {
    margin-right: 10px;
    font-weight: 500;
    color: #555;
}

.filter-note {
    margin-top: 10px;
    color: #666;
    font-size: 14px;
    font-style: italic;
}

/* Admin Styles */
h1 {
    color: white;
    margin-bottom: 20px;
}

.admin-section {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.admin-section h2 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.admin-form {
    max-width: 800px;
}

.admin-table-container {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-table th {
    background: #cc0000;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.admin-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.admin-table tr:hover {
    background: #f8f9fa;
}

.text-center {
    text-align: center;
}

.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}

.badge-hockey {
    background: #3498db;
    color: white;
}

.badge-baseball {
    background: #e67e22;
    color: white;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-card h3 {
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #cc0000;
}

.quick-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    overflow: auto;
}

.modal-content {
    background: white;
    margin: 50px auto;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

/* Requests Section */
.requests-section {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.requests-section h2 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.requests-subsection {
    margin-bottom: 30px;
}

.requests-subsection h3 {
    color: #555;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.requests-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.request-card {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s;
}

.request-card:hover {
    border-color: #cc0000;
    box-shadow: 0 3px 10px rgba(204, 0, 0, 0.2);
}

.request-card-inactive {
    opacity: 0.8;
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.request-type-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.request-type-hockey {
    background: #3498db;
    color: white;
}

.request-type-baseball {
    background: #e67e22;
    color: white;
}

.request-info {
    margin-bottom: 10px;
}

.request-info p {
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
}

.request-notes {
    margin-top: 15px;
    padding: 10px;
    background: #fff;
    border-left: 3px solid #cc0000;
    border-radius: 4px;
    font-size: 14px;
    color: #555;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .tickets-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .admin-nav .nav-container {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .requests-list {
        grid-template-columns: 1fr;
    }
}
