/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #1abc9c;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --gray-color: #95a5a6;
    --border-color: #ddd;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Login Page */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 500px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.logo i {
    font-size: 3rem;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 600;
}

.login-card {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-weight: 500;
}

.login-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 16px;
    transition: var(--transition);
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-color);
    cursor: pointer;
    font-size: 18px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #27ae60;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-success {
    background: var(--secondary-color);
    color: white;
}

.btn-success:hover {
    background: #27ae60;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 18px;
}

/* Header */
.main-header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.username {
    font-weight: 600;
    color: var(--dark-color);
}

.user-type {
    font-size: 12px;
    color: var(--gray-color);
}

.admin-avatar {
    background: var(--danger-color);
}

.badge-admin {
    color: var(--danger-color);
    font-weight: 600;
}

/* Info Panel */
.info-panel {
    background: white;
    margin: 20px auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--light-color);
    border-radius: var(--radius);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.info-card i {
    font-size: 24px;
    color: var(--primary-color);
}

.info-label {
    display: block;
    font-size: 12px;
    color: var(--gray-color);
    text-transform: uppercase;
    font-weight: 600;
}

.info-value {
    display: block;
    font-size: 16px;
    color: var(--dark-color);
    font-weight: 600;
}

/* Question Cards */
.question-card {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.question-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.question-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.question-text {
    font-size: 18px;
    color: var(--dark-color);
    flex: 1;
}

.options-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.option-btn {
    cursor: pointer;
}

.option-btn input {
    display: none;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    transition: var(--transition);
}

.option-label:hover {
    background: var(--light-color);
}

.option-btn input:checked + .option-label {
    border-color: var(--primary-color);
    background: rgba(52, 152, 219, 0.1);
}

.yes-option i {
    color: var(--secondary-color);
}

.no-option i {
    color: var(--danger-color);
}

/* Upload Section */
.upload-section {
    background: var(--light-color);
    padding: 20px;
    border-radius: var(--radius);
    margin-top: 20px;
}

.upload-header {
    margin-bottom: 15px;
}

.upload-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.preview-section {
    margin-top: 20px;
}

.preview-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.preview-item video,
.preview-item img {
    max-width: 100%;
    border-radius: var(--radius);
    border: 2px solid var(--border-color);
}

/* Remarks */
.remarks-section {
    margin-top: 20px;
}

.remarks-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 16px;
    min-height: 100px;
    resize: vertical;
}

.remarks-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    overflow: auto;
}

.modal-content {
    background: white;
    margin: 50px auto;
    border-radius: var(--radius);
    max-width: 800px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.modal-lg {
    max-width: 900px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    color: var(--dark-color);
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-color);
}

.modal-body {
    padding: 20px;
}

/* Camera */
.camera-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: black;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 20px;
}

#cameraFeed {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.camera-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

/* Stats */
.stats-section {
    padding: 30px 0;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.stat-icon {
    font-size: 40px;
    opacity: 0.9;
}

.stat-content h3 {
    font-size: 32px;
    margin-bottom: 5px;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: var(--light-color);
    color: var(--dark-color);
    font-weight: 600;
}

.data-table tr:hover {
    background: rgba(52, 152, 219, 0.05);
}

/* Badges */
.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success {
    background: rgba(46, 204, 113, 0.2);
    color: var(--secondary-color);
}

.badge-danger {
    background: rgba(231, 76, 60, 0.2);
    color: var(--danger-color);
}

.badge-info {
    background: rgba(52, 152, 219, 0.2);
    color: var(--primary-color);
}

.badge-video {
    background: rgba(155, 89, 182, 0.2);
    color: #9b59b6;
}

.badge-image {
    background: rgba(52, 152, 219, 0.2);
    color: var(--primary-color);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-action {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: white;
    font-size: 14px;
}

.btn-download {
    background: var(--secondary-color);
}

.btn-view {
    background: var(--primary-color);
}

.btn-remarks {
    background: var(--warning-color);
}

.btn-action:hover {
    opacity: 0.9;
    transform: scale(1.1);
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
}

.alert-error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
}

/* Filters */
.filters-card {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-weight: 500;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 16px;
}

.filter-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* Summary Cards */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.summary-card:hover {
    transform: translateY(-5px);
}

.summary-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.summary-content h3 {
    font-size: 28px;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.summary-content p {
    color: var(--gray-color);
    font-size: 14px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 50px;
    color: var(--gray-color);
}

.no-results i {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--light-color);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
}

.quick-action:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.action-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* Questions List */
.questions-list {
    max-height: 500px;
    overflow-y: auto;
}

.question-item {
    background: var(--light-color);
    border-radius: var(--radius);
    padding: 15px;
    margin-bottom: 10px;
    border-left: 3px solid var(--primary-color);
}

.question-item.inactive {
    opacity: 0.7;
    border-left-color: var(--gray-color);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.question-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--gray-color);
    margin-top: 10px;
}

/* Sample Accounts */
.sample-accounts {
    margin-top: 30px;
    color: white;
}

.sample-accounts h3 {
    text-align: center;
    margin-bottom: 20px;
}

.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.account-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
}

.account-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.2);
}

.account-card h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}
/* Add to existing style.css */
.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #95a5a6;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
}

.form-text {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 12px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}
/* Add these styles to your existing style.css */

/* Modal close button fix */
.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #95a5a6;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: #f8f9fa;
    color: #e74c3c;
}

/* Admin header controls */
.admin-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* User info with logout button */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logout-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e74c3c;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* Admin header specific */
.admin-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
}

.admin-header .logo h1 {
    color: white;
}

.admin-header .admin-controls .btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* Modal actions */
.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Form improvements */
.form-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.form-card h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .admin-controls {
        flex-direction: column;
        width: 100%;
    }
    
    .admin-controls .btn-sm {
        width: 100%;
        justify-content: center;
    }
    
    .user-info {
        flex-direction: column;
        text-align: center;
        width: 100%;
        margin-top: 10px;
    }
    
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* Badge improvements */
.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.badge-success {
    background: rgba(46, 204, 113, 0.2);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.badge-danger {
    background: rgba(231, 76, 60, 0.2);
    color: #c0392b;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.badge-info {
    background: rgba(52, 152, 219, 0.2);
    color: #2980b9;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.badge-warning {
    background: rgba(243, 156, 18, 0.2);
    color: #d35400;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.badge-secondary {
    background: rgba(149, 165, 166, 0.2);
    color: #7f8c8d;
    border: 1px solid rgba(149, 165, 166, 0.3);
}

/* Alert improvements */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

.alert-success {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid #2ecc71;
    color: #27ae60;
}

.alert-error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid #e74c3c;
    color: #c0392b;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    min-width: 300px;
}

.loading-content i {
    color: #3498db;
}

.loading-content p {
    margin-top: 15px;
    font-size: 16px;
    color: #2c3e50;
}
/* Fix logout button in admin header */
.admin-header .user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-header .logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: #e74c3c;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.admin-header .logout-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.admin-header .logout-text {
    font-size: 14px;
    font-weight: 500;
}

/* Fix question number in add_question.php */
.question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: #3498db;
    color: white !important;
    border-radius: 50%;
    font-weight: bold;
    font-size: 16px;
    margin-right: 15px;
}

/* Fix edit/delete buttons in add_question.php */
.btn-action {
    padding: 8px 15px !important;
    font-size: 14px !important;
    border-radius: 6px !important;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 80px;
}

.btn-edit {
    background: #3498db !important;
    color: white !important;
}

.btn-delete {
    background: #e74c3c !important;
    color: white !important;
}

.btn-action:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Fix question text color */
.question-text {
    color: #2c3e50 !important;
    font-size: 16px;
    line-height: 1.5;
}

/* Fix buttons in add_user.php */
.user-actions {
    display: flex;
    gap: 10px;
}

.user-actions .btn-action {
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    min-width: 80px;
}

.user-actions .btn-edit {
    background: #3498db;
    color: white;
}

.user-actions .btn-reset {
    background: #f39c12;
    color: white;
}

/* Fix admin card buttons */
.quick-action {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.quick-action:hover {
    background: #3498db;
    color: white;
    transform: translateY(-3px);
    border-color: #3498db;
}

.quick-action:hover .action-content h4,
.quick-action:hover .action-content p {
    color: white;
}

.action-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #3498db;
    margin-bottom: 15px;
}

.quick-action:hover .action-icon {
    background: rgba(255,255,255,0.2);
    color: white;
}

.action-content h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #2c3e50;
}

.action-content p {
    font-size: 14px;
    color: #7f8c8d;
}

/* Fix modal close button */
.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #95a5a6;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: #f8f9fa;
    color: #e74c3c;
}

/* Fix form buttons */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.form-actions .btn {
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .admin-header .logout-text {
        display: none;
    }
    
    .admin-header .logout-btn {
        padding: 8px;
        width: 40px;
        height: 40px;
        justify-content: center;
    }
    
    .btn-action {
        min-width: 70px;
        padding: 6px 12px !important;
        font-size: 13px !important;
    }
    
    .user-actions .btn-action {
        min-width: 70px;
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
/* Additional fixes for all devices */
.question-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.question-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
}

.question-text {
    font-size: 18px;
    font-weight: 500;
    color: #2c3e50;
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

.options-group {
    display: flex;
    gap: 20px;
    margin: 15px 0;
}

.option-btn {
    cursor: pointer;
    flex: 1;
}

.option-btn input[type="radio"] {
    display: none;
}

.option-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.yes-option {
    background: #f0fff4;
    border-color: #2ecc71;
    color: #27ae60;
}

.no-option {
    background: #fff5f5;
    border-color: #e74c3c;
    color: #c0392b;
}

.option-btn input[type="radio"]:checked + .option-label {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.option-btn input[type="radio"]:checked + .yes-option {
    background: #2ecc71;
    color: white;
    border-color: #2ecc71;
}

.option-btn input[type="radio"]:checked + .no-option {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

/* Text answer section */
.text-answer-section {
    margin: 15px 0;
}

.text-answer-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

.text-answer-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Question meta */
.question-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #7f8c8d;
}

.question-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}