
/* PassPaeds Complete CSS */
.passpaeds-complete-dashboard {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    background: #f8fafc;
    min-height: 100vh;
}

.dashboard-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.dashboard-header h1 {
    margin: 0 0 10px 0;
    font-size: 32px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin: 0 0 25px 0;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.stat-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.2);
}

.stat-icon {
    font-size: 28px;
    opacity: 0.9;
}

.stat-content h3 {
    margin: 0 0 5px 0;
    font-size: 14px;
    opacity: 0.9;
}

.stat-number {
    margin: 0;
    font-size: 28px;
    font-weight: bold;
}

.dashboard-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
}

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

/* Sidebar */
.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.sidebar-section h3 {
    margin: 0 0 20px 0;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

/* Category Selector */
.selector-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.category-search {
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    width: 100%;
}

.selector-buttons {
    display: flex;
    gap: 10px;
}

.selector-buttons button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-select-all {
    background: #4f46e5;
    color: white;
}

.btn-clear-all {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.categories-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.category-item {
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
}

.category-item:hover {
    border-color: #4f46e5;
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.1);
}

.checkbox-container {
    display: block;
    padding: 20px;
    cursor: pointer;
    position: relative;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 20px;
    right: 20px;
    height: 22px;
    width: 22px;
    background-color: #e2e8f0;
    border-radius: 6px;
    transition: all 0.2s;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #4f46e5;
}

.checkmark:after {
    content: '';
    position: absolute;
    display: none;
    left: 8px;
    top: 4px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.category-info h4 {
    margin: 0 0 8px 0;
    color: #2d3748;
    font-size: 16px;
    font-weight: 600;
}

.category-desc {
    margin: 0 0 12px 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.category-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.accuracy-badge {
    background: #10b981;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.selection-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.summary-info {
    font-weight: 500;
    color: #2d3748;
}

.question-count {
    color: #4f46e5;
    font-weight: 600;
    margin-left: 5px;
}

.btn-start-practice {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-start-practice:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

.btn-start-practice:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
}

/* Recent Activity */
.recent-activity .activity-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.activity-item {
    padding: 15px;
    margin-bottom: 10px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #4f46e5;
}

.activity-item.session_started {
    border-left-color: #3b82f6;
}

.activity-item.question_answered {
    border-left-color: #10b981;
}

.activity-item.session_completed {
    border-left-color: #8b5cf6;
}

.activity-content {
    font-size: 14px;
    color: #2d3748;
    margin-bottom: 5px;
}

.activity-time {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
}

.loading-activity {
    text-align: center;
    padding: 20px;
    color: #64748b;
}

.btn-view-all-activity {
    width: 100%;
    padding: 12px;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-view-all-activity:hover {
    background: #e2e8f0;
}

/* Main Content */
.main-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

/* Practice Session */
.practice-session {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.session-header h3 {
    margin: 0;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 10px;
}

.session-meta {
    display: flex;
    gap: 25px;
    margin-top: 10px;
}

.meta-item {
    color: #64748b;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-item i {
    color: #4f46e5;
}

.session-timer {
    background: #4f46e5;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 30px;
}

.progress-bar {
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    transition: width 0.3s ease;
    border-radius: 5px;
}

.progress-text {
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

/* Question Container */
.question-container {
    background: #f8fafc;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    min-height: 400px;
}

.question-display {
    font-size: 16px;
    line-height: 1.6;
}

.question-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.question-number {
    font-weight: bold;
    color: #4f46e5;
    font-size: 18px;
}

.question-category {
    background: #e0e7ff;
    color: #4f46e5;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.question-text {
    font-size: 18px;
    margin-bottom: 30px;
    color: #2d3748;
    line-height: 1.6;
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.option-item:hover {
    border-color: #4f46e5;
    background: #f8fafc;
}

.option-item.selected {
    border-color: #4f46e5;
    background: #e0e7ff;
}

.option-item.correct {
    border-color: #10b981;
    background: #d1fae5;
}

.option-item.incorrect {
    border-color: #ef4444;
    background: #fee2e2;
}

.option-item input[type="radio"] {
    margin-right: 15px;
    transform: scale(1.2);
}

.option-letter {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: #4f46e5;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
    margin-right: 15px;
}

.option-item.correct .option-letter {
    background: #10b981;
}

.option-item.incorrect .option-letter {
    background: #ef4444;
}

.option-text {
    flex: 1;
    font-size: 16px;
}

/* Answer Feedback */
.answer-feedback {
    margin-top: 30px;
    padding: 20px;
    border-radius: 10px;
    animation: slideIn 0.5s;
}

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.feedback-correct {
    background: #d1fae5;
    border: 1px solid #34d399;
    color: #065f46;
}

.feedback-incorrect {
    background: #fee2e2;
    border: 1px solid #f87171;
    color: #991b1b;
}

.feedback-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-weight: 600;
}

.feedback-details {
    font-size: 14px;
    line-height: 1.5;
}

.feedback-details strong {
    color: inherit;
}

/* Explanation */
.question-explanation {
    margin-top: 25px;
    padding: 20px;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 10px;
    color: #92400e;
}

.question-explanation h4 {
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Navigation Controls */
.navigation-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-nav {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.btn-prev {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.btn-next {
    background: #4f46e5;
    color: white;
}

.btn-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.answer-status {
    color: #64748b;
    font-size: 14px;
    text-align: center;
}

/* Session Controls */
.session-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.btn-control {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-show-explanation {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #f59e0b;
}

.btn-skip {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #3b82f6;
}

.btn-end {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* No Session */
.no-session {
    text-align: center;
    padding: 60px 20px;
}

.empty-state {
    max-width: 500px;
    margin: 0 auto;
}

.empty-state i {
    color: #cbd5e1;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #2d3748;
    margin: 0 0 15px 0;
}

.empty-state p {
    color: #64748b;
    margin: 0 0 30px 0;
    font-size: 16px;
    line-height: 1.6;
}

.quick-tips {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.tip {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
    color: #4f46e5;
}

.tip i {
    font-size: 20px;
}

.tip span {
    font-size: 14px;
    color: #2d3748;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 80px 20px;
}

.loader {
    color: #4f46e5;
}

.loader-detail {
    color: #64748b;
    font-size: 14px;
    margin-top: 10px;
}

/* Modals */
.results-modal,
.activity-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10001;
    animation: modalSlideIn 0.3s;
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

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

.modal-header h2 {
    margin: 0;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-close-modal {
    background: none;
    border: none;
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.btn-close-modal:hover {
    color: #2d3748;
}

.modal-body {
    padding: 30px;
}

.results-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .results-summary {
        grid-template-columns: repeat(4, 1fr);
    }
}

.result-stat {
    text-align: center;
    padding: 25px;
    background: #f8fafc;
    border-radius: 15px;
}

.stat-value {
    font-size: 36px;
    font-weight: bold;
    color: #4f46e5;
    margin-bottom: 5px;
}

.stat-label {
    color: #64748b;
    font-size: 14px;
}

.performance-breakdown h4 {
    margin: 0 0 20px 0;
    color: #2d3748;
}

.breakdown-content {
    background: #f8fafc;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-action {
    flex: 1;
    min-width: 200px;
    padding: 15px 25px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-review-answers {
    background: #4f46e5;
    color: white;
}

.btn-new-session {
    background: #10b981;
    color: white;
}

.btn-dashboard {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.btn-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Activity Modal */
.activity-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.activity-filters select,
.activity-filters input {
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    min-width: 200px;
}

.activity-list-full {
    max-height: 500px;
    overflow-y: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-header h1 {
        font-size: 24px;
    }
    
    .quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .session-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .session-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .navigation-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .session-controls {
        flex-direction: column;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-action {
        min-width: 100%;
    }
}
    