/* Admin Dashboard Styles */
.admin-dashboard {
    min-height: 100vh;
    padding: 2rem;
    color: #fff;
    position: relative;
}

.admin-container {
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.admin-container::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/static/images/admin-bg.webp') center center / cover no-repeat fixed;
    z-index: -2;
}

.admin-container::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 10, 25, 0.88);
    z-index: -1;
}

.dashboard-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--neon-green), #00D9A5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.card {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(0, 255, 65, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(0, 255, 65, 0.3);
    box-shadow: 0 8px 32px rgba(0, 255, 65, 0.1);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--neon-green);
}

/* Match Header Card */
.match-header-card {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.1), rgba(0, 217, 165, 0.1));
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.team-logo {
    font-size: 4rem;
}

.team-input {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(0, 255, 65, 0.3);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    width: 250px;
    transition: all 0.3s ease;
}

.team-input:focus {
    outline: none;
    border-color: var(--neon-green);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.vs-divider {
    font-size: 2rem;
    font-weight: 700;
    color: var(--neon-green);
}

.match-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.detail-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #fff;
    font-size: 1rem;
    width: 100%;
    max-width: 400px;
}

.detail-input:focus {
    outline: none;
    border-color: var(--neon-green);
}

.countdown-timer {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neon-green);
    padding: 1rem 2rem;
    background: rgba(0, 255, 65, 0.1);
    border-radius: 12px;
    border: 2px solid var(--neon-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Score Prediction Card */
.score-inputs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.score-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.score-input-group label {
    font-size: 0.9rem;
    color: #aaa;
}

.score-input {
    width: 100px;
    height: 100px;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    background: rgba(0, 255, 65, 0.1);
    border: 3px solid var(--neon-green);
    border-radius: 16px;
    color: var(--neon-green);
}

.score-input:focus {
    outline: none;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.5);
}

.score-separator {
    font-size: 3rem;
    font-weight: 700;
    color: #666;
}

.predicted-result {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.2), rgba(0, 217, 165, 0.2));
    border-radius: 12px;
    margin-bottom: 2rem;
}

.confidence-slider {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.confidence-slider label {
    font-size: 1.1rem;
    color: #fff;
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--neon-green);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--neon-green);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

/* Insights Card */
.insights-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #aaa;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--neon-green);
    color: #000;
    border-color: var(--neon-green);
}

.tab-btn:hover {
    border-color: var(--neon-green);
}

.tab-content {
    position: relative;
}

.insight-textarea {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    display: none;
}

.insight-textarea.active {
    display: block;
}

.insight-textarea:focus {
    outline: none;
    border-color: var(--neon-green);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

/* Betting Card */
.betting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.betting-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.betting-input-group label {
    font-size: 0.9rem;
    color: #aaa;
    font-weight: 500;
}

.betting-input-group input,
.betting-select {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
}

.betting-input-group input:focus,
.betting-select:focus {
    outline: none;
    border-color: var(--neon-green);
}

.betting-select option {
    background: #1a1a2e;
    color: #fff;
}

/* Media Card */
.media-upload-zone {
    border: 2px dashed rgba(0, 255, 65, 0.3);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.media-upload-zone:hover {
    border-color: var(--neon-green);
    background: rgba(0, 255, 65, 0.05);
}

.media-upload-zone svg {
    color: var(--neon-green);
    margin-bottom: 1rem;
}

.media-upload-zone p {
    color: #aaa;
    margin-bottom: 1rem;
}

.upload-btn {
    padding: 0.75rem 2rem;
    background: var(--neon-green);
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 65, 0.3);
}

.media-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Publish Card */
.publish-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #555;
    border-radius: 30px;
    transition: 0.3s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

input:checked + .toggle-slider {
    background-color: var(--neon-green);
}

input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

.publish-preview {
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.publish-preview h4 {
    color: var(--neon-green);
    margin-bottom: 1rem;
}

.preview-content p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.publish-btn {
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--neon-green), #00D9A5);
    color: #000;
    border: none;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.publish-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 255, 65, 0.4);
}

.btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: glow 3s infinite;
}

@keyframes glow {
    0% { transform: translateX(-100%) translateY(-100%); }
    100% { transform: translateX(100%) translateY(100%); }
}

/* Sidebar - Prediction History */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.history-card {
    max-height: calc(100vh - 150px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.history-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 255, 65, 0.1);
    border-radius: 12px;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--neon-green);
}

.stat-value.success {
    color: #00ff00;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #aaa;
    margin-top: 0.5rem;
}

.history-list {
    overflow-y: auto;
    max-height: 600px;
    padding-right: 0.5rem;
}

.history-item {
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid #555;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.history-item.correct {
    border-left-color: #00ff00;
}

.history-item.incorrect {
    border-left-color: #ff0000;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.history-fixture {
    font-weight: 600;
    font-size: 0.95rem;
}

.accuracy-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.accuracy-badge.success {
    background: #00ff00;
    color: #000;
}

.accuracy-badge.fail {
    background: #ff0000;
    color: #fff;
}

.history-details {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
}

.confidence-badge {
    background: rgba(0, 255, 65, 0.2);
    color: var(--neon-green);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.history-actions {
    display: flex;
    gap: 0.5rem;
}

.small-btn {
    padding: 0.4rem 0.8rem;
    background: rgba(59, 130, 246, 0.8);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.small-btn:hover {
    transform: translateY(-2px);
}

.small-btn.delete {
    background: rgba(239, 68, 68, 0.8);
}

/* Responsive */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .history-card {
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .match-teams {
        flex-direction: column;
        gap: 1rem;
    }

    .team-input {
        width: 100%;
    }

    .score-inputs {
        flex-direction: column;
        gap: 1rem;
    }

    .betting-grid {
        grid-template-columns: 1fr;
    }

    .insights-tabs {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
    }
}
