﻿/* Admin Layout */
.admin-app-shell {
    display: flex;
    min-height: 100vh;
    background: #f5f7fa;
}

.admin-sidebar {
    width: 280px;
    height: 100vh;
    position: sticky;
    top: 0;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    overflow-y: auto;
}

.admin-nav {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.brand-icon {
    font-size: 2rem;
}

.brand-name {
    font-weight: 700;
    font-size: 1.125rem;
}

.brand-role {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
}

.nav-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 1rem 0;
}

.nav-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: rgba(255,255,255,0.8);
    transition: all 0.2s ease;
}

    .nav-item:hover {
        background: rgba(255,255,255,0.1);
        color: white;
    }

    .nav-item.active {
        background: rgba(255,255,255,0.15);
        color: white;
    }

.nav-icon {
    width: 20px;
    text-align: center;
}

.btn-logout-admin {
    margin-top: auto;
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
    font-weight: 600;
}

    .btn-logout-admin:hover {
        background: rgba(239, 68, 68, 0.3);
    }

/* Admin Main Content */
.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.admin-header {
    padding: 2rem;
    background: white;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-page-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.admin-user-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: #f5f7fa;
    border-radius: 20px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.admin-content {
    flex: 1;
    padding: 2rem;
}

/* Admin Dashboard */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.quick-actions {
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
}

    .action-btn.primary {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border-color: transparent;
    }

    .action-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }

    .action-btn i {
        font-size: 2rem;
    }

/* Recent Activity */
.recent-activity {
    padding: 2rem;
    border-radius: 16px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f5f7fa;
    border-radius: 8px;
}

.activity-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.activity-sport {
    padding: 0.25rem 0.75rem;
    background: #667eea;
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.activity-status {
    padding: 0.375rem 0.875rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Bet Form */
.bet-form-card {
    padding: 2.5rem;
    border-radius: 16px;
    max-width: 900px;
}

.form-section {
    margin-bottom: 2.5rem;
}

    .form-section h3 {
        font-size: 1.125rem;
        font-weight: 700;
        margin-bottom: 1.25rem;
        color: #667eea;
    }

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .form-group label {
        font-weight: 600;
        color: #333;
    }

.required {
    color: #ef4444;
}

.form-input,
.form-textarea {
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

    .form-input:focus,
    .form-textarea:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

.form-textarea {
    resize: vertical;
    font-family: inherit;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-submit {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .btn-submit:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    }

    .btn-submit:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.btn-cancel {
    padding: 1rem 2rem;
    background: white;
    color: #666;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

    .btn-cancel:hover {
        background: #f5f7fa;
    }

/* Manage Bets Table */
.bets-table-card {
    padding: 2rem;
    border-radius: 16px;
}

.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

    .admin-table thead {
        background: #f5f7fa;
    }

    .admin-table th {
        padding: 1rem;
        text-align: left;
        font-weight: 700;
        color: #666;
        font-size: 0.875rem;
        text-transform: uppercase;
    }

    .admin-table td {
        padding: 1rem;
        border-bottom: 1px solid #e0e0e0;
    }

.sport-badge {
    padding: 0.25rem 0.75rem;
    background: #667eea;
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-select {
    padding: 0.5rem;
    border-radius: 8px;
    border: 2px solid;
    font-weight: 600;
    cursor: pointer;
}

.status-pending {
    border-color: #fbbf24;
    background: #fef3c7;
    color: #92400e;
}

.status-won {
    border-color: #22c55e;
    background: #d1fae5;
    color: #065f46;
}

.status-lost {
    border-color: #ef4444;
    background: #fee2e2;
    color: #991b1b;
}

.status-push {
    border-color: #9ca3af;
    background: #e5e7eb;
    color: #374151;
}

.btn-icon-delete {
    padding: 0.5rem;
    background: #fee2e2;
    border: none;
    border-radius: 8px;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-icon-delete:hover {
        background: #fca5a5;
        color: white;
    }

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #22c55e;
}
