/* Accessibility Dashboard */
.dashboard {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dashboard-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.quick-toggles {
    display: flex;
    padding: 15px 30px;
    gap: 10px;
    background: var(--light);
    border-bottom: 1px solid var(--gray-light);
}

.toggle-btn {
    flex: 1;
    padding: 12px;
    background: white;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.toggle-btn.active {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
}

.toggle-btn:hover:not(.active) {
    border-color: var(--gray);
}

.toggle-icon {
    font-size: 1.5rem;
}

/* Tabs */
.dashboard-tabs {
    display: flex;
    background: var(--light);
    border-bottom: 1px solid var(--gray-light);
}

.tab-btn {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
    color: var(--gray);
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: white;
}

.tab-btn:hover:not(.active) {
    color: var(--dark);
}

/* Tab Content */
.tab-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Adaptive Engine Styles */
.adaptive-status {
    background: var(--light);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.status-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.complexity-meter {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.meter-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--gray);
}

/* Neuro Profiles */
.neuro-profiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.profile-card {
    background: white;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.profile-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.profile-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.profile-activate {
    margin-top: 15px;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.profile-activate:hover {
    background: var(--primary-dark);
}

/* Navigation Modes */
.nav-modes {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.nav-mode {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--light);
    border-radius: var(--radius);
}

.mode-toggle {
    width: 20px;
    height: 20px;
}

.mode-icon {
    font-size: 1.5rem;
}

/* Cognitive Load */
.load-visualizer {
    background: var(--light);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.load-meter {
    background: white;
    height: 30px;
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}

.load-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--success), var(--warning), var(--danger));
    width: 30%;
    transition: width 0.5s ease;
}

.load-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 0.9rem;
    color: var(--gray);
}

.load-breakdown ul {
    list-style: none;
    margin-top: 10px;
}

.load-breakdown li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-light);
}

/* Settings */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.setting {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-btn {
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.action-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.action-btn.emergency {
    background: var(--danger);
    animation: pulseEmergency 2s infinite;
}

@keyframes pulseEmergency {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}