/* Modern Admin Dashboard Styles */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f7fa;
    color: #2c3e50;
}

/* Admin Container Layout */
.admin-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.sidebar-header {
    padding: 30px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.sidebar-header p {
    font-size: 14px;
    color: #95a5a6;
    font-weight: 300;
}

.sidebar-nav {
    padding: 20px 0;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.nav-item.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-left-color: #3498db;
}

.nav-item i {
    font-size: 18px;
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.nav-item span {
    font-size: 15px;
    font-weight: 400;
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 40px;
    background-color: #f5f7fa;
    min-height: 100vh;
}

.content-view {
    display: none;
}

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

/* Content Header */
.content-header {
    margin-bottom: 40px;
}

.content-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.content-header .subtitle {
    font-size: 16px;
    color: #7f8c8d;
    font-weight: 400;
}

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

.stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.stat-icon.red {
    background-color: #fee;
    color: #e74c3c;
}

.stat-icon.yellow {
    background-color: #fef9e7;
    color: #f39c12;
}

.stat-icon.blue {
    background-color: #ebf5fb;
    color: #3498db;
}

.stat-icon.green {
    background-color: #e8f8f5;
    color: #27ae60;
}

.stat-info h3 {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.stat-info p {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 400;
}

/* Table Section */
.table-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.table-section h2 {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
}

.table-container {
    overflow-x: auto;
}

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

.data-table thead {
    background-color: #f8f9fa;
}

.data-table th {
    padding: 15px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #ecf0f1;
}

.data-table tbody tr {
    border-bottom: 1px solid #ecf0f1;
    transition: background-color 0.2s ease;
}

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

.data-table td {
    padding: 15px;
    font-size: 14px;
    color: #2c3e50;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.active {
    background-color: #d4edda;
    color: #27ae60;
}

.status-badge.draft {
    background-color: #fff3cd;
    color: #f39c12;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.filter-tab {
    padding: 12px 24px;
    border: 2px solid #ecf0f1;
    background-color: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #7f8c8d;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-tab:hover {
    border-color: #3498db;
    color: #3498db;
}

.filter-tab.active {
    background-color: #3498db;
    color: #ffffff;
    border-color: #3498db;
}

.filter-tab i {
    font-size: 16px;
}

/* Questions List */
.questions-list {
    display: grid;
    gap: 20px;
}

.question-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.question-id {
    font-size: 14px;
    font-weight: 600;
    color: #7f8c8d;
}

.question-category {
    padding: 4px 12px;
    background-color: #ebf5fb;
    color: #3498db;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.question-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.5;
}

.question-options {
    margin-bottom: 20px;
}

.option-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 10px;
}

.option {
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
    color: #2c3e50;
}

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

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn i {
    font-size: 14px;
}

.btn-approve {
    background-color: #27ae60;
    color: #ffffff;
}

.btn-approve:hover {
    background-color: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(39, 174, 96, 0.3);
}

.btn-edit {
    background-color: #3498db;
    color: #ffffff;
}

.btn-edit:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.btn-discard {
    background-color: #e74c3c;
    color: #ffffff;
}

.btn-discard:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 250px;
    }

    .main-content {
        margin-left: 250px;
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }

    .sidebar-header p,
    .nav-item span {
        display: none;
    }

    .sidebar-header h2 {
        font-size: 18px;
        text-align: center;
    }

    .nav-item {
        justify-content: center;
        padding: 15px 10px;
    }

    .nav-item i {
        margin-right: 0;
    }

    .main-content {
        margin-left: 70px;
        padding: 20px 15px;
    }

    .content-header h1 {
        font-size: 24px;
    }

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

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

    .option-row {
        grid-template-columns: 1fr;
    }

    .question-actions {
        flex-direction: column;
    }

    .question-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 15px 10px;
    }
}
