/* Admin Interface Styles */



/* Admin Content */
.admin-content {
    padding: 2rem 0;
}

/* Admin Navigation */
.admin-nav {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-bottom: 1px solid #e9ecef;
}

.admin-nav h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.admin-nav p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-links .btn {
    min-width: 150px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #d09c1a;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.stat-trend {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    display: inline-block;
}

.stat-trend.positive {
    background: rgba(40, 167, 69, 0.1);
    color: #d09c1a;
}

.stat-trend.negative {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Analytics Overview */
.analytics-overview {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.analytics-overview .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.analytics-overview h2 {
    font-size: 1.8rem;
    color: #333;
    margin: 0;
}

.date-picker select {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    font-size: 0.9rem;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.chart-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.chart-card h3 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.2rem;
    text-align: center;
}

.chart-container {
    height: 250px;
    position: relative;
}

/* Key Performance Indicators */
.kpi-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.kpi-section h2 {
    font-size: 1.8rem;
    color: #333;
    margin: 0 0 1.5rem 0;
    text-align: center;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.kpi-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: transform 0.3s;
    cursor: pointer;
}

.kpi-card:hover {
    transform: translateY(-3px);
}

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

.kpi-header h3 {
    margin: 0;
    color: #333;
    font-size: 1rem;
}

.kpi-trend {
    font-size: 0.8rem;
    font-weight: bold;
}

.kpi-trend.positive {
    color: #d09c1a;
}

.kpi-trend.negative {
    color: #dc3545;
}

.kpi-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #d09c1a;
    margin-bottom: 0.5rem;
}

.kpi-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Summary Stats */
.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.summary-stats .stat-card {
    padding: 1.5rem;
}

.summary-stats .stat-icon {
    font-size: 2rem;
}

.summary-stats .stat-number {
    font-size: 2rem;
}

/* Activity Section */
.activity-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

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

.section-header h2 {
    font-size: 1.8rem;
    color: #333;
    margin: 0;
}

.section-tabs {
    display: flex;
    gap: 0.5rem;
}

.tab-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #d09c1a;
    background: transparent;
    color: #d09c1a;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.tab-btn.active,
.tab-btn:hover {
    background: #d09c1a;
    color: white;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: background-color 0.3s;
}

.activity-item:hover {
    background: #e9ecef;
}

.activity-icon {
    font-size: 1.5rem;
    color: #d09c1a;
}

.activity-content {
    flex: 1;
}

.activity-content h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.activity-content p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

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

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-badge.active {
    background: #d09c1a;
    color: white;
}

.status-badge.inactive {
    background: #dc3545;
    color: white;
}

.status-badge.completed {
    background: #d09c1a;
    color: white;
}

.status-badge.in-progress {
    background: #ffc107;
    color: #333;
}

/* Role Badges */
.role-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.role-badge.admin {
    background: #6f42c1;
    color: white;
}

.role-badge.user {
    background: #6c757d;
    color: white;
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 3rem;
}

.quick-actions h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.action-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
}

.action-icon {
    font-size: 2.5rem;
    color: #d09c1a;
    margin-bottom: 1rem;
}

.action-card h3 {
    margin-bottom: 1rem;
    color: #333;
}

.action-card p {
    color: #666;
    margin: 0;
}

/* Filters Section */
.filters-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.search-box {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-box input {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    min-width: 300px;
}

.filter-options {
    display: flex;
    gap: 1rem;
}

.filter-options select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
}

/* Users Table */
.users-table-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

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

.users-table th {
    background: #f8f9fa;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e9ecef;
}

.users-table td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.users-table tbody tr:hover {
    background: #f8f9fa;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    font-size: 2rem;
    color: #d09c1a;
}

.user-details strong {
    display: block;
    color: #333;
}

.user-details small {
    color: #666;
    font-size: 0.8rem;
}

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

/* User Detail Styles */
.user-info-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.user-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.user-avatar-large {
    font-size: 4rem;
    color: #d09c1a;
}

.user-details h2 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.user-email {
    color: #666;
    margin: 0 0 1rem 0;
}

.user-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.id-badge {
    background: #6c757d;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.user-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
}

.stat-item .stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #d09c1a;
    margin-bottom: 0.5rem;
}

.stat-item .stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* Game Activity Section */
.game-activity-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.game-activity-section h3 {
    margin: 0 0 1.5rem 0;
    color: #333;
}

.game-stats-table {
    overflow-x: auto;
}

.game-stats-table table {
    width: 100%;
    border-collapse: collapse;
}

.game-stats-table th,
.game-stats-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.game-stats-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

/* Statistics Styles */
.stats-table {
    width: 100%;
    border-collapse: collapse;
}

.stats-table th,
.stats-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.stats-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.completion-rate {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.completion-rate.high {
    background: #d09c1a;
    color: white;
}

.completion-rate.medium {
    background: #ffc107;
    color: #333;
}

.completion-rate.low {
    background: #dc3545;
    color: white;
}

.performance-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: #d09c1a;
    transition: width 0.3s;
}

/* Chart Section */
.chart-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.chart-section h3 {
    margin: 0 0 1.5rem 0;
    color: #333;
}

.chart-container {
    height: 300px;
    position: relative;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.page-info {
    color: #666;
    font-weight: 500;
}

/* Advanced Analytics */
.advanced-analytics {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.advanced-analytics h2 {
    font-size: 1.8rem;
    color: #333;
    margin: 0 0 1.5rem 0;
    text-align: center;
}

/* User Insights */
.user-insights-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.user-insights-section h3 {
    font-size: 1.8rem;
    color: #333;
    margin: 0 0 1.5rem 0;
    text-align: center;
}

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

.insight-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    transition: transform 0.3s;
    cursor: pointer;
}

.insight-card:hover {
    transform: translateY(-3px);
}

.insight-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.insight-card h4 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.2rem;
    text-align: center;
}

.insight-content p {
    color: #666;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.insight-metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #d09c1a;
    margin-bottom: 0.5rem;
}

.metric-label {
    color: #666;
    font-size: 0.9rem;
}

/* Satisfaction Rating */
.satisfaction-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    color: #ffc107;
    font-size: 1rem;
}

.rating-text {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transform: translateY(-50px);
    transition: transform 0.3s ease-in-out;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    padding: 2rem;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    color: #333;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 400px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid #d09c1a;
}

.notification-error {
    border-left: 4px solid #dc3545;
}

.notification-info {
    border-left: 4px solid #d09c1a;
}

.notification button {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.notification button:hover {
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .filters-section {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-box input {
        min-width: auto;
        width: 100%;
    }
    
    .users-table {
        font-size: 0.9rem;
    }
    
    .users-table th,
    .users-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .user-header {
        flex-direction: column;
        text-align: center;
    }
    
    .user-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .analytics-overview .section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-nav h1 {
        font-size: 2rem;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-links .btn {
        min-width: 200px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}
