/* Admin Panel Styles */

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

.admin-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
    color: #fff;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
}

/* Header */
.admin-header {
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid #ffd700;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 2.5rem;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link, .logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid #ffd700;
    border-radius: 8px;
    color: #ffd700;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
}

.nav-link:hover, .logout-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.logout-btn {
    background: rgba(255, 68, 68, 0.1);
    border-color: #ff4444;
    color: #ff4444;
}

.logout-btn:hover {
    background: rgba(255, 68, 68, 0.2);
    box-shadow: 0 5px 15px rgba(255, 68, 68, 0.3);
}

/* Main Content */
.admin-main {
    max-width: 1600px;
    margin: 0 auto;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Section Headers */
.admin-main h2 {
    font-size: 1.8rem;
    color: #ffd700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-main h3 {
    font-size: 1.4rem;
    color: #ffd700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Overview Section */
.overview-section {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.4);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.stat-icon.users {
    background: linear-gradient(135deg, #4285f4, #1976d2);
}

.stat-icon.tournaments {
    background: linear-gradient(135deg, #ffd700, #ffb300);
}

.stat-icon.games {
    background: linear-gradient(135deg, #ff6b35, #e55722);
}

.stat-icon.money {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    color: #ffd700;
    font-weight: 500;
    margin-bottom: 8px;
}

.stat-breakdown {
    font-size: 0.85rem;
    color: #ccc;
}

/* Prize Pools Management Section */
.prize-pools-section {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.prize-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.control-btn.danger {
    background: linear-gradient(135deg, #f44336, #c62828);
    color: #fff;
}

.control-btn.danger:hover {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    box-shadow: 0 5px 15px rgba(244, 67, 54, 0.4);
}

.prize-pools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.prize-pool-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.prize-pool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.4);
}

.prize-pool-card.hourly .pool-icon {
    background: linear-gradient(135deg, #2196f3, #1565c0);
}

.prize-pool-card.weekly .pool-icon {
    background: linear-gradient(135deg, #ff9800, #ef6c00);
}

.prize-pool-card.monthly .pool-icon {
    background: linear-gradient(135deg, #9c27b0, #6a1b9a);
}

.pool-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
}

.pool-content {
    flex: 1;
}

.pool-label {
    font-size: 1rem;
    color: #ffd700;
    font-weight: 500;
    margin-bottom: 8px;
}

.pool-amount {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.pool-description {
    font-size: 0.85rem;
    color: #ccc;
}

.prize-pool-info {
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
}

.info-card h4 {
    color: #ffd700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card ul {
    list-style: none;
    color: #fff;
}

.info-card li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.info-card li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #ffd700;
    font-weight: bold;
}

/* Bot Management Section */
.bot-management-section {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

/* Bot Manager Status Card */
.bot-manager-status-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.manager-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.manager-status-header h3 {
    margin: 0;
    color: #ffd700;
}

.manager-status-indicator {
    display: flex;
    align-items: center;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
}

.status-indicator.running {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4caf50;
}

.status-indicator.stopped {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
}

.status-indicator.unknown {
    background: rgba(158, 158, 158, 0.2);
    border: 1px solid #9e9e9e;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-indicator.running .status-dot {
    background: #4caf50;
}

.status-indicator.stopped .status-dot {
    background: #f44336;
}

.status-indicator.unknown .status-dot {
    background: #9e9e9e;
}

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

.manager-status-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.status-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.detail-label {
    color: #ffd700;
    font-weight: 500;
}

.detail-value {
    color: #fff;
    font-weight: 600;
}

.manager-controls {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

.manager-control-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.manager-control-btn.start-manager {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: #fff;
    border: 2px solid #4caf50;
}

.manager-control-btn.start-manager:hover {
    background: linear-gradient(135deg, #66bb6a, #4caf50);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.manager-control-btn.restart-manager {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: #fff;
    border: 2px solid #ff9800;
}

.manager-control-btn.restart-manager:hover {
    background: linear-gradient(135deg, #ffb74d, #ff9800);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
}

.manager-control-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Bot Controls */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.bot-controls, .user-controls, .prize-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.bot-count-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bot-count-selector label {
    color: #ffd700;
    font-weight: 500;
    white-space: nowrap;
}

.bot-count-selector select {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 6px;
    color: #fff;
    font-size: 0.9rem;
}

.control-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.control-btn.start {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: #fff;
}

.control-btn.stop {
    background: linear-gradient(135deg, #f44336, #c62828);
    color: #fff;
}

.control-btn.refresh {
    background: linear-gradient(135deg, #2196f3, #1565c0);
    color: #fff;
}

.control-btn.danger {
    background: linear-gradient(135deg, #ff5722, #d84315);
    color: #fff;
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

.control-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Live Bot Status */
.bot-status-section {
    margin-bottom: 30px;
}

.bot-status-info {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-label {
    color: #ffd700;
    font-weight: 500;
}

.status-value {
    color: #fff;
    font-weight: 600;
}

.live-bot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.live-bot-card {
    background: rgba(30, 35, 45, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.live-bot-card.active {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.live-bot-card:hover {
    border-color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.live-bot-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.live-bot-details {
    font-size: 0.85rem;
    color: #ccc;
    line-height: 1.6;
}

.watch-indicator {
    text-align: center;
    margin-top: 10px;
    padding: 5px;
    background: rgba(76, 175, 80, 0.2);
    border-radius: 4px;
    color: #4CAF50;
    font-size: 0.8rem;
}

.no-live-bots {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

/* Bot Profiles Section */
.bot-profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.bot-profile-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bot-clickable-area {
    padding: 25px;
    transition: background-color 0.3s ease;
}

.bot-clickable-area:hover {
    background: rgba(255, 255, 255, 0.02);
}

.bot-profile-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.4);
}

/* Playing state for bot cards */
.bot-profile-card.playing {
    border-color: #4caf50;
    animation: playingPulse 2s ease-in-out infinite;
    background: rgba(76, 175, 80, 0.05);
}

.bot-profile-card.playing:hover {
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
    border-color: #66bb6a;
}

@keyframes playingPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* Watch Now Hint */
.watch-now-hint {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    background: rgba(76, 175, 80, 0.9);
    color: #fff;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.bot-clickable-area:hover .watch-now-hint {
    opacity: 1;
    transform: translateY(0);
}

.bot-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.bot-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4285f4, #1976d2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}

.bot-info h3 {
    color: #ffd700;
    font-size: 1.1rem;
    margin: 0 0 2px 0;
}

.bot-style {
    color: #ccc;
    font-size: 0.85rem;
    margin: 0;
}

.bot-stats {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.bot-stats .stat {
    flex: 1;
    text-align: center;
}

.bot-stats .stat .value {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.bot-stats .stat .label {
    display: block;
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bot-activity {
    margin-top: 15px;
}

.activity-header {
    font-size: 0.85rem;
    color: #ffd700;
    font-weight: 500;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.activity-status {
    font-weight: 600;
    margin-bottom: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.activity-status.playing {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.activity-status.idle {
    background: rgba(158, 158, 158, 0.2);
    color: #ccc;
    border: 1px solid rgba(158, 158, 158, 0.3);
}

.activity-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #999;
    margin-top: 8px;
}

/* Live Score Indicator */
.live-score-indicator {
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: scorePulse 1.5s ease-in-out infinite;
}

@keyframes scorePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.live-score-indicator .score-label {
    color: #ffd700;
    font-weight: 500;
    font-size: 0.85rem;
}

.live-score-indicator .score-value {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

/* Bot Actions */
.bot-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.view-details-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #000;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-details-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
}

/* Watch Table Hint */
.watch-table-hint {
    text-align: center;
    padding: 8px;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 6px;
    color: #4caf50;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    animation: watchPulse 2s ease-in-out infinite;
}

@keyframes watchPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Enhanced Live Bot Card Styles */
.live-bot-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.live-bot-card.active {
    border-color: #4caf50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
    cursor: pointer;
    background: rgba(76, 175, 80, 0.05);
}

.live-bot-card.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
    background: rgba(76, 175, 80, 0.08);
}

.live-bot-name {
    font-weight: 600;
    color: #ffd700;
    margin-bottom: 8px;
}

.live-bot-details {
    font-size: 0.85rem;
    color: #ccc;
    line-height: 1.4;
}

/* Watch Indicator for Live Bot Cards */
.watch-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.4);
    border-radius: 4px;
    color: #4caf50;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    animation: fadeInOut 2s ease-in-out infinite;
}

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

/* User Management Section */
.user-management-section {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.user-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-filter label {
    color: #ffd700;
    font-weight: 500;
}

.users-table-container {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.2);
}

.users-table th {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.users-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.users-table tr:hover {
    background: rgba(255, 215, 0, 0.05);
}

.loading-row {
    text-align: center;
    color: #ccc;
    font-style: italic;
}

.user-type-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.user-type-badge.player {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
}

.user-type-badge.bot {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.user-type-badge.admin {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-right: 5px;
    transition: all 0.2s ease;
}

.action-btn.view {
    background: #2196f3;
    color: #fff;
}

.action-btn.edit {
    background: #ff9800;
    color: #fff;
}

.action-btn.reset-balance {
    background: linear-gradient(135deg, #9c27b0, #6a1b9a);
    color: #fff;
    border: 1px solid #9c27b0;
}

.action-btn.reset-balance:hover {
    background: linear-gradient(135deg, #ba68c8, #9c27b0);
    opacity: 1;
    box-shadow: 0 3px 10px rgba(156, 39, 176, 0.3);
}

.action-btn:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
    color: #ffd700;
}

.loading-spinner i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.loading-spinner p {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-title {
        font-size: 2rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .bot-controls, .user-controls {
        flex-direction: column;
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .bot-profiles-grid {
        grid-template-columns: 1fr;
    }
    
    .users-table-container {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .admin-main {
        padding: 20px 15px;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .bot-stats {
        grid-template-columns: 1fr;
    }
}

/* Solo Play Toggle Styles */
.solo-play-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 25px 20px 25px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    margin-top: 0 !important;
    background: rgba(0, 0, 0, 0.2);
}

.solo-play-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.solo-play-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.solo-play-toggle .slider {
    position: relative;
    width: 44px;
    height: 22px;
    background-color: #2a2a3e;
    border: 2px solid #444;
    border-radius: 22px;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.solo-play-toggle .slider::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    left: 2px;
    top: 1px;
    background-color: #666;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.solo-play-toggle input:checked + .slider {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

.solo-play-toggle input:checked + .slider::before {
    background-color: #fff;
    transform: translateX(22px);
}

.solo-play-toggle:hover .slider {
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
    border-color: rgba(255, 215, 0, 0.6);
}

/* Disabled state when bot is in tournament */
.solo-play-toggle input:disabled + .slider {
    opacity: 0.7;
    cursor: not-allowed;
}

.solo-play-toggle input:disabled + .slider::before {
    background-color: #999;
}

/* Disabled state for entire toggle */
.solo-play-toggle.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.solo-play-toggle.disabled .slider {
    background-color: #1a1a1e;
    border-color: #333;
}

.solo-play-toggle.disabled:hover .slider {
    box-shadow: none;
    border-color: #333;
}

/* Solo Play Status */
.activity-status.solo {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.activity-status.solo i {
    color: #fff;
}

/* Solo play status indicators */
.solo-status-indicator {
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 10px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.solo-status-indicator.playing {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.solo-status-indicator.ready {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

/* Purchase Requests Section Styles */
.purchase-requests-section {
    margin-bottom: 40px;
}

.purchase-requests-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.purchase-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.request-filter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.request-filter label {
    color: #ccc;
    font-size: 0.9rem;
}

.request-filter select {
    background: rgba(30, 35, 45, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    padding: 8px 12px;
    font-size: 0.9rem;
}

.purchase-requests-container {
    background: rgba(20, 25, 35, 0.6);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.purchase-requests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.purchase-request-card {
    background: rgba(30, 35, 45, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.purchase-request-card.pending {
    border-color: #ff9800;
    background: rgba(255, 152, 0, 0.05);
}

.purchase-request-card.completed {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.05);
}

.purchase-request-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.request-info h3 {
    color: #fff;
    font-size: 1.1rem;
    margin: 0 0 5px 0;
}

.user-email {
    color: #ccc;
    font-size: 0.85rem;
    margin: 0;
}

.request-status {
    text-align: right;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.pending {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
    border: 1px solid #ff9800;
}

.status-badge.completed {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

.request-details {
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item .label {
    color: #ccc;
    font-size: 0.85rem;
}

.detail-item .value {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
}

.code-display {
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.request-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.action-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.action-btn.complete {
    background: #4CAF50;
    color: white;
}

.action-btn.complete:hover {
    background: #45a049;
    transform: translateY(-1px);
}

.action-btn.delete {
    background: #f44336;
    color: white;
}

.action-btn.delete:hover {
    background: #da190b;
    transform: translateY(-1px);
}

.no-requests-message {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-requests-message .message-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.no-requests-message i {
    font-size: 3rem;
    color: #444;
}

.no-requests-message h3 {
    color: #888;
    margin: 0;
    font-size: 1.5rem;
}

.no-requests-message p {
    color: #666;
    margin: 0;
    font-size: 1rem;
}

.loading-message {
    text-align: center;
    padding: 40px;
    color: #ccc;
    font-size: 1rem;
}

.loading-message i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
} 