@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

:root {
    --background-color: #121212;
    --surface-color: #1e1e1e;
    --primary-color: #bb86fc;
    --primary-variant-color: #3700b3;
    --secondary-color: #03dac6;
    --on-background-color: #e0e0e0;
    --on-surface-color: #ffffff;
    --nav-icon-color: #8a8a8a;
    --nav-icon-active-color: var(--secondary-color);
    --text-size: medium;
    --hover-color: #e9ecef;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --success-color: #4caf50;
    --success-hover: #45a049;
    --info-color: #2196f3;
    --info-hover: #1976d2;
    --danger-color: #f44336;
    --danger-hover: #e53935;
    --border-color: #dee2e6;
}

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

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(to bottom, #1f1f1f, #000);
    color: #fff;
    user-select: none;
    height: 100vh;
    overflow: hidden;
}

#appTitle {
    text-align: center;
    margin-top: 30px;
    font-size: 2rem;
}

.button-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
}

button {
    width: 70%;
    margin: 10px 0;
    padding: 15px;
    font-size: 1.2rem;
    border: none;
    border-radius: 8px;
    background: #ff6600;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    transition: background 0.2s ease;
}

button:hover {
    background: #ff3300;
}

#statusLog {
    margin-top: 30px;
    padding: 15px;
    background: #111;
    font-size: 0.9rem;
    max-height: 200px;
    overflow-y: auto;
}

#statusLog div {
    margin-bottom: 8px;
    padding: 5px;
    border-radius: 4px;
    color: #00ff88;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    #app { padding: 15px; }
    .button-group { flex-direction: column; }
    button { width: 100%; min-width: auto; }
}

/* Hide scrollbars */
::-webkit-scrollbar {
    display: none;
}

/* Prevent text selection */
* {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.app-header {
    background-color: var(--surface-color);
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #2a2a2a;
    z-index: 10;
}

#header-title {
    font-size: 1.5rem;
    color: var(--on-surface-color);
}

.content-area {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
    padding-bottom: 70px; /* Space for bottom nav */
}

.module-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    color: #444;
}

.module-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.module-placeholder h2 {
    font-size: 2rem;
    color: #555;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    background-color: var(--surface-color);
    border-top: 1px solid #2a2a2a;
    padding: 0.5rem 0;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--nav-icon-color);
    flex-grow: 1;
    padding: 0.25rem 0;
    font-size: 0.75rem;
    transition: color 0.2s ease-in-out;
}

.nav-item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.nav-item.active,
.nav-item:hover {
    color: var(--nav-icon-active-color);
}

.nav-item.active span,
.nav-item:hover span {
    font-weight: bold;
}

/* Sub-navigation for modules */
.sub-nav-bar {
    display: flex;
    justify-content: space-around;
    background-color: var(--surface-color);
    border-radius: 8px;
    padding: 0.5rem;
    margin-bottom: 1rem;
}

.sub-nav-item {
    background: none;
    border: none;
    color: var(--nav-icon-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: background-color 0.2s, color 0.2s;
}

.sub-nav-item:hover {
    background-color: #2a2a2a;
}

.sub-nav-item.active {
    background-color: var(--primary-color);
    color: var(--surface-color);
}

/* SCB specific styles */
.scb-view h3 {
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.cert-item-placeholder {
    background-color: var(--surface-color);
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    border: 2px dashed #2a2a2a;
    color: var(--nav-icon-color);
    margin-bottom: 1rem;
}

.btn-primary {
    display: block;
    width: 100%;
    background-color: var(--primary-color);
    color: var(--surface-color);
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-variant-color);
}

/* Certification Form Styles */
.cert-form-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.cert-form {
    background-color: var(--surface-color);
    border-radius: 12px;
    padding: 1.5rem;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

.form-header h4 {
    margin: 0;
    color: var(--on-surface-color);
}

.close-btn {
    background: none;
    border: none;
    color: var(--nav-icon-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--on-surface-color);
}

.form-group {
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--on-surface-color);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    background-color: var(--background-color);
    color: var(--on-surface-color);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #2a2a2a;
}

.btn-secondary {
    background-color: #2a2a2a;
    color: var(--on-surface-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s;
    flex: 1;
}

.btn-secondary:hover {
    background-color: #3a3a3a;
}

/* Certification Item Styles */
.cert-item {
    background-color: var(--surface-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #2a2a2a;
}

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

.cert-header h4 {
    margin: 0;
    color: var(--on-surface-color);
    font-size: 1.1rem;
}

.cert-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.cert-status.active {
    background-color: #4caf50;
    color: white;
}

.cert-status.expired {
    background-color: #f44336;
    color: white;
}

.cert-status.pending {
    background-color: #ff9800;
    color: white;
}

.cert-status.in-progress {
    background-color: #2196f3;
    color: white;
}

.cert-details {
    margin-bottom: 1rem;
}

.cert-details p {
    margin: 0.25rem 0;
    color: var(--on-background-color);
    font-size: 0.9rem;
}

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

.btn-small {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-small:not(.btn-danger) {
    background-color: var(--primary-color);
    color: var(--surface-color);
}

.btn-small:not(.btn-danger):hover {
    background-color: var(--primary-variant-color);
}

.btn-danger {
    background-color: #f44336;
    color: white;
}

.btn-danger:hover {
    background-color: #d32f2f;
}

/* Goal Form Styles */
.goal-form-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.goal-form {
    background-color: var(--surface-color);
    border-radius: 12px;
    padding: 1.5rem;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Progress Bar Styles */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #2a2a2a;
    border-radius: 4px 4px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    min-height: 20px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.8rem;
    color: var(--nav-icon-color);
    font-weight: 600;
}

/* Goal Item Styles */
.goal-item {
    background-color: var(--surface-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #2a2a2a;
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.goal-title-section h4 {
    margin: 0 0 0.5rem 0;
    color: var(--on-surface-color);
    font-size: 1.1rem;
}

.goal-status-section {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-end;
}

.goal-category {
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.goal-category.career {
    background-color: #2196f3;
    color: white;
}

.goal-category.personal {
    background-color: #9c27b0;
    color: white;
}

.goal-category.financial {
    background-color: #4caf50;
    color: white;
}

.goal-category.health {
    background-color: #ff5722;
    color: white;
}

.goal-category.education {
    background-color: #ff9800;
    color: white;
}

.goal-category.business {
    background-color: #607d8b;
    color: white;
}

.goal-status {
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.goal-status.not-started {
    background-color: #757575;
    color: white;
}

.goal-status.in-progress {
    background-color: #2196f3;
    color: white;
}

.goal-status.completed {
    background-color: #4caf50;
    color: white;
}

.goal-status.paused {
    background-color: #ff9800;
    color: white;
}

.goal-priority {
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.goal-priority.low {
    background-color: #4caf50;
    color: white;
}

.goal-priority.medium {
    background-color: #ff9800;
    color: white;
}

.goal-priority.high {
    background-color: #f44336;
    color: white;
}

.goal-priority.critical {
    background-color: #9c27b0;
    color: white;
}

.goal-description {
    color: var(--on-background-color);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.goal-progress-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.goal-details {
    margin-bottom: 1rem;
}

.goal-details p {
    margin: 0.25rem 0;
    color: var(--on-background-color);
    font-size: 0.9rem;
}

.goal-details .overdue {
    color: #f44336;
    font-weight: 600;
}

.goal-details .urgent {
    color: #ff9800;
    font-weight: 600;
}

.goal-item-placeholder {
    background-color: var(--surface-color);
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    border: 2px dashed #2a2a2a;
    color: var(--nav-icon-color);
    margin-bottom: 1rem;
}

/* Range input styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #2a2a2a;
    border-radius: 3px;
    outline: none;
    flex: 1;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* AI Buddy Chat Styles */
.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
    max-height: 600px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background-color: var(--surface-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #2a2a2a;
}

.message {
    margin-bottom: 1rem;
    animation: fadeIn 0.3s ease-in;
}

.message:last-child {
    margin-bottom: 0;
}

.user-message {
    text-align: right;
}

.ai-message {
    text-align: left;
}

.message-content {
    display: inline-block;
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    line-height: 1.4;
    word-wrap: break-word;
}

.user-message .message-content {
    background-color: var(--primary-color);
    color: var(--surface-color);
    border-bottom-right-radius: 4px;
}

.ai-message .message-content {
    background-color: #2a2a2a;
    color: var(--on-surface-color);
    border-bottom-left-radius: 4px;
}

.message-content ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.message-content li {
    margin: 0.25rem 0;
}

.quick-prompts {
    margin-bottom: 1rem;
}

.quick-prompts h4 {
    margin-bottom: 0.75rem;
    color: var(--on-surface-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prompt-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.prompt-btn {
    background-color: #2a2a2a;
    color: var(--on-surface-color);
    border: 1px solid #3a3a3a;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    text-align: center;
    transition: all 0.2s;
}

.prompt-btn:hover {
    background-color: var(--primary-color);
    color: var(--surface-color);
    border-color: var(--primary-color);
}

.chat-input-container {
    background-color: var(--surface-color);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #2a2a2a;
}

.chat-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

#chat-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    background-color: var(--background-color);
    color: var(--on-surface-color);
    font-size: 1rem;
    transition: border-color 0.2s;
}

#chat-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.send-btn {
    background-color: var(--primary-color);
    color: var(--surface-color);
    border: none;
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
}

.send-btn:hover {
    background-color: var(--primary-variant-color);
}

.send-btn i {
    font-size: 0.9rem;
}

/* Animation for new messages */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments for chat */
@media (max-width: 768px) {
    .prompt-buttons {
        grid-template-columns: 1fr;
    }
    
    .message-content {
        max-width: 90%;
    }
    
    .chat-container {
        height: calc(100vh - 250px);
    }
}

/* Test Responses Page Styles */
.example-conversations {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem 0;
}

.conversation-example {
    background-color: var(--surface-color);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #2a2a2a;
}

.conversation-example h4 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
    font-size: 1.1rem;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 0.5rem;
}

.example-messages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.example-messages .message {
    margin-bottom: 0;
}

.example-messages .message-content {
    max-width: 100%;
}

/* Achievement Notifications */
.achievement-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(76, 175, 80, 0.3);
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 300px;
}

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

.achievement-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.achievement-icon {
    font-size: 2rem;
    animation: bounce 0.6s ease-in-out;
}

.achievement-text {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
}

/* Motivational Notifications */
.motivational-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #FF9800, #FFC107);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(255, 152, 0, 0.3);
    z-index: 10000;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 350px;
    text-align: center;
}

.motivational-notification.show {
    transform: translateX(-50%) translateY(0);
}

.motivational-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
}

.motivational-icon {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

.motivational-text {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Progress bars with personality */
.progress-bar {
    background-color: #2a2a2a;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    position: relative;
    margin: 0.5rem 0;
}

.progress-fill {
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Startup Sequence */
.startup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.startup-overlay.fade-out {
    opacity: 0;
}

.startup-content {
    text-align: center;
    color: white;
    max-width: 400px;
    padding: 2rem;
}

.startup-logo {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, #FF5722, #E91E63);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s infinite;
}

.startup-messages {
    margin-bottom: 2rem;
    min-height: 100px;
}

.startup-message {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.5s ease forwards;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.startup-progress .progress-bar {
    background-color: #333;
    height: 6px;
    border-radius: 3px;
}

.startup-progress .progress-fill {
    background: linear-gradient(90deg, #FF5722, #E91E63);
    border-radius: 3px;
}

/* Devi Welcome Notification */
.devi-welcome-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(135deg, #FF5722, #E91E63);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 16px 64px rgba(255, 87, 34, 0.4);
    z-index: 10001;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-align: center;
    max-width: 400px;
}

.devi-welcome-notification.show {
    transform: translate(-50%, -50%) scale(1);
}

.devi-welcome-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.devi-icon {
    font-size: 3rem;
    animation: fireTrail 1s infinite;
}

.devi-text {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
}

@keyframes fireTrail {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.1) rotate(-5deg);
    }
    75% {
        transform: scale(1.1) rotate(5deg);
    }
}

/* Devi Signature in Header */
.devi-signature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.1), rgba(233, 30, 99, 0.1));
    border-radius: 20px;
    border: 1px solid rgba(255, 87, 34, 0.3);
}

.devi-trail {
    font-size: 1.2rem;
    animation: fireTrail 2s infinite;
}

.devi-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #FF5722;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* DevMit FunkMix Styling */
.devmit-funkmix {
    --neon-glow: 0 0 20px rgba(255, 87, 34, 0.5);
    --fire-gradient: linear-gradient(45deg, #FF5722, #E91E63);
    --magenta-gradient: linear-gradient(45deg, #E91E63, #9C27B0);
    --teal-gradient: linear-gradient(45deg, #00BCD4, #009688);
}

.devmit-funkmix .header {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border-bottom: 2px solid #FF5722;
    box-shadow: var(--neon-glow);
}

.devmit-funkmix .nav-item.active {
    background: var(--fire-gradient);
    box-shadow: var(--neon-glow);
}

.devmit-funkmix .btn-primary {
    background: var(--fire-gradient);
    border: none;
    box-shadow: var(--neon-glow);
    transition: all 0.3s ease;
}

.devmit-funkmix .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 87, 34, 0.6);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    background-color: var(--surface-color);
    border-top: 1px solid #2a2a2a;
    padding: 0.5rem 0;
    z-index: 1000;
}

/* DevGent Module Styles */
.devgent-view {
    padding: 20px;
}

.devgent-view h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

/* Agent Grid */
.agent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.agent-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.agent-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.2);
}

.agent-card.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--surface-color), rgba(0, 255, 136, 0.1));
}

.agent-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--background-color);
}

.agent-info h4 {
    margin: 0 0 5px 0;
    color: var(--text-color);
    font-size: 1.1rem;
}

.agent-info p {
    margin: 0 0 10px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.agent-status {
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.agent-status.online {
    background: rgba(0, 255, 136, 0.2);
    color: var(--primary-color);
}

.agent-status.standby {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.agent-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Devi Status */
.devi-status {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.devi-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.devi-fire {
    font-size: 2.5rem;
    animation: flicker 2s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.devi-info h4 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.devi-info p {
    margin: 0 0 15px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.devi-metrics {
    display: flex;
    gap: 20px;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.metric-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.devi-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.devi-chat-preview {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 20px;
}

.devi-chat-preview h4 {
    margin: 0 0 15px 0;
    color: var(--text-color);
}

.chat-preview {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.chat-message .user {
    color: var(--primary-color);
    font-weight: 600;
}

.chat-message.devi {
    background: rgba(0, 255, 136, 0.1);
    border-left: 3px solid var(--primary-color);
}

.chat-message .devi {
    color: var(--primary-color);
    font-weight: 600;
}

/* Flow List */
.flow-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.flow-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.flow-item:hover {
    border-color: var(--primary-color);
}

.flow-item.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--surface-color), rgba(0, 255, 136, 0.1));
}

.flow-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--background-color);
}

.flow-info h4 {
    margin: 0 0 5px 0;
    color: var(--text-color);
}

.flow-info p {
    margin: 0 0 10px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.flow-status {
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.flow-status.running {
    background-color: rgba(0, 255, 136, 0.2);
    color: var(--primary-color);
}

.flow-status.standby {
    background-color: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.flow-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Analytics Grid */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.analytics-card {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.analytics-card h4 {
    margin: 0 0 15px 0;
    color: var(--text-color);
}

.health-indicator {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
}

.health-indicator.excellent {
    background: rgba(0, 255, 136, 0.2);
    color: var(--primary-color);
}

.health-metrics {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.health-metrics .metric {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid var(--border-color);
}

.health-metrics .metric:last-child {
    border-bottom: none;
}

.performance-chart {
    display: flex;
    align-items: end;
    gap: 15px;
    height: 120px;
    margin: 20px 0;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, var(--primary-color), var(--secondary-color));
    border-radius: 4px 4px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    min-height: 20px;
}

.activity-log {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item .time {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.activity-item .event {
    color: var(--text-color);
}

/* Settings Grid */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.settings-section {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.settings-section h4 {
    margin: 0 0 15px 0;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item label {
    color: var(--text-color);
    font-size: 0.9rem;
}

.setting-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
}

.setting-item select {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.settings-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .agent-grid {
        grid-template-columns: 1fr;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .devi-status {
        flex-direction: column;
        text-align: center;
    }
    
    .devi-metrics {
        justify-content: center;
    }
    
    .performance-chart {
        height: 100px;
    }
    
    .chart-bar {
        font-size: 0.7rem;
    }
}

/* LSH Module Styles */
.lsh-view {
    padding: 20px;
}

.lsh-view h3 {
    color: #ffc107; /* Warm yellow */
    margin-bottom: 20px;
    font-size: 1.5rem;
}

/* Business Grid */
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.business-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.business-card:hover {
    border-color: #ffc107;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
}

.business-card.active {
    border-color: #ffc107;
    background: linear-gradient(135deg, var(--surface-color), rgba(255, 193, 7, 0.1));
}

.business-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--background-color);
}

.business-info h4 {
    margin: 0 0 5px 0;
    color: var(--text-color);
    font-size: 1.1rem;
}

.business-info p {
    margin: 0 0 10px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.business-status {
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.business-status.open {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.business-status.closed {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.business-status.busy {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.business-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Business Form */
.business-form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.business-form-overlay.show {
    display: flex;
}

.business-form {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 25px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
}

/* Booking Stats */
.booking-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffc107;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Booking List */
.booking-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.booking-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.booking-time {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffc107;
    min-width: 80px;
}

.booking-details h4 {
    margin: 0 0 5px 0;
    color: var(--text-color);
}

.booking-details p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.booking-status {
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
    margin-left: auto;
}

.booking-status.confirmed {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.booking-status.pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.booking-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Discovery */
.discovery-search {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 1rem;
}

.search-btn {
    background: #ffc107;
    border: none;
    color: var(--background-color);
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
}

.discovery-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #ffc107;
    color: var(--background-color);
    border-color: #ffc107;
}

.discovery-results {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.discovery-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.discovery-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--background-color);
}

.discovery-info {
    flex: 1;
}

.discovery-info h4 {
    margin: 0 0 5px 0;
    color: var(--text-color);
}

.discovery-info p {
    margin: 0 0 10px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.discovery-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
}

.rating {
    color: #ffc107;
}

.price {
    color: var(--text-secondary);
}

.status {
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 500;
}

.status.open {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.status.closed {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.book-now-btn {
    background: #ffc107;
    border: none;
    color: var(--background-color);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Analytics Overview */
.analytics-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.revenue-chart {
    display: flex;
    align-items: end;
    gap: 8px;
    height: 120px;
    margin: 20px 0;
}

.revenue-chart .chart-bar {
    flex: 1;
    background: linear-gradient(to top, #ffc107, #ff9800);
    border-radius: 4px 4px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    min-height: 20px;
}

.service-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.service-item:last-child {
    border-bottom: none;
}

.service-name {
    color: var(--text-color);
}

.service-count {
    color: #ffc107;
    font-weight: 600;
}

.insight-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.insight-item:last-child {
    border-bottom: none;
}

.insight-label {
    color: var(--text-color);
}

.insight-value {
    color: #ffc107;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .business-grid {
        grid-template-columns: 1fr;
    }
    
    .booking-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .booking-item {
        flex-direction: column;
        text-align: center;
    }
    
    .booking-time {
        min-width: auto;
    }
    
    .booking-status {
        margin-left: 0;
    }
    
    .discovery-item {
        flex-direction: column;
        text-align: center;
    }
    
    .discovery-meta {
        justify-content: center;
    }
    
    .analytics-overview {
        grid-template-columns: 1fr;
    }
    
    .revenue-chart {
        height: 100px;
    }
    
    .revenue-chart .chart-bar {
        font-size: 0.7rem;
    }
}

/* Security & PWA Features */
.status-message {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--primary-color);
    color: var(--surface-color);
    text-align: center;
    padding: 0.5rem;
    font-weight: bold;
    z-index: 2000;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.status-message.show {
    transform: translateY(0);
}

.status-message.success {
    background: #4caf50;
}

.status-message.warning {
    background: #ff9800;
}

.status-message.error {
    background: #f44336;
}

.status-message.hidden {
    transform: translateY(-100%);
}

.install-prompt {
    position: fixed;
    bottom: 80px;
    right: 1rem;
    background: var(--primary-color);
    color: var(--surface-color);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.install-prompt:hover {
    background: var(--primary-variant-color);
}

.voice-control-btn {
    position: fixed;
    bottom: 80px;
    left: 1rem;
    background: var(--secondary-color);
    color: var(--surface-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.log-window,
.status-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--surface-color);
    border-radius: 12px;
    padding: 1rem;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1500;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.log-header,
.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #2a2a2a;
}

.log-header button,
.status-header button {
    background: none;
    border: none;
    color: var(--on-surface-color);
    font-size: 1.5rem;
    cursor: pointer;
}

.log-content,
.status-content {
    max-height: 60vh;
    overflow-y: auto;
}

.log-entry {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: #2a2a2a;
    border-radius: 6px;
}

.log-time {
    color: var(--nav-icon-color);
    font-size: 0.8rem;
    min-width: 120px;
}

.log-message {
    color: var(--on-surface-color);
}

/* Local Chat Assistant Panel */
.chat-assistant-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-color);
    border-top: 2px solid var(--primary-color);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 60vh;
    display: flex;
    flex-direction: column;
}

.chat-assistant-panel.show {
    transform: translateY(0);
}

.chat-assistant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    color: var(--surface-color);
}

.chat-assistant-header h3 {
    margin: 0;
    font-size: 1rem;
}

.chat-assistant-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.agent-selector {
    background: var(--surface-color);
    color: var(--on-surface-color);
    border: 1px solid #2a2a2a;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.tone-toggle {
    background: var(--secondary-color);
    color: var(--surface-color);
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
}

.chat-assistant-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    max-height: 40vh;
}

.chat-assistant-message {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    max-width: 85%;
}

.chat-assistant-message.user {
    background: var(--primary-color);
    color: var(--surface-color);
    margin-left: auto;
}

.chat-assistant-message.assistant {
    background: #2a2a2a;
    color: var(--on-surface-color);
    margin-right: auto;
}

.chat-assistant-input {
    display: flex;
    padding: 0.75rem;
    gap: 0.5rem;
    border-top: 1px solid #2a2a2a;
}

.chat-assistant-input input {
    flex: 1;
    background: #2a2a2a;
    border: 1px solid #444;
    color: var(--on-surface-color);
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.chat-assistant-input button {
    background: var(--primary-color);
    color: var(--surface-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    min-width: 60px;
}

.chat-toggle-btn {
    position: fixed;
    bottom: 80px;
    right: 1rem;
    background: var(--primary-color);
    color: var(--surface-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Mod Integration System */
.mod-tab-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--background-color);
    z-index: 2000;
    display: none;
    flex-direction: column;
}

.mod-tab-panel.show {
    display: flex;
}

.mod-tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--surface-color);
    border-bottom: 1px solid #2a2a2a;
}

.mod-tab-title {
    color: var(--on-surface-color);
    font-size: 1.2rem;
    font-weight: bold;
}

.mod-tab-close {
    background: none;
    border: none;
    color: var(--on-surface-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mod-tab-content {
    flex: 1;
    position: relative;
}

.mod-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: var(--background-color);
}

.mod-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--on-surface-color);
    text-align: center;
}

.mod-status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.mod-status-indicator.online {
    background: #4caf50;
}

.mod-status-indicator.offline {
    background: #f44336;
}

.mod-status-indicator.loading {
    background: #ff9800;
    animation: pulse 1s infinite;
}

/* Mobile-First Improvements */
@media (max-width: 768px) {
    .chat-assistant-panel {
        max-height: 70vh;
    }
    
    .chat-assistant-messages {
        max-height: 50vh;
    }
    
    .chat-assistant-header {
        padding: 0.5rem;
    }
    
    .chat-assistant-header h3 {
        font-size: 0.9rem;
    }
    
    .chat-assistant-controls {
        gap: 0.25rem;
    }
    
    .agent-selector,
    .tone-toggle {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    .chat-assistant-message {
        max-width: 90%;
        font-size: 0.9rem;
    }
    
    .chat-assistant-input {
        padding: 0.5rem;
    }
    
    .chat-assistant-input input {
        font-size: 0.8rem;
    }
    
    .chat-assistant-input button {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .log-window,
    .status-window {
        max-width: 95vw;
        max-height: 85vh;
        margin: 1rem;
    }
    
    .log-entry {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .log-time {
        min-width: auto;
        font-size: 0.7rem;
    }
}

/* Battery-friendly animations */
@media (prefers-reduced-motion: reduce) {
    .chat-assistant-panel,
    .status-message,
    .log-window,
    .status-window {
        transition: none;
    }
    
    .mod-status-indicator.loading {
        animation: none;
    }
}

/* Low-power mode toggle */
.low-power-mode .chat-assistant-panel {
    transform: translateY(100%);
}

.low-power-mode .chat-toggle-btn {
    display: none;
}

/* Touch-friendly improvements */
.chat-assistant-input input,
.chat-assistant-input button,
.agent-selector,
.tone-toggle {
    min-height: 44px; /* iOS minimum touch target */
}

.chat-toggle-btn,
.voice-control-btn {
    min-width: 44px;
    min-height: 44px;
}

/* Ensure no hover dependencies on mobile */
@media (hover: none) {
    .chat-assistant-input button:hover,
    .chat-toggle-btn:hover,
    .voice-control-btn:hover {
        background: var(--primary-color);
    }
}

/* PWA Install prompt positioning */
@media (display-mode: standalone) {
    .install-prompt {
        display: none;
    }
}

/* Founder-only warning */
.founder-only-warning {
    text-align: center;
    padding: 2rem;
    background: var(--surface-color);
    border-radius: 12px;
    margin: 1rem;
    border: 2px solid var(--primary-color);
}

.founder-only-warning h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.founder-access-btn {
    background: var(--primary-color);
    color: var(--surface-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 1rem;
}

.founder-access-btn:hover {
    background: var(--primary-variant-color);
}

/* Pulse animation for loading indicators */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Voice control button improvements */
.voice-control-btn.recording {
    background: #f44336;
    animation: pulse 1s infinite;
}

.voice-control-btn.recording::after {
    content: '🎤';
    position: absolute;
    top: -10px;
    right: -10px;
    background: #f44336;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Status bar improvements */
.status-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-color);
    border-top: 1px solid #2a2a2a;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    z-index: 100;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4caf50;
}

.status-dot.offline {
    background: #f44336;
}

.status-dot.warning {
    background: #ff9800;
}

/* Mobile-first improvements for status bar */
@media (max-width: 768px) {
    .status-bar {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .status-indicator {
        gap: 0.25rem;
    }
}

/* Chat assistant mobile improvements */
@media (max-width: 480px) {
    .chat-assistant-panel {
        max-height: 80vh;
    }
    
    .chat-assistant-messages {
        max-height: 60vh;
    }
    
    .chat-assistant-header {
        padding: 0.5rem;
    }
    
    .chat-assistant-header h3 {
        font-size: 0.8rem;
    }
    
    .chat-assistant-controls {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .agent-selector,
    .tone-toggle {
        font-size: 0.6rem;
        padding: 0.15rem 0.3rem;
    }
    
    .chat-assistant-message {
        max-width: 95%;
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    .chat-assistant-input {
        padding: 0.5rem;
        gap: 0.25rem;
    }
    
    .chat-assistant-input input {
        font-size: 0.7rem;
        padding: 0.4rem;
    }
    
    .chat-assistant-input button {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
        min-width: 50px;
    }
}

/* Mod tab panel mobile improvements */
@media (max-width: 768px) {
    .mod-tab-header {
        padding: 0.75rem;
    }
    
    .mod-tab-title {
        font-size: 1rem;
    }
    
    .mod-tab-close {
        font-size: 1.2rem;
        padding: 0.4rem;
    }
}

/* Ensure all interactive elements are touch-friendly */
button, 
input, 
select, 
.nav-item,
.chat-toggle-btn,
.voice-control-btn,
.install-prompt {
    min-height: 44px;
    min-width: 44px;
}

/* Improve focus states for accessibility */
button:focus,
input:focus,
select:focus,
.nav-item:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Dark mode optimizations */
@media (prefers-color-scheme: dark) {
    .chat-assistant-panel {
        background: #1a1a1a;
        border-top-color: var(--primary-color);
    }
    
    .chat-assistant-message.assistant {
        background: #2a2a2a;
    }
    
    .chat-assistant-input input {
        background: #2a2a2a;
        border-color: #444;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .chat-assistant-panel {
        border-top-width: 3px;
    }
    
    .chat-assistant-message {
        border: 1px solid #666;
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

:root {
    --background-color: #121212;
    --surface-color: #1e1e1e;
    --primary-color: #bb86fc;
    --primary-variant-color: #3700b3;
    --secondary-color: #03dac6;
    --on-background-color: #e0e0e0;
    --on-surface-color: #ffffff;
    --nav-icon-color: #8a8a8a;
    --nav-icon-active-color: var(--secondary-color);
    --text-size: medium;
    --hover-color: #e9ecef;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --success-color: #4caf50;
    --success-hover: #45a049;
    --info-color: #2196f3;
    --info-hover: #1976d2;
    --danger-color: #f44336;
    --danger-hover: #e53935;
    --border-color: #dee2e6;
}

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

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(to bottom, #1f1f1f, #000);
    color: #fff;
    user-select: none;
    height: 100vh;
    overflow: hidden;
}

#appTitle {
    text-align: center;
    margin-top: 30px;
    font-size: 2rem;
}

.button-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
}

button {
    width: 70%;
    margin: 10px 0;
    padding: 15px;
    font-size: 1.2rem;
    border: none;
    border-radius: 8px;
    background: #ff6600;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    transition: background 0.2s ease;
}

button:hover {
    background: #ff3300;
}

#statusLog {
    margin-top: 30px;
    padding: 15px;
    background: #111;
    font-size: 0.9rem;
    max-height: 200px;
    overflow-y: auto;
}

#statusLog div {
    margin-bottom: 8px;
    padding: 5px;
    border-radius: 4px;
    color: #00ff88;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    #app { padding: 15px; }
    .button-group { flex-direction: column; }
    button { width: 100%; min-width: auto; }
}

/* Hide scrollbars */
::-webkit-scrollbar {
    display: none;
}

/* Prevent text selection */
* {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.app-header {
    background-color: var(--surface-color);
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #2a2a2a;
    z-index: 10;
}

#header-title {
    font-size: 1.5rem;
    color: var(--on-surface-color);
}

.content-area {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
    padding-bottom: 70px; /* Space for bottom nav */
}

.module-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    color: #444;
}

.module-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.module-placeholder h2 {
    font-size: 2rem;
    color: #555;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    background-color: var(--surface-color);
    border-top: 1px solid #2a2a2a;
    padding: 0.5rem 0;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--nav-icon-color);
    flex-grow: 1;
    padding: 0.25rem 0;
    font-size: 0.75rem;
    transition: color 0.2s ease-in-out;
}

.nav-item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.nav-item.active,
.nav-item:hover {
    color: var(--nav-icon-active-color);
}

.nav-item.active span,
.nav-item:hover span {
    font-weight: bold;
}

/* Sub-navigation for modules */
.sub-nav-bar {
    display: flex;
    justify-content: space-around;
    background-color: var(--surface-color);
    border-radius: 8px;
    padding: 0.5rem;
    margin-bottom: 1rem;
}

.sub-nav-item {
    background: none;
    border: none;
    color: var(--nav-icon-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: background-color 0.2s, color 0.2s;
}

.sub-nav-item:hover {
    background-color: #2a2a2a;
}

.sub-nav-item.active {
    background-color: var(--primary-color);
    color: var(--surface-color);
}

/* SCB specific styles */
.scb-view h3 {
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.cert-item-placeholder {
    background-color: var(--surface-color);
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    border: 2px dashed #2a2a2a;
    color: var(--nav-icon-color);
    margin-bottom: 1rem;
}

.btn-primary {
    display: block;
    width: 100%;
    background-color: var(--primary-color);
    color: var(--surface-color);
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-variant-color);
}

/* Certification Form Styles */
.cert-form-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.cert-form {
    background-color: var(--surface-color);
    border-radius: 12px;
    padding: 1.5rem;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

.form-header h4 {
    margin: 0;
    color: var(--on-surface-color);
}

.close-btn {
    background: none;
    border: none;
    color: var(--nav-icon-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--on-surface-color);
}

.form-group {
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--on-surface-color);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    background-color: var(--background-color);
    color: var(--on-surface-color);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #2a2a2a;
}

.btn-secondary {
    background-color: #2a2a2a;
    color: var(--on-surface-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s;
    flex: 1;
}

.btn-secondary:hover {
    background-color: #3a3a3a;
}

/* Certification Item Styles */
.cert-item {
    background-color: var(--surface-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #2a2a2a;
}

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

.cert-header h4 {
    margin: 0;
    color: var(--on-surface-color);
    font-size: 1.1rem;
}

.cert-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.cert-status.active {
    background-color: #4caf50;
    color: white;
}

.cert-status.expired {
    background-color: #f44336;
    color: white;
}

.cert-status.pending {
    background-color: #ff9800;
    color: white;
}

.cert-status.in-progress {
    background-color: #2196f3;
    color: white;
}

.cert-details {
    margin-bottom: 1rem;
}

.cert-details p {
    margin: 0.25rem 0;
    color: var(--on-background-color);
    font-size: 0.9rem;
}

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

.btn-small {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-small:not(.btn-danger) {
    background-color: var(--primary-color);
    color: var(--surface-color);
}

.btn-small:not(.btn-danger):hover {
    background-color: var(--primary-variant-color);
}

.btn-danger {
    background-color: #f44336;
    color: white;
}

.btn-danger:hover {
    background-color: #d32f2f;
}

/* Goal Form Styles */
.goal-form-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.goal-form {
    background-color: var(--surface-color);
    border-radius: 12px;
    padding: 1.5rem;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Progress Bar Styles */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #2a2a2a;
    border-radius: 4px 4px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    min-height: 20px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.8rem;
    color: var(--nav-icon-color);
    font-weight: 600;
}

/* Goal Item Styles */
.goal-item {
    background-color: var(--surface-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #2a2a2a;
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.goal-title-section h4 {
    margin: 0 0 0.5rem 0;
    color: var(--on-surface-color);
    font-size: 1.1rem;
}

.goal-status-section {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-end;
}

.goal-category {
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.goal-category.career {
    background-color: #2196f3;
    color: white;
}

.goal-category.personal {
    background-color: #9c27b0;
    color: white;
}

.goal-category.financial {
    background-color: #4caf50;
    color: white;
}

.goal-category.health {
    background-color: #ff5722;
    color: white;
}

.goal-category.education {
    background-color: #ff9800;
    color: white;
}

.goal-category.business {
    background-color: #607d8b;
    color: white;
}

.goal-status {
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.goal-status.not-started {
    background-color: #757575;
    color: white;
}

.goal-status.in-progress {
    background-color: #2196f3;
    color: white;
}

.goal-status.completed {
    background-color: #4caf50;
    color: white;
}

.goal-status.paused {
    background-color: #ff9800;
    color: white;
}

.goal-priority {
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.goal-priority.low {
    background-color: #4caf50;
    color: white;
}

.goal-priority.medium {
    background-color: #ff9800;
    color: white;
}

.goal-priority.high {
    background-color: #f44336;
    color: white;
}

.goal-priority.critical {
    background-color: #9c27b0;
    color: white;
}

.goal-description {
    color: var(--on-background-color);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.goal-progress-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.goal-details {
    margin-bottom: 1rem;
}

.goal-details p {
    margin: 0.25rem 0;
    color: var(--on-background-color);
    font-size: 0.9rem;
}

.goal-details .overdue {
    color: #f44336;
    font-weight: 600;
}

.goal-details .urgent {
    color: #ff9800;
    font-weight: 600;
}

.goal-item-placeholder {
    background-color: var(--surface-color);
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    border: 2px dashed #2a2a2a;
    color: var(--nav-icon-color);
    margin-bottom: 1rem;
}

/* Range input styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #2a2a2a;
    border-radius: 3px;
    outline: none;
    flex: 1;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* AI Buddy Chat Styles */
.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
    max-height: 600px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background-color: var(--surface-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #2a2a2a;
}

.message {
    margin-bottom: 1rem;
    animation: fadeIn 0.3s ease-in;
}

.message:last-child {
    margin-bottom: 0;
}

.user-message {
    text-align: right;
}

.ai-message {
    text-align: left;
}

.message-content {
    display: inline-block;
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    line-height: 1.4;
    word-wrap: break-word;
}

.user-message .message-content {
    background-color: var(--primary-color);
    color: var(--surface-color);
    border-bottom-right-radius: 4px;
}

.ai-message .message-content {
    background-color: #2a2a2a;
    color: var(--on-surface-color);
    border-bottom-left-radius: 4px;
}

.message-content ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.message-content li {
    margin: 0.25rem 0;
}

.quick-prompts {
    margin-bottom: 1rem;
}

.quick-prompts h4 {
    margin-bottom: 0.75rem;
    color: var(--on-surface-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prompt-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.prompt-btn {
    background-color: #2a2a2a;
    color: var(--on-surface-color);
    border: 1px solid #3a3a3a;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    text-align: center;
    transition: all 0.2s;
}

.prompt-btn:hover {
    background-color: var(--primary-color);
    color: var(--surface-color);
    border-color: var(--primary-color);
}

.chat-input-container {
    background-color: var(--surface-color);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #2a2a2a;
}

.chat-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

#chat-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    background-color: var(--background-color);
    color: var(--on-surface-color);
    font-size: 1rem;
    transition: border-color 0.2s;
}

#chat-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.send-btn {
    background-color: var(--primary-color);
    color: var(--surface-color);
    border: none;
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
}

.send-btn:hover {
    background-color: var(--primary-variant-color);
}

.send-btn i {
    font-size: 0.9rem;
}

/* Animation for new messages */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments for chat */
@media (max-width: 768px) {
    .prompt-buttons {
        grid-template-columns: 1fr;
    }
    
    .message-content {
        max-width: 90%;
    }
    
    .chat-container {
        height: calc(100vh - 250px);
    }
}

/* Test Responses Page Styles */
.example-conversations {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem 0;
}

.conversation-example {
    background-color: var(--surface-color);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #2a2a2a;
}

.conversation-example h4 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
    font-size: 1.1rem;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 0.5rem;
}

.example-messages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.example-messages .message {
    margin-bottom: 0;
}

.example-messages .message-content {
    max-width: 100%;
}

/* Achievement Notifications */
.achievement-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(76, 175, 80, 0.3);
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 300px;
}

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

.achievement-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.achievement-icon {
    font-size: 2rem;
    animation: bounce 0.6s ease-in-out;
}

.achievement-text {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
}

/* Motivational Notifications */
.motivational-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #FF9800, #FFC107);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(255, 152, 0, 0.3);
    z-index: 10000;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 350px;
    text-align: center;
}

.motivational-notification.show {
    transform: translateX(-50%) translateY(0);
}

.motivational-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
}

.motivational-icon {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

.motivational-text {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Progress bars with personality */
.progress-bar {
    background-color: #2a2a2a;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    position: relative;
    margin: 0.5rem 0;
}

.progress-fill {
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Startup Sequence */
.startup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.startup-overlay.fade-out {
    opacity: 0;
}

.startup-content {
    text-align: center;
    color: white;
    max-width: 400px;
    padding: 2rem;
}

.startup-logo {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, #FF5722, #E91E63);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s infinite;
}

.startup-messages {
    margin-bottom: 2rem;
    min-height: 100px;
}

.startup-message {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.5s ease forwards;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.startup-progress .progress-bar {
    background-color: #333;
    height: 6px;
    border-radius: 3px;
}

.startup-progress .progress-fill {
    background: linear-gradient(90deg, #FF5722, #E91E63);
    border-radius: 3px;
}

/* Devi Welcome Notification */
.devi-welcome-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(135deg, #FF5722, #E91E63);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 16px 64px rgba(255, 87, 34, 0.4);
    z-index: 10001;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-align: center;
    max-width: 400px;
}

.devi-welcome-notification.show {
    transform: translate(-50%, -50%) scale(1);
}

.devi-welcome-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.devi-icon {
    font-size: 3rem;
    animation: fireTrail 1s infinite;
}

.devi-text {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
}

@keyframes fireTrail {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.1) rotate(-5deg);
    }
    75% {
        transform: scale(1.1) rotate(5deg);
    }
}

/* Devi Signature in Header */
.devi-signature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.1), rgba(233, 30, 99, 0.1));
    border-radius: 20px;
    border: 1px solid rgba(255, 87, 34, 0.3);
}

.devi-trail {
    font-size: 1.2rem;
    animation: fireTrail 2s infinite;
}

.devi-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #FF5722;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* DevMit FunkMix Styling */
.devmit-funkmix {
    --neon-glow: 0 0 20px rgba(255, 87, 34, 0.5);
    --fire-gradient: linear-gradient(45deg, #FF5722, #E91E63);
    --magenta-gradient: linear-gradient(45deg, #E91E63, #9C27B0);
    --teal-gradient: linear-gradient(45deg, #00BCD4, #009688);
}

.devmit-funkmix .header {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border-bottom: 2px solid #FF5722;
    box-shadow: var(--neon-glow);
}

.devmit-funkmix .nav-item.active {
    background: var(--fire-gradient);
    box-shadow: var(--neon-glow);
}

.devmit-funkmix .btn-primary {
    background: var(--fire-gradient);
    border: none;
    box-shadow: var(--neon-glow);
    transition: all 0.3s ease;
}

.devmit-funkmix .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 87, 34, 0.6);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    background-color: var(--surface-color);
    border-top: 1px solid #2a2a2a;
    padding: 0.5rem 0;
    z-index: 1000;
}

/* DevGent Module Styles */
.devgent-view {
    padding: 20px;
}

.devgent-view h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

/* Agent Grid */
.agent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.agent-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.agent-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.2);
}

.agent-card.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--surface-color), rgba(0, 255, 136, 0.1));
}

.agent-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--background-color);
}

.agent-info h4 {
    margin: 0 0 5px 0;
    color: var(--text-color);
    font-size: 1.1rem;
}

.agent-info p {
    margin: 0 0 10px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.agent-status {
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.agent-status.online {
    background: rgba(0, 255, 136, 0.2);
    color: var(--primary-color);
}

.agent-status.standby {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.agent-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Devi Status */
.devi-status {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.devi-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.devi-fire {
    font-size: 2.5rem;
    animation: flicker 2s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.devi-info h4 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.devi-info p {
    margin: 0 0 15px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.devi-metrics {
    display: flex;
    gap: 20px;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.metric-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.devi-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.devi-chat-preview {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 20px;
}

.devi-chat-preview h4 {
    margin: 0 0 15px 0;
    color: var(--text-color);
}

.chat-preview {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.chat-message .user {
    color: var(--primary-color);
    font-weight: 600;
}

.chat-message.devi {
    background: rgba(0, 255, 136, 0.1);
    border-left: 3px solid var(--primary-color);
}

.chat-message .devi {
    color: var(--primary-color);
    font-weight: 600;
}

/* Flow List */
.flow-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.flow-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.flow-item:hover {
    border-color: var(--primary-color);
}

.flow-item.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--surface-color), rgba(0, 255, 136, 0.1));
}

.flow-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--background-color);
}

.flow-info h4 {
    margin: 0 0 5px 0;
    color: var(--text-color);
}

.flow-info p {
    margin: 0 0 10px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.flow-status {
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.flow-status.running {
    background-color: rgba(0, 255, 136, 0.2);
    color: var(--primary-color);
}

.flow-status.standby {
    background-color: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.flow-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Analytics Grid */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.analytics-card {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.analytics-card h4 {
    margin: 0 0 15px 0;
    color: var(--text-color);
}

.health-indicator {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
}

.health-indicator.excellent {
    background: rgba(0, 255, 136, 0.2);
    color: var(--primary-color);
}

.health-metrics {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.health-metrics .metric {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid var(--border-color);
}

.health-metrics .metric:last-child {
    border-bottom: none;
}

.performance-chart {
    display: flex;
    align-items: end;
    gap: 15px;
    height: 120px;
    margin: 20px 0;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, var(--primary-color), var(--secondary-color));
    border-radius: 4px 4px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    min-height: 20px;
}

.activity-log {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item .time {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.activity-item .event {
    color: var(--text-color);
}

/* Settings Grid */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.settings-section {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.settings-section h4 {
    margin: 0 0 15px 0;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item label {
    color: var(--text-color);
    font-size: 0.9rem;
}

.setting-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
}

.setting-item select {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.settings-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .agent-grid {
        grid-template-columns: 1fr;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .devi-status {
        flex-direction: column;
        text-align: center;
    }
    
    .devi-metrics {
        justify-content: center;
    }
    
    .performance-chart {
        height: 100px;
    }
    
    .chart-bar {
        font-size: 0.7rem;
    }
}

/* LSH Module Styles */
.lsh-view {
    padding: 20px;
}

.lsh-view h3 {
    color: #ffc107; /* Warm yellow */
    margin-bottom: 20px;
    font-size: 1.5rem;
}

/* Business Grid */
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.business-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.business-card:hover {
    border-color: #ffc107;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
}

.business-card.active {
    border-color: #ffc107;
    background: linear-gradient(135deg, var(--surface-color), rgba(255, 193, 7, 0.1));
}

.business-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--background-color);
}

.business-info h4 {
    margin: 0 0 5px 0;
    color: var(--text-color);
    font-size: 1.1rem;
}

.business-info p {
    margin: 0 0 10px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.business-status {
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.business-status.open {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.business-status.closed {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.business-status.busy {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.business-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Business Form */
.business-form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.business-form-overlay.show {
    display: flex;
}

.business-form {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 25px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
}

/* Booking Stats */
.booking-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffc107;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Booking List */
.booking-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.booking-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.booking-time {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffc107;
    min-width: 80px;
}

.booking-details h4 {
    margin: 0 0 5px 0;
    color: var(--text-color);
}

.booking-details p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.booking-status {
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
    margin-left: auto;
}

.booking-status.confirmed {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.booking-status.pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.booking-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Discovery */
.discovery-search {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 1rem;
}

.search-btn {
    background: #ffc107;
    border: none;
    color: var(--background-color);
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
}

.discovery-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #ffc107;
    color: var(--background-color);
    border-color: #ffc107;
}

.discovery-results {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.discovery-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.discovery-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--background-color);
}

.discovery-info {
    flex: 1;
}

.discovery-info h4 {
    margin: 0 0 5px 0;
    color: var(--text-color);
}

.discovery-info p {
    margin: 0 0 10px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.discovery-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
}

.rating {
    color: #ffc107;
}

.price {
    color: var(--text-secondary);
}

.status {
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 500;
}

.status.open {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.status.closed {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.book-now-btn {
    background: #ffc107;
    border: none;
    color: var(--background-color);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Analytics Overview */
.analytics-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.revenue-chart {
    display: flex;
    align-items: end;
    gap: 8px;
    height: 120px;
    margin: 20px 0;
}

.revenue-chart .chart-bar {
    flex: 1;
    background: linear-gradient(to top, #ffc107, #ff9800);
    border-radius: 4px 4px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    min-height: 20px;
}

.service-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.service-item:last-child {
    border-bottom: none;
}

.service-name {
    color: var(--text-color);
}

.service-count {
    color: #ffc107;
    font-weight: 600;
}

.insight-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.insight-item:last-child {
    border-bottom: none;
}

.insight-label {
    color: var(--text-color);
}

.insight-value {
    color: #ffc107;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .business-grid {
        grid-template-columns: 1fr;
    }
    
    .booking-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .booking-item {
        flex-direction: column;
        text-align: center;
    }
    
    .booking-time {
        min-width: auto;
    }
    
    .booking-status {
        margin-left: 0;
    }
    
    .discovery-item {
        flex-direction: column;
        text-align: center;
    }
    
    .discovery-meta {
        justify-content: center;
    }
    
    .analytics-overview {
        grid-template-columns: 1fr;
    }
    
    .revenue-chart {
        height: 100px;
    }
    
    .revenue-chart .chart-bar {
        font-size: 0.7rem;
    }
}

/* Security & PWA Features */
.status-message {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--primary-color);
    color: var(--surface-color);
    text-align: center;
    padding: 0.5rem;
    font-weight: bold;
    z-index: 2000;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.status-message.show {
    transform: translateY(0);
}

.status-message.success {
    background: #4caf50;
}

.status-message.warning {
    background: #ff9800;
}

.status-message.error {
    background: #f44336;
}

.status-message.hidden {
    transform: translateY(-100%);
}

.install-prompt {
    position: fixed;
    bottom: 80px;
    right: 1rem;
    background: var(--primary-color);
    color: var(--surface-color);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.install-prompt:hover {
    background: var(--primary-variant-color);
}

.voice-control-btn {
    position: fixed;
    bottom: 80px;
    left: 1rem;
    background: var(--secondary-color);
    color: var(--surface-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.log-window,
.status-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--surface-color);
    border-radius: 12px;
    padding: 1rem;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1500;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.log-header,
.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #2a2a2a;
}

.log-header button,
.status-header button {
    background: none;
    border: none;
    color: var(--on-surface-color);
    font-size: 1.5rem;
    cursor: pointer;
}

.log-content,
.status-content {
    max-height: 60vh;
    overflow-y: auto;
}

.log-entry {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: #2a2a2a;
    border-radius: 6px;
}

.log-time {
    color: var(--nav-icon-color);
    font-size: 0.8rem;
    min-width: 120px;
}

.log-message {
    color: var(--on-surface-color);
}

/* Local Chat Assistant Panel */
.chat-assistant-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-color);
    border-top: 2px solid var(--primary-color);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 60vh;
    display: flex;
    flex-direction: column;
}

.chat-assistant-panel.show {
    transform: translateY(0);
}

.chat-assistant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    color: var(--surface-color);
}

.chat-assistant-header h3 {
    margin: 0;
    font-size: 1rem;
}

.chat-assistant-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.agent-selector {
    background: var(--surface-color);
    color: var(--on-surface-color);
    border: 1px solid #2a2a2a;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.tone-toggle {
    background: var(--secondary-color);
    color: var(--surface-color);
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
}

.chat-assistant-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    max-height: 40vh;
}

.chat-assistant-message {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    max-width: 85%;
}

.chat-assistant-message.user {
    background: var(--primary-color);
    color: var(--surface-color);
    margin-left: auto;
}

.chat-assistant-message.assistant {
    background: #2a2a2a;
    color: var(--on-surface-color);
    margin-right: auto;
}

.chat-assistant-input {
    display: flex;
    padding: 0.75rem;
    gap: 0.5rem;
    border-top: 1px solid #2a2a2a;
}

.chat-assistant-input input {
    flex: 1;
    background: #2a2a2a;
    border: 1px solid #444;
    color: var(--on-surface-color);
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.chat-assistant-input button {
    background: var(--primary-color);
    color: var(--surface-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    min-width: 60px;
}

.chat-toggle-btn {
    position: fixed;
    bottom: 80px;
    right: 1rem;
    background: var(--primary-color);
    color: var(--surface-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Mod Integration System */
.mod-tab-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--background-color);
    z-index: 2000;
    display: none;
    flex-direction: column;
}

.mod-tab-panel.show {
    display: flex;
}

.mod-tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--surface-color);
    border-bottom: 1px solid #2a2a2a;
}

.mod-tab-title {
    color: var(--on-surface-color);
    font-size: 1.2rem;
    font-weight: bold;
}

.mod-tab-close {
    background: none;
    border: none;
    color: var(--on-surface-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mod-tab-content {
    flex: 1;
    position: relative;
}

.mod-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: var(--background-color);
}

.mod-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--on-surface-color);
    text-align: center;
}

.mod-status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.mod-status-indicator.online {
    background: #4caf50;
}

.mod-status-indicator.offline {
    background: #f44336;
}

.mod-status-indicator.loading {
    background: #ff9800;
    animation: pulse 1s infinite;
}

/* Mobile-First Improvements */
@media (max-width: 768px) {
    .chat-assistant-panel {
        max-height: 70vh;
    }
    
    .chat-assistant-messages {
        max-height: 50vh;
    }
    
    .chat-assistant-header {
        padding: 0.5rem;
    }
    
    .chat-assistant-header h3 {
        font-size: 0.9rem;
    }
    
    .chat-assistant-controls {
        gap: 0.25rem;
    }
    
    .agent-selector,
    .tone-toggle {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    .chat-assistant-message {
        max-width: 90%;
        font-size: 0.9rem;
    }
    
    .chat-assistant-input {
        padding: 0.5rem;
    }
    
    .chat-assistant-input input {
        font-size: 0.8rem;
    }
    
    .chat-assistant-input button {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .log-window,
    .status-window {
        max-width: 95vw;
        max-height: 85vh;
        margin: 1rem;
    }
    
    .log-entry {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .log-time {
        min-width: auto;
        font-size: 0.7rem;
    }
}

/* Battery-friendly animations */
@media (prefers-reduced-motion: reduce) {
    .chat-assistant-panel,
    .status-message,
    .log-window,
    .status-window {
        transition: none;
    }
    
    .mod-status-indicator.loading {
        animation: none;
    }
}

/* Low-power mode toggle */
.low-power-mode .chat-assistant-panel {
    transform: translateY(100%);
}

.low-power-mode .chat-toggle-btn {
    display: none;
}

/* Touch-friendly improvements */
.chat-assistant-input input,
.chat-assistant-input button,
.agent-selector,
.tone-toggle {
    min-height: 44px; /* iOS minimum touch target */
}

.chat-toggle-btn,
.voice-control-btn {
    min-width: 44px;
    min-height: 44px;
}

/* Ensure no hover dependencies on mobile */
@media (hover: none) {
    .chat-assistant-input button:hover,
    .chat-toggle-btn:hover,
    .voice-control-btn:hover {
        background: var(--primary-color);
    }
}

/* PWA Install prompt positioning */
@media (display-mode: standalone) {
    .install-prompt {
        display: none;
    }
}

/* Founder-only warning */
.founder-only-warning {
    text-align: center;
    padding: 2rem;
    background: var(--surface-color);
    border-radius: 12px;
    margin: 1rem;
    border: 2px solid var(--primary-color);
}

.founder-only-warning h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.founder-access-btn {
    background: var(--primary-color);
    color: var(--surface-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 1rem;
}

.founder-access-btn:hover {
    background: var(--primary-variant-color);
}

/* Pulse animation for loading indicators */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Voice control button improvements */
.voice-control-btn.recording {
    background: #f44336;
    animation: pulse 1s infinite;
}

.voice-control-btn.recording::after {
    content: '🎤';
    position: absolute;
    top: -10px;
    right: -10px;
    background: #f44336;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Status bar improvements */
.status-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-color);
    border-top: 1px solid #2a2a2a;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    z-index: 100;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4caf50;
}

.status-dot.offline {
    background: #f44336;
}

.status-dot.warning {
    background: #ff9800;
}

/* Mobile-first improvements for status bar */
@media (max-width: 768px) {
    .status-bar {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .status-indicator {
        gap: 0.25rem;
    }
}

/* Chat assistant mobile improvements */
@media (max-width: 480px) {
    .chat-assistant-panel {
        max-height: 80vh;
    }
    
    .chat-assistant-messages {
        max-height: 60vh;
    }
    
    .chat-assistant-header {
        padding: 0.5rem;
    }
    
    .chat-assistant-header h3 {
        font-size: 0.8rem;
    }
    
    .chat-assistant-controls {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .agent-selector,
    .tone-toggle {
        font-size: 0.6rem;
        padding: 0.15rem 0.3rem;
    }
    
    .chat-assistant-message {
        max-width: 95%;
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    .chat-assistant-input {
        padding: 0.5rem;
        gap: 0.25rem;
    }
    
    .chat-assistant-input input {
        font-size: 0.7rem;
        padding: 0.4rem;
    }
    
    .chat-assistant-input button {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
        min-width: 50px;
    }
}

/* Mod tab panel mobile improvements */
@media (max-width: 768px) {
    .mod-tab-header {
        padding: 0.75rem;
    }
    
    .mod-tab-title {
        font-size: 1rem;
    }
    
    .mod-tab-close {
        font-size: 1.2rem;
        padding: 0.4rem;
    }
}

/* Ensure all interactive elements are touch-friendly */
button, 
input, 
select, 
.nav-item,
.chat-toggle-btn,
.voice-control-btn,
.install-prompt {
    min-height: 44px;
    min-width: 44px;
}

/* Improve focus states for accessibility */
button:focus,
input:focus,
select:focus,
.nav-item:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Dark mode optimizations */
@media (prefers-color-scheme: dark) {
    .chat-assistant-panel {
        background: #1a1a1a;
        border-top-color: var(--primary-color);
    }
    
    .chat-assistant-message.assistant {
        background: #2a2a2a;
    }
    
    .chat-assistant-input input {
        background: #2a2a2a;
        border-color: #444;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .chat-assistant-panel {
        border-top-width: 3px;
    }
    
    .chat-assistant-message {
        border: 1px solid #666;
    }
    
    .status-message {
        border-bottom: 2px solid #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .chat-assistant-panel,
    .status-message,
    .log-window,
    .status-window,
    .mod-tab-panel {
        transition: none;
    }
    
    .mod-status-indicator.loading,
    .voice-control-btn.recording {
        animation: none;
    }
}

/* Routing System UI Elements */
.error-route {
    text-align: center;
    padding: 2rem;
    background: var(--surface-color);
    border-radius: 12px;
    margin: 1rem;
    border: 2px solid #f44336;
}

.error-route h2 {
    color: #f44336;
    margin-bottom: 1rem;
}

.retry-btn,
.support-btn {
    background: var(--primary-color);
    color: var(--surface-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    margin: 0.5rem;
}

.retry-btn:hover,
.support-btn:hover {
    background: var(--primary-variant-color);
}

.auth-required {
    text-align: center;
    padding: 2rem;
    background: var(--surface-color);
    border-radius: 12px;
    margin: 1rem;
    border: 2px solid var(--primary-color);
}

.auth-required h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.auth-btn {
    background: var(--primary-color);
    color: var(--surface-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 1rem;
}

.auth-btn:hover {
    background: var(--primary-variant-color);
}

/* Context Menu */
.context-menu {
    position: fixed;
    background: var(--surface-color);
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 0.5rem;
    z-index: 3000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    min-width: 150px;
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    border-radius: 4px;
    color: var(--on-surface-color);
    font-size: 0.9rem;
}

.context-menu-item:hover {
    background: var(--primary-color);
    color: var(--surface-color);
}

.context-menu-item i {
    width: 16px;
    text-align: center;
}

/* Route History Display */
.route-history {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--surface-color);
    border-radius: 12px;
    padding: 1rem;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1500;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.route-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #2a2a2a;
}

.route-history-header h3 {
    margin: 0;
    color: var(--on-surface-color);
}

.route-history-header button {
    background: none;
    border: none;
    color: var(--on-surface-color);
    font-size: 1.5rem;
    cursor: pointer;
}

.route-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    margin-bottom: 0.25rem;
    background: #2a2a2a;
    border-radius: 4px;
    font-size: 0.8rem;
}

.route-history-label {
    color: var(--on-surface-color);
    font-weight: bold;
}

.route-history-time {
    color: var(--nav-icon-color);
    font-size: 0.7rem;
}

/* Voice Command Feedback */
.voice-command-feedback {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--surface-color);
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: bold;
    z-index: 2000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.voice-command-feedback.show {
    opacity: 1;
}

/* Route Status Indicators */
.route-status {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.route-status.success {
    background: #4caf50;
}

.route-status.error {
    background: #f44336;
}

.route-status.pending {
    background: #ff9800;
    animation: pulse 1s infinite;
}

/* Mobile optimizations for routing */
@media (max-width: 768px) {
    .context-menu {
        min-width: 120px;
        font-size: 0.8rem;
    }
    
    .context-menu-item {
        padding: 0.4rem 0.6rem;
    }
    
    .error-route,
    .auth-required {
        margin: 0.5rem;
        padding: 1.5rem;
    }
    
    .retry-btn,
    .support-btn,
    .auth-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .voice-command-feedback {
        top: 15%;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .route-history {
        max-width: 95vw;
        max-height: 85vh;
        margin: 1rem;
    }
    
    .route-history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* Accessibility improvements for routing */
.context-menu-item:focus,
.retry-btn:focus,
.support-btn:focus,
.auth-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast support for routing */
@media (prefers-contrast: high) {
    .context-menu {
        border-width: 2px;
    }
    
    .context-menu-item {
        border: 1px solid transparent;
    }
    
    .context-menu-item:hover {
        border-color: #fff;
    }
    
    .error-route,
    .auth-required {
        border-width: 3px;
    }
}

/* PERSONALIZATION & ACCESSIBILITY STYLES */

/* Personalization Panel */
.personalization-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.personalization-panel.show {
    opacity: 1;
    visibility: visible;
}

.personalization-panel .personalization-content {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.personalization-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.personalization-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.close-btn:hover {
    background: var(--hover-color);
}

.personalization-section {
    margin-bottom: 2rem;
}

.personalization-section h4 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.setting-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.setting-group label {
    font-weight: 500;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.setting-group select,
.setting-group input[type="checkbox"] {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--surface-color);
    color: var(--text-color);
    font-size: 0.9rem;
}

.setting-group select:focus,
.setting-group input[type="checkbox"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.setting-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

/* Usage Stats */
.usage-stats {
    background: var(--background-color);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.usage-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.usage-stat-item:last-child {
    border-bottom: none;
}

.mod-name {
    font-weight: 500;
    color: var(--text-color);
}

.usage-count {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Data Management */
.data-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.export-btn,
.import-btn,
.clear-btn {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.export-btn {
    background: var(--success-color);
    color: white;
}

.export-btn:hover {
    background: var(--success-hover);
}

.import-btn {
    background: var(--info-color);
    color: white;
}

.import-btn:hover {
    background: var(--info-hover);
}

.clear-btn {
    background: var(--danger-color);
    color: white;
}

.clear-btn:hover {
    background: var(--danger-hover);
}

/* Personalization Button */
.personalization-btn {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: var(--surface-color);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.personalization-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* ACCESSIBILITY FEATURES */

/* Text Size Variables */
:root {
    --text-size: medium;
}

/* Text Size Classes */
.text-small {
    font-size: 0.875rem;
}

.text-medium {
    font-size: 1rem;
}

.text-large {
    font-size: 1.125rem;
}

/* Apply text size based on preference */
body[data-text-size="small"] {
    font-size: 0.875rem;
}

body[data-text-size="large"] {
    font-size: 1.125rem;
}

/* Light Mode */
.light-mode {
    --background-color: #ffffff;
    --surface-color: #f8f9fa;
    --text-color: #212529;
    --border-color: #dee2e6;
    --hover-color: #e9ecef;
    --shadow-color: rgba(0, 0, 0, 0.1);
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

:root {
    --background-color: #121212;
    --surface-color: #1e1e1e;
    --primary-color: #bb86fc;
    --primary-variant-color: #3700b3;
    --secondary-color: #03dac6;
    --on-background-color: #e0e0e0;
    --on-surface-color: #ffffff;
    --nav-icon-color: #8a8a8a;
    --nav-icon-active-color: var(--secondary-color);
    --text-size: medium;
    --hover-color: #e9ecef;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --success-color: #4caf50;
    --success-hover: #45a049;
    --info-color: #2196f3;
    --info-hover: #1976d2;
    --danger-color: #f44336;
    --danger-hover: #e53935;
    --border-color: #dee2e6;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #00ff88;
    overflow-x: hidden;
    transition: all 0.3s ease;
    /* App-like appearance */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-appearance: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Mobile Mode */
body.mobile-mode {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

/* Command Mode */
body.command-mode {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

#app {
    max-width: 100%;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

button {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2) 0%, rgba(0, 255, 136, 0.3) 100%);
    color: #00ff88;
    border: 2px solid rgba(0, 255, 136, 0.5);
}

button:active {
    transform: scale(0.95);
}

button:hover, button:focus {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.3) 0%, rgba(0, 255, 136, 0.4) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.4);
}

#statusLog {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 15px;
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

#statusLog div {
    margin-bottom: 8px;
    padding: 5px;
    border-radius: 4px;
    color: #00ff88;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    #app { padding: 15px; }
    .button-group { flex-direction: column; }
    button { width: 100%; min-width: auto; }
}

/* Hide scrollbars */
::-webkit-scrollbar {
    display: none;
}

/* Prevent text selection */
* {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.app-header {
    background-color: var(--surface-color);
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #2a2a2a;
    z-index: 10;
}

#header-title {
    font-size: 1.5rem;
    color: var(--on-surface-color);
}

.content-area {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
    padding-bottom: 70px; /* Space for bottom nav */
}

.module-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    color: #444;
}

.module-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.module-placeholder h2 {
    font-size: 2rem;
    color: #555;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    background-color: var(--surface-color);
    border-top: 1px solid #2a2a2a;
    padding: 0.5rem 0;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--nav-icon-color);
    flex-grow: 1;
    padding: 0.25rem 0;
    font-size: 0.75rem;
    transition: color 0.2s ease-in-out;
}

.nav-item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.nav-item.active,
.nav-item:hover {
    color: var(--nav-icon-active-color);
}

.nav-item.active span,
.nav-item:hover span {
    font-weight: bold;
}

/* Sub-navigation for modules */
.sub-nav-bar {
    display: flex;
    justify-content: space-around;
    background-color: var(--surface-color);
    border-radius: 8px;
    padding: 0.5rem;
    margin-bottom: 1rem;
}

.sub-nav-item {
    background: none;
    border: none;
    color: var(--nav-icon-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: background-color 0.2s, color 0.2s;
}

.sub-nav-item:hover {
    background-color: #2a2a2a;
}

.sub-nav-item.active {
    background-color: var(--primary-color);
    color: var(--surface-color);
}

/* SCB specific styles */
.scb-view h3 {
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.cert-item-placeholder {
    background-color: var(--surface-color);
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    border: 2px dashed #2a2a2a;
    color: var(--nav-icon-color);
    margin-bottom: 1rem;
}

.btn-primary {
    display: block;
    width: 100%;
    background-color: var(--primary-color);
    color: var(--surface-color);
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-variant-color);
}

/* Certification Form Styles */
.cert-form-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.cert-form {
    background-color: var(--surface-color);
    border-radius: 12px;
    padding: 1.5rem;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

.form-header h4 {
    margin: 0;
    color: var(--on-surface-color);
}

.close-btn {
    background: none;
    border: none;
    color: var(--nav-icon-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--on-surface-color);
}

.form-group {
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--on-surface-color);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    background-color: var(--background-color);
    color: var(--on-surface-color);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #2a2a2a;
}

.btn-secondary {
    background-color: #2a2a2a;
    color: var(--on-surface-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s;
    flex: 1;
}

.btn-secondary:hover {
    background-color: #3a3a3a;
}

/* Certification Item Styles */
.cert-item {
    background-color: var(--surface-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #2a2a2a;
}

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

.cert-header h4 {
    margin: 0;
    color: var(--on-surface-color);
    font-size: 1.1rem;
}

.cert-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.cert-status.active {
    background-color: #4caf50;
    color: white;
}

.cert-status.expired {
    background-color: #f44336;
    color: white;
}

.cert-status.pending {
    background-color: #ff9800;
    color: white;
}

.cert-status.in-progress {
    background-color: #2196f3;
    color: white;
}

.cert-details {
    margin-bottom: 1rem;
}

.cert-details p {
    margin: 0.25rem 0;
    color: var(--on-background-color);
    font-size: 0.9rem;
}

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

.btn-small {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-small:not(.btn-danger) {
    background-color: var(--primary-color);
    color: var(--surface-color);
}

.btn-small:not(.btn-danger):hover {
    background-color: var(--primary-variant-color);
}

.btn-danger {
    background-color: #f44336;
    color: white;
}

.btn-danger:hover {
    background-color: #d32f2f;
}

/* Goal Form Styles */
.goal-form-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.goal-form {
    background-color: var(--surface-color);
    border-radius: 12px;
    padding: 1.5rem;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Progress Bar Styles */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #2a2a2a;
    border-radius: 4px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.8rem;
    color: var(--nav-icon-color);
    font-weight: 600;
}

/* Goal Item Styles */
.goal-item {
    background-color: var(--surface-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #2a2a2a;
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.goal-title-section h4 {
    margin: 0 0 0.5rem 0;
    color: var(--on-surface-color);
    font-size: 1.1rem;
}

.goal-status-section {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-end;
}

.goal-category {
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.goal-category.career {
    background-color: #2196f3;
    color: white;
}

.goal-category.personal {
    background-color: #9c27b0;
    color: white;
}

.goal-category.financial {
    background-color: #4caf50;
    color: white;
}

.goal-category.health {
    background-color: #ff5722;
    color: white;
}

.goal-category.education {
    background-color: #ff9800;
    color: white;
}

.goal-category.business {
    background-color: #607d8b;
    color: white;
}

.goal-status {
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.goal-status.not-started {
    background-color: #757575;
    color: white;
}

.goal-status.in-progress {
    background-color: #2196f3;
    color: white;
}

.goal-status.completed {
    background-color: #4caf50;
    color: white;
}

.goal-status.paused {
    background-color: #ff9800;
    color: white;
}

.goal-priority {
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.goal-priority.low {
    background-color: #4caf50;
    color: white;
}

.goal-priority.medium {
    background-color: #ff9800;
    color: white;
}

.goal-priority.high {
    background-color: #f44336;
    color: white;
}

.goal-priority.critical {
    background-color: #9c27b0;
    color: white;
}

.goal-description {
    color: var(--on-background-color);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.goal-progress-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.goal-details {
    margin-bottom: 1rem;
}

.goal-details p {
    margin: 0.25rem 0;
    color: var(--on-background-color);
    font-size: 0.9rem;
}

.goal-details .overdue {
    color: #f44336;
    font-weight: 600;
}

.goal-details .urgent {
    color: #ff9800;
    font-weight: 600;
}

.goal-item-placeholder {
    background-color: var(--surface-color);
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    border: 2px dashed #2a2a2a;
    color: var(--nav-icon-color);
    margin-bottom: 1rem;
}

/* Range input styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #2a2a2a;
    border-radius: 3px;
    outline: none;
    flex: 1;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* AI Buddy Chat Styles */
.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
    max-height: 600px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background-color: var(--surface-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #2a2a2a;
}

.message {
    margin-bottom: 1rem;
    animation: fadeIn 0.3s ease-in;
}

.message:last-child {
    margin-bottom: 0;
}

.user-message {
    text-align: right;
}

.ai-message {
    text-align: left;
}

.message-content {
    display: inline-block;
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    line-height: 1.4;
    word-wrap: break-word;
}

.user-message .message-content {
    background-color: var(--primary-color);
    color: var(--surface-color);
    border-bottom-right-radius: 4px;
}

.ai-message .message-content {
    background-color: #2a2a2a;
    color: var(--on-surface-color);
    border-bottom-left-radius: 4px;
}

.message-content ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.message-content li {
    margin: 0.25rem 0;
}

.quick-prompts {
    margin-bottom: 1rem;
}

.quick-prompts h4 {
    margin-bottom: 0.75rem;
    color: var(--on-surface-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prompt-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.prompt-btn {
    background-color: #2a2a2a;
    color: var(--on-surface-color);
    border: 1px solid #3a3a3a;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    text-align: center;
    transition: all 0.2s;
}

.prompt-btn:hover {
    background-color: var(--primary-color);
    color: var(--surface-color);
    border-color: var(--primary-color);
}

.chat-input-container {
    background-color: var(--surface-color);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #2a2a2a;
}

.chat-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

#chat-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    background-color: var(--background-color);
    color: var(--on-surface-color);
    font-size: 1rem;
    transition: border-color 0.2s;
}

#chat-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.send-btn {
    background-color: var(--primary-color);
    color: var(--surface-color);
    border: none;
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
}

.send-btn:hover {
    background-color: var(--primary-variant-color);
}

.send-btn i {
    font-size: 0.9rem;
}

/* Animation for new messages */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments for chat */
@media (max-width: 768px) {
    .prompt-buttons {
        grid-template-columns: 1fr;
    }
    
    .message-content {
        max-width: 90%;
    }
    
    .chat-container {
        height: calc(100vh - 250px);
    }
}

/* Test Responses Page Styles */
.example-conversations {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem 0;
}

.conversation-example {
    background-color: var(--surface-color);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #2a2a2a;
}

.conversation-example h4 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
    font-size: 1.1rem;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 0.5rem;
}

.example-messages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.example-messages .message {
    margin-bottom: 0;
}

.example-messages .message-content {
    max-width: 100%;
}

/* Achievement Notifications */
.achievement-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(76, 175, 80, 0.3);
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 300px;
}

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

.achievement-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.achievement-icon {
    font-size: 2rem;
    animation: bounce 0.6s ease-in-out;
}

.achievement-text {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
}

/* Motivational Notifications */
.motivational-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #FF9800, #FFC107);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(255, 152, 0, 0.3);
    z-index: 10000;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 350px;
    text-align: center;
}

.motivational-notification.show {
    transform: translateX(-50%) translateY(0);
}

.motivational-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
}

.motivational-icon {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

.motivational-text {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Progress bars with personality */
.progress-bar {
    background-color: #2a2a2a;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    position: relative;
    margin: 0.5rem 0;
}

.progress-fill {
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Startup Sequence */
.startup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.startup-overlay.fade-out {
    opacity: 0;
}

.startup-content {
    text-align: center;
    color: white;
    max-width: 400px;
    padding: 2rem;
}

.startup-logo {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, #FF5722, #E91E63);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s infinite;
}

.startup-messages {
    margin-bottom: 2rem;
    min-height: 100px;
}

.startup-message {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.5s ease forwards;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.startup-progress .progress-bar {
    background-color: #333;
    height: 6px;
    border-radius: 3px;
}

.startup-progress .progress-fill {
    background: linear-gradient(90deg, #FF5722, #E91E63);
    border-radius: 3px;
}

/* Devi Welcome Notification */
.devi-welcome-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(135deg, #FF5722, #E91E63);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 16px 64px rgba(255, 87, 34, 0.4);
    z-index: 10001;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-align: center;
    max-width: 400px;
}

.devi-welcome-notification.show {
    transform: translate(-50%, -50%) scale(1);
}

.devi-welcome-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.devi-icon {
    font-size: 3rem;
    animation: fireTrail 1s infinite;
}

.devi-text {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
}

@keyframes fireTrail {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.1) rotate(-5deg);
    }
    75% {
        transform: scale(1.1) rotate(5deg);
    }
}

/* Devi Signature in Header */
.devi-signature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.1), rgba(233, 30, 99, 0.1));
    border-radius: 20px;
    border: 1px solid rgba(255, 87, 34, 0.3);
}

.devi-trail {
    font-size: 1.2rem;
    animation: fireTrail 2s infinite;
}

.devi-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #FF5722;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* DevMit FunkMix Styling */
.devmit-funkmix {
    --neon-glow: 0 0 20px rgba(255, 87, 34, 0.5);
    --fire-gradient: linear-gradient(45deg, #FF5722, #E91E63);
    --magenta-gradient: linear-gradient(45deg, #E91E63, #9C27B0);
    --teal-gradient: linear-gradient(45deg, #00BCD4, #009688);
}

.devmit-funkmix .header {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border-bottom: 2px solid #FF5722;
    box-shadow: var(--neon-glow);
}

.devmit-funkmix .nav-item.active {
    background: var(--fire-gradient);
    box-shadow: var(--neon-glow);
}

.devmit-funkmix .btn-primary {
    background: var(--fire-gradient);
    border: none;
    box-shadow: var(--neon-glow);
    transition: all 0.3s ease;
}

.devmit-funkmix .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 87, 34, 0.6);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    background-color: var(--surface-color);
    border-top: 1px solid #2a2a2a;
    padding: 0.5rem 0;
    z-index: 1000;
}

/* DevGent Module Styles */
.devgent-view {
    padding: 20px;
}

.devgent-view h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

/* Agent Grid */
.agent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.agent-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.agent-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.2);
}

.agent-card.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--surface-color), rgba(0, 255, 136, 0.1));
}

.agent-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--background-color);
}

.agent-info h4 {
    margin: 0 0 5px 0;
    color: var(--text-color);
    font-size: 1.1rem;
}

.agent-info p {
    margin: 0 0 10px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.agent-status {
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.agent-status.online {
    background: rgba(0, 255, 136, 0.2);
    color: var(--primary-color);
}

.agent-status.standby {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.agent-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Devi Status */
.devi-status {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.devi-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.devi-fire {
    font-size: 2.5rem;
    animation: flicker 2s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.devi-info h4 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.devi-info p {
    margin: 0 0 15px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.devi-metrics {
    display: flex;
    gap: 20px;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.metric-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.devi-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.devi-chat-preview {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 20px;
}

.devi-chat-preview h4 {
    margin: 0 0 15px 0;
    color: var(--text-color);
}

.chat-preview {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.chat-message .user {
    color: var(--primary-color);
    font-weight: 600;
}

.chat-message.devi {
    background: rgba(0, 255, 136, 0.1);
    border-left: 3px solid var(--primary-color);
}

.chat-message .devi {
    color: var(--primary-color);
    font-weight: 600;
}

/* Flow List */
.flow-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.flow-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.flow-item:hover {
    border-color: var(--primary-color);
}

.flow-item.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--surface-color), rgba(0, 255, 136, 0.1));
}

.flow-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--background-color);
}

.flow-info h4 {
    margin: 0 0 5px 0;
    color: var(--text-color);
}

.flow-info p {
    margin: 0 0 10px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.flow-status {
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.flow-status.running {
    background-color: rgba(0, 255, 136, 0.2);
    color: var(--primary-color);
}

.flow-status.standby {
    background-color: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.flow-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Analytics Grid */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.analytics-card {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.analytics-card h4 {
    margin: 0 0 15px 0;
    color: var(--text-color);
}

.health-indicator {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
}

.health-indicator.excellent {
    background: rgba(0, 255, 136, 0.2);
    color: var(--primary-color);
}

.health-metrics {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.health-metrics .metric {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid var(--border-color);
}

.health-metrics .metric:last-child {
    border-bottom: none;
}

.performance-chart {
    display: flex;
    align-items: end;
    gap: 15px;
    height: 120px;
    margin: 20px 0;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, var(--primary-color), var(--secondary-color));
    border-radius: 4px 4px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    min-height: 20px;
}

.activity-log {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item .time {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.activity-item .event {
    color: var(--text-color);
}

/* Settings Grid */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.settings-section {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.settings-section h4 {
    margin: 0 0 15px 0;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item label {
    color: var(--text-color);
    font-size: 0.9rem;
}

.setting-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
}

.setting-item select {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.settings-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .agent-grid {
        grid-template-columns: 1fr;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .devi-status {
        flex-direction: column;
        text-align: center;
    }
    
    .devi-metrics {
        justify-content: center;
    }
    
    .performance-chart {
        height: 100px;
    }
    
    .chart-bar {
        font-size: 0.7rem;
    }
}

/* LSH Module Styles */
.lsh-view {
    padding: 20px;
}

.lsh-view h3 {
    color: #ffc107; /* Warm yellow */
    margin-bottom: 20px;
    font-size: 1.5rem;
}

/* Business Grid */
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.business-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.business-card:hover {
    border-color: #ffc107;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
}

.business-card.active {
    border-color: #ffc107;
    background: linear-gradient(135deg, var(--surface-color), rgba(255, 193, 7, 0.1));
}

.business-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--background-color);
}

.business-info h4 {
    margin: 0 0 5px 0;
    color: var(--text-color);
    font-size: 1.1rem;
}

.business-info p {
    margin: 0 0 10px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.business-status {
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.business-status.open {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.business-status.closed {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.business-status.busy {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.business-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Business Form */
.business-form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.business-form-overlay.show {
    display: flex;
}

.business-form {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 25px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
}

/* Booking Stats */
.booking-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffc107;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Booking List */
.booking-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.booking-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.booking-time {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffc107;
    min-width: 80px;
}

.booking-details h4 {
    margin: 0 0 5px 0;
    color: var(--text-color);
}

.booking-details p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.booking-status {
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
    margin-left: auto;
}

.booking-status.confirmed {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.booking-status.pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.booking-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Discovery */
.discovery-search {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 1rem;
}

.search-btn {
    background: #ffc107;
    border: none;
    color: var(--background-color);
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
}

.discovery-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #ffc107;
    color: var(--background-color);
    border-color: #ffc107;
}

.discovery-results {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.discovery-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.discovery-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--background-color);
}

.discovery-info {
    flex: 1;
}

.discovery-info h4 {
    margin: 0 0 5px 0;
    color: var(--text-color);
}

.discovery-info p {
    margin: 0 0 10px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.discovery-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
}

.rating {
    color: #ffc107;
}

.price {
    color: var(--text-secondary);
}

.status {
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 500;
}

.status.open {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.status.closed {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.book-now-btn {
    background: #ffc107;
    border: none;
    color: var(--background-color);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Analytics Overview */
.analytics-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.revenue-chart {
    display: flex;
    align-items: end;
    gap: 8px;
    height: 120px;
    margin: 20px 0;
}

.revenue-chart .chart-bar {
    flex: 1;
    background: linear-gradient(to top, #ffc107, #ff9800);
    border-radius: 4px 4px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    min-height: 20px;
}

.service-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.service-item:last-child {
    border-bottom: none;
}

.service-name {
    color: var(--text-color);
}

.service-count {
    color: #ffc107;
    font-weight: 600;
}

.insight-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.insight-item:last-child {
    border-bottom: none;
}

.insight-label {
    color: var(--text-color);
}

.insight-value {
    color: #ffc107;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .business-grid {
        grid-template-columns: 1fr;
    }
    
    .booking-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .booking-item {
        flex-direction: column;
        text-align: center;
    }
    
    .booking-time {
        min-width: auto;
    }
    
    .booking-status {
        margin-left: 0;
    }
    
    .discovery-item {
        flex-direction: column;
        text-align: center;
    }
    
    .discovery-meta {
        justify-content: center;
    }
    
    .analytics-overview {
        grid-template-columns: 1fr;
    }
    
    .revenue-chart {
        height: 100px;
    }
    
    .revenue-chart .chart-bar {
        font-size: 0.7rem;
    }
}

/* Security & PWA Features */
.status-message {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--primary-color);
    color: var(--surface-color);
    text-align: center;
    padding: 0.5rem;
    font-weight: bold;
    z-index: 2000;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.status-message.show {
    transform: translateY(0);
}

.status-message.success {
    background: #4caf50;
}

.status-message.warning {
    background: #ff9800;
}

.status-message.error {
    background: #f44336;
}

.status-message.hidden {
    transform: translateY(-100%);
}

.install-prompt {
    position: fixed;
    bottom: 80px;
    right: 1rem;
    background: var(--primary-color);
    color: var(--surface-color);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.install-prompt:hover {
    background: var(--primary-variant-color);
}

.voice-control-btn {
    position: fixed;
    bottom: 80px;
    left: 1rem;
    background: var(--secondary-color);
    color: var(--surface-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.log-window,
.status-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--surface-color);
    border-radius: 12px;
    padding: 1rem;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1500;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.log-header,
.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #2a2a2a;
}

.log-header button,
.status-header button {
    background: none;
    border: none;
    color: var(--on-surface-color);
    font-size: 1.5rem;
    cursor: pointer;
}

.log-content,
.status-content {
    max-height: 60vh;
    overflow-y: auto;
}

.log-entry {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: #2a2a2a;
    border-radius: 6px;
}

.log-time {
    color: var(--nav-icon-color);
    font-size: 0.8rem;
    min-width: 120px;
}

.log-message {
    color: var(--on-surface-color);
}

/* Local Chat Assistant Panel */
.chat-assistant-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-color);
    border-top: 2px solid var(--primary-color);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 60vh;
    display: flex;
    flex-direction: column;
}

.chat-assistant-panel.show {
    transform: translateY(0);
}

.chat-assistant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    color: var(--surface-color);
}

.chat-assistant-header h3 {
    margin: 0;
    font-size: 1rem;
}

.chat-assistant-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.agent-selector {
    background: var(--surface-color);
    color: var(--on-surface-color);
    border: 1px solid #2a2a2a;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.tone-toggle {
    background: var(--secondary-color);
    color: var(--surface-color);
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
}

.chat-assistant-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    max-height: 40vh;
}

.chat-assistant-message {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    max-width: 85%;
}

.chat-assistant-message.user {
    background: var(--primary-color);
    color: var(--surface-color);
    margin-left: auto;
}

.chat-assistant-message.assistant {
    background: #2a2a2a;
    color: var(--on-surface-color);
    margin-right: auto;
}

.chat-assistant-input {
    display: flex;
    padding: 0.75rem;
    gap: 0.5rem;
    border-top: 1px solid #2a2a2a;
}

.chat-assistant-input input {
    flex: 1;
    background: #2a2a2a;
    border: 1px solid #444;
    color: var(--on-surface-color);
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.chat-assistant-input button {
    background: var(--primary-color);
    color: var(--surface-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    min-width: 60px;
}

.chat-toggle-btn {
    position: fixed;
    bottom: 80px;
    right: 1rem;
    background: var(--primary-color);
    color: var(--surface-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Mod Integration System */
.mod-tab-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--background-color);
    z-index: 2000;
    display: none;
    flex-direction: column;
}

.mod-tab-panel.show {
    display: flex;
}

.mod-tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--surface-color);
    border-bottom: 1px solid #2a2a2a;
}

.mod-tab-title {
    color: var(--on-surface-color);
    font-size: 1.2rem;
    font-weight: bold;
}

.mod-tab-close {
    background: none;
    border: none;
    color: var(--on-surface-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mod-tab-content {
    flex: 1;
    position: relative;
}

.mod-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: var(--background-color);
}

.mod-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--on-surface-color);
    text-align: center;
}

.mod-status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.mod-status-indicator.online {
    background: #4caf50;
}

.mod-status-indicator.offline {
    background: #f44336;
}

.mod-status-indicator.loading {
    background: #ff9800;
    animation: pulse 1s infinite;
}

/* Mobile-First Improvements */
@media (max-width: 768px) {
    .chat-assistant-panel {
        max-height: 70vh;
    }
    
    .chat-assistant-messages {
        max-height: 50vh;
    }
    
    .chat-assistant-header {
        padding: 0.5rem;
    }
    
    .chat-assistant-header h3 {
        font-size: 0.9rem;
    }
    
    .chat-assistant-controls {
        gap: 0.25rem;
    }
    
    .agent-selector,
    .tone-toggle {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    .chat-assistant-message {
        max-width: 90%;
        font-size: 0.9rem;
    }
    
    .chat-assistant-input {
        padding: 0.5rem;
    }
    
    .chat-assistant-input input {
        font-size: 0.8rem;
    }
    
    .chat-assistant-input button {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .log-window,
    .status-window {
        max-width: 95vw;
        max-height: 85vh;
        margin: 1rem;
    }
    
    .log-entry {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .log-time {
        min-width: auto;
        font-size: 0.7rem;
    }
}

/* Battery-friendly animations */
@media (prefers-reduced-motion: reduce) {
    .chat-assistant-panel,
    .status-message,
    .log-window,
    .status-window {
        transition: none;
    }
    
    .mod-status-indicator.loading {
        animation: none;
    }
}

/* Low-power mode toggle */
.low-power-mode .chat-assistant-panel {
    transform: translateY(100%);
}

.low-power-mode .chat-toggle-btn {
    display: none;
}

/* Touch-friendly improvements */
.chat-assistant-input input,
.chat-assistant-input button,
.agent-selector,
.tone-toggle {
    min-height: 44px; /* iOS minimum touch target */
}

.chat-toggle-btn,
.voice-control-btn {
    min-width: 44px;
    min-height: 44px;
}

/* Ensure no hover dependencies on mobile */
@media (hover: none) {
    .chat-assistant-input button:hover,
    .chat-toggle-btn:hover,
    .voice-control-btn:hover {
        background: var(--primary-color);
    }
}

/* PWA Install prompt positioning */
@media (display-mode: standalone) {
    .install-prompt {
        display: none;
    }
}

/* Founder-only warning */
.founder-only-warning {
    text-align: center;
    padding: 2rem;
    background: var(--surface-color);
    border-radius: 12px;
    margin: 1rem;
    border: 2px solid var(--primary-color);
}

.founder-only-warning h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.founder-access-btn {
    background: var(--primary-color);
    color: var(--surface-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 1rem;
}

.founder-access-btn:hover {
    background: var(--primary-variant-color);
}

/* Pulse animation for loading indicators */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Voice control button improvements */
.voice-control-btn.recording {
    background: #f44336;
    animation: pulse 1s infinite;
}

.voice-control-btn.recording::after {
    content: '🎤';
    position: absolute;
    top: -10px;
    right: -10px;
    background: #f44336;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Status bar improvements */
.status-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-color);
    border-top: 1px solid #2a2a2a;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    z-index: 100;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4caf50;
}

.status-dot.offline {
    background: #f44336;
}

.status-dot.warning {
    background: #ff9800;
}

/* Mobile-first improvements for status bar */
@media (max-width: 768px) {
    .status-bar {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .status-indicator {
        gap: 0.25rem;
    }
}

/* Chat assistant mobile improvements */
@media (max-width: 480px) {
    .chat-assistant-panel {
        max-height: 80vh;
    }
    
    .chat-assistant-messages {
        max-height: 60vh;
    }
    
    .chat-assistant-header {
        padding: 0.5rem;
    }
    
    .chat-assistant-header h3 {
        font-size: 0.8rem;
    }
    
    .chat-assistant-controls {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .agent-selector,
    .tone-toggle {
        font-size: 0.6rem;
        padding: 0.15rem 0.3rem;
    }
    
    .chat-assistant-message {
        max-width: 95%;
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    .chat-assistant-input {
        padding: 0.5rem;
        gap: 0.25rem;
    }
    
    .chat-assistant-input input {
        font-size: 0.7rem;
        padding: 0.4rem;
    }
    
    .chat-assistant-input button {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
        min-width: 50px;
    }
}

/* Mod tab panel mobile improvements */
@media (max-width: 768px) {
    .mod-tab-header {
        padding: 0.75rem;
    }
    
    .mod-tab-title {
        font-size: 1rem;
    }
    
    .mod-tab-close {
        font-size: 1.2rem;
        padding: 0.4rem;
    }
}

/* Ensure all interactive elements are touch-friendly */
button, 
input, 
select, 
.nav-item,
.chat-toggle-btn,
.voice-control-btn,
.install-prompt {
    min-height: 44px;
    min-width: 44px;
}

/* Improve focus states for accessibility */
button:focus,
input:focus,
select:focus,
.nav-item:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Dark mode optimizations */
@media (prefers-color-scheme: dark) {
    .chat-assistant-panel {
        background: #1a1a1a;
        border-top-color: var(--primary-color);
    }
    
    .chat-assistant-message.assistant {
        background: #2a2a2a;
    }
    
    .chat-assistant-input input {
        background: #2a2a2a;
        border-color: #444;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .chat-assistant-panel {
        border-top-width: 3px;
    }
    
    .chat-assistant-message {
        border: 1px solid #666;
    }
    
    .status-message {
        border-bottom: 2px solid #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .chat-assistant-panel,
    .status-message,
    .log-window,
    .status-window,
    .mod-tab-panel {
        transition: none;
    }
    
    .mod-status-indicator.loading,
    .voice-control-btn.recording {
        animation: none;
    }
}

/* Routing System UI Elements */
.error-route {
    text-align: center;
    padding: 2rem;
    background: var(--surface-color);
    border-radius: 12px;
    margin: 1rem;
    border: 2px solid #f44336;
}

.error-route h2 {
    color: #f44336;
    margin-bottom: 1rem;
}

.retry-btn,
.support-btn {
    background: var(--primary-color);
    color: var(--surface-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    margin: 0.5rem;
}

.retry-btn:hover,
.support-btn:hover {
    background: var(--primary-variant-color);
}

.auth-required {
    text-align: center;
    padding: 2rem;
    background: var(--surface-color);
    border-radius: 12px;
    margin: 1rem;
    border: 2px solid var(--primary-color);
}

.auth-required h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.auth-btn {
    background: var(--primary-color);
    color: var(--surface-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 1rem;
}

.auth-btn:hover {
    background: var(--primary-variant-color);
}

/* Context Menu */
.context-menu {
    position: fixed;
    background: var(--surface-color);
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 0.5rem;
    z-index: 3000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    min-width: 150px;
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    border-radius: 4px;
    color: var(--on-surface-color);
    font-size: 0.9rem;
}

.context-menu-item:hover {
    background: var(--primary-color);
    color: var(--surface-color);
}

.context-menu-item i {
    width: 16px;
    text-align: center;
}

/* Route History Display */
.route-history {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--surface-color);
    border-radius: 12px;
    padding: 1rem;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1500;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.route-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #2a2a2a;
}

.route-history-header h3 {
    margin: 0;
    color: var(--on-surface-color);
}

.route-history-header button {
    background: none;
    border: none;
    color: var(--on-surface-color);
    font-size: 1.5rem;
    cursor: pointer;
}

.route-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    margin-bottom: 0.25rem;
    background: #2a2a2a;
    border-radius: 4px;
    font-size: 0.8rem;
}

.route-history-label {
    color: var(--on-surface-color);
    font-weight: bold;
}

.route-history-time {
    color: var(--nav-icon-color);
    font-size: 0.7rem;
}

/* Voice Command Feedback */
.voice-command-feedback {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--surface-color);
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: bold;
    z-index: 2000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.voice-command-feedback.show {
    opacity: 1;
}

/* Route Status Indicators */
.route-status {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.route-status.success {
    background: #4caf50;
}

.route-status.error {
    background: #f44336;
}

.route-status.pending {
    background: #ff9800;
    animation: pulse 1s infinite;
}

/* Mobile optimizations for routing */
@media (max-width: 768px) {
    .context-menu {
        min-width: 120px;
        font-size: 0.8rem;
    }
    
    .context-menu-item {
        padding: 0.4rem 0.6rem;
    }
    
    .error-route,
    .auth-required {
        margin: 0.5rem;
        padding: 1.5rem;
    }
    
    .retry-btn,
    .support-btn,
    .auth-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .voice-command-feedback {
        top: 15%;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .route-history {
        max-width: 95vw;
        max-height: 85vh;
        margin: 1rem;
    }
    
    .route-history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* Accessibility improvements for routing */
.context-menu-item:focus,
.retry-btn:focus,
.support-btn:focus,
.auth-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast support for routing */
@media (prefers-contrast: high) {
    .context-menu {
        border-width: 2px;
    }
    
    .context-menu-item {
        border: 1px solid transparent;
    }
    
    .context-menu-item:hover {
        border-color: #fff;
    }
    
    .error-route,
    .auth-required {
        border-width: 3px;
    }
}

/* PERSONALIZATION & ACCESSIBILITY STYLES */

/* Personalization Panel */
.personalization-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.personalization-panel.show {
    opacity: 1;
    visibility: visible;
}

.personalization-panel .personalization-content {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.personalization-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.personalization-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.close-btn:hover {
    background: var(--hover-color);
}

.personalization-section {
    margin-bottom: 2rem;
}

.personalization-section h4 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.setting-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.setting-group label {
    font-weight: 500;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.setting-group select,
.setting-group input[type="checkbox"] {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--surface-color);
    color: var(--text-color);
    font-size: 0.9rem;
}

.setting-group select:focus,
.setting-group input[type="checkbox"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.setting-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

/* Usage Stats */
.usage-stats {
    background: var(--background-color);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.usage-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.usage-stat-item:last-child {
    border-bottom: none;
}

.mod-name {
    font-weight: 500;
    color: var(--text-color);
}

.usage-count {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Data Management */
.data-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.export-btn,
.import-btn,
.clear-btn {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.export-btn {
    background: var(--success-color);
    color: white;
}

.export-btn:hover {
    background: var(--success-hover);
}

.import-btn {
    background: var(--info-color);
    color: white;
}

.import-btn:hover {
    background: var(--info-hover);
}

.clear-btn {
    background: var(--danger-color);
    color: white;
}

.clear-btn:hover {
    background: var(--danger-hover);
}

/* Personalization Button */
.personalization-btn {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: var(--surface-color);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.personalization-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* ACCESSIBILITY FEATURES */

/* Text Size Variables */
:root {
    --text-size: medium;
}

/* Text Size Classes */
.text-small {
    font-size: 0.875rem;
}

.text-medium {
    font-size: 1rem;
}

.text-large {
    font-size: 1.125rem;
}

/* Apply text size based on preference */
body[data-text-size="small"] {
    font-size: 0.875rem;
}

body[data-text-size="large"] {
    font-size: 1.125rem;
}

/* Light Mode */
.light-mode {
    --background-color: #ffffff;
    --surface-color: #f8f9fa;
    --text-color: #212529;
    --border-color: #dee2e6;
    --hover-color: #e9ecef;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

/* High Contrast Mode */
.high-contrast {
    --background-color: #000000;
    --surface-color: #1a1a1a;
    --text-color: #ffffff;
    --border-color: #ffffff;
    --hover-color: #333333;
    --primary-color: #ffff00;
    --secondary-color: #00ffff;
}

.high-contrast * {
    border-width: 2px !important;
}

/* Reduced Motion */
.reduced-motion * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

/* Focus Indicators for Accessibility */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to Content Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--surface-color);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10001;
}

.skip-link:focus {
    top: 6px;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Status Messages */
.status-message {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10002;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.status-message.show {
    opacity: 1;
}

.status-message.success {
    background: var(--success-color);
}

.status-message.error {
    background: var(--danger-color);
}

.status-message.info {
    background: var(--info-color);
}

/* Mobile Responsive Personalization */
@media (max-width: 768px) {
    .personalization-panel .personalization-content {
        width: 95%;
        padding: 1.5rem;
        max-height: 90vh;
    }
    
    .personalization-header h3 {
        font-size: 1.3rem;
    }
    
    .setting-group {
        margin-bottom: 1.5rem;
    }
    
    .data-actions {
        gap: 1rem;
    }
    
    .export-btn,
    .import-btn,
    .clear-btn {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .personalization-btn {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
}

/* Dark Mode Enhancements */
@media (prefers-color-scheme: dark) {
    .personalization-panel {
        background: rgba(0, 0, 0, 0.9);
    }
}

/* Print Styles */
@media print {
    .personalization-panel,
    .personalization-btn {
        display: none !important;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .personalization-btn {
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    }
}

/* DEVGENT AGENT MANAGEMENT STYLES */

/* Agent Tone Variations */
.tone-funkmix-with-strategic-clarity {
    --agent-accent-color: #ff6b35;
    --agent-glow-color: rgba(255, 107, 53, 0.3);
    --agent-text-style: 'energetic';
}

.tone-paranoid-but-protective {
    --agent-accent-color: #2ecc71;
    --agent-glow-color: rgba(46, 204, 113, 0.3);
    --agent-text-style: 'alert';
}

.tone-encouraging-mentor {
    --agent-accent-color: #3498db;
    --agent-glow-color: rgba(52, 152, 219, 0.3);
    --agent-text-style: 'supportive';
}

.tone-cool-headed-strategist {
    --agent-accent-color: #9b59b6;
    --agent-glow-color: rgba(155, 89, 182, 0.3);
    --agent-text-style: 'analytical';
}

.tone-creative-and-energetic {
    --agent-accent-color: #e74c3c;
    --agent-glow-color: rgba(231, 76, 60, 0.3);
    --agent-text-style: 'creative';
}

/* Agent Management Panel */
.agent-management-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.agent-management-panel.show {
    opacity: 1;
    visibility: visible;
}

.agent-management-content {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 2rem;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.agent-management-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.agent-management-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.5rem;
}

/* Agent Cards Grid */
.agent-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.agent-card {
    background: var(--background-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.agent-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border-color: var(--agent-accent-color, var(--primary-color));
}

.agent-card.active {
    border-color: var(--agent-accent-color, var(--primary-color));
    box-shadow: 0 0 20px var(--agent-glow-color, rgba(0, 123, 255, 0.3));
}

.agent-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.agent-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.agent-role {
    font-size: 0.9rem;
    color: var(--agent-accent-color, var(--primary-color));
    font-weight: 500;
    margin: 0.25rem 0;
}

.agent-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.agent-status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-color);
}

.agent-status-indicator.inactive {
    background: var(--text-muted);
}

.agent-description {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.agent-capabilities {
    margin-bottom: 1rem;
}

.agent-capabilities h4 {
    font-size: 0.9rem;
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
}

.capability-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.capability-tag {
    background: var(--agent-accent-color, var(--primary-color));
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.agent-permissions {
    margin-bottom: 1rem;
}

.agent-permissions h4 {
    font-size: 0.9rem;
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
}

.permission-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.permission-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.permission-list li::before {
    content: "✓";
    color: var(--success-color);
    font-weight: bold;
}

.permission-list li.restricted::before {
    content: "✗";
    color: var(--danger-color);
}

.agent-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.agent-action-btn {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.agent-action-btn.activate {
    background: var(--agent-accent-color, var(--primary-color));
    color: white;
}

.agent-action-btn.activate:hover {
    background: var(--agent-accent-color, var(--primary-hover));
}

.agent-action-btn.edit {
    background: var(--info-color);
    color: white;
}

.agent-action-btn.edit:hover {
    background: var(--info-hover);
}

.agent-action-btn.delete {
    background: var(--danger-color);
    color: white;
}

.agent-action-btn.delete:hover {
    background: var(--danger-hover);
}

/* Active Agent Display */
.active-agent-display {
    position: fixed;
    top: 1rem;
    left: 1rem;
    background: var(--surface-color);
    border: 2px solid var(--agent-accent-color, var(--primary-color));
    border-radius: 8px;
    padding: 0.75rem 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 300px;
}

.active-agent-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--agent-accent-color, var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}

.active-agent-info {
    flex: 1;
    min-width: 0;
}

.active-agent-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.active-agent-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.active-agent-switch {
    background: none;
    border: none;
    color: var(--agent-accent-color, var(--primary-color));
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.active-agent-switch:hover {
    background: var(--hover-color);
}

/* Agent Creation/Edit Form */
.agent-form {
    background: var(--background-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.agent-form-section {
    margin-bottom: 1.5rem;
}

.agent-form-section h4 {
    font-size: 1rem;
    color: var(--text-color);
    margin: 0 0 1rem 0;
}

.agent-form-group {
    margin-bottom: 1rem;
}

.agent-form-group label {
    display: block;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.agent-form-group input,
.agent-form-group textarea,
.agent-form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--surface-color);
    color: var(--text-color);
    font-size: 0.9rem;
}

.agent-form-group input:focus,
.agent-form-group textarea:focus,
.agent-form-group select:focus {
    outline: none;
    border-color: var(--agent-accent-color, var(--primary-color));
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.agent-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.capability-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.capability-input-group input {
    flex: 1;
}

.capability-input-group button {
    padding: 0.75rem 1rem;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
}

.add-capability-btn {
    background: var(--success-color) !important;
    margin-top: 0.5rem;
}

/* Agent Recommendations */
.agent-recommendations {
    background: var(--background-color);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.agent-recommendations h4 {
    font-size: 1rem;
    color: var(--text-color);
    margin: 0 0 1rem 0;
}

.recommendation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    background: var(--surface-color);
}

.recommendation-info {
    flex: 1;
}

.recommendation-agent {
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.recommendation-reason {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0 0;
}

.recommendation-score {
    background: var(--agent-accent-color, var(--primary-color));
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Agent Handoff Animation */
.agent-handoff-animation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--surface-color);
    border: 2px solid var(--agent-accent-color, var(--primary-color));
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    z-index: 10001;
    animation: handoffPulse 1s ease-in-out;
}

@keyframes handoffPulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.handoff-message {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.handoff-progress {
    width: 100%;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.handoff-progress-bar {
    height: 100%;
    background: var(--agent-accent-color, var(--primary-color));
    animation: handoffProgress 2s ease-in-out;
}

@keyframes handoffProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Mobile Responsive Agent Management */
@media (max-width: 768px) {
    .agent-management-content {
        width: 95%;
        padding: 1.5rem;
        max-height: 90vh;
    }
    
    .agent-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .agent-card {
        padding: 1rem;
    }
    
    .agent-actions {
        flex-direction: column;
    }
    
    .active-agent-display {
        position: fixed;
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        top: auto;
        max-width: none;
    }
    
    .agent-form {
        padding: 1rem;
    }
    
    .capability-input-group {
        flex-direction: column;
    }
    
    .capability-input-group button {
        align-self: flex-start;
    }
}

/* Agent Personality Visual Effects */
.agent-card[data-agent="Devi-One"] {
    --agent-accent-color: #ff6b35;
    --agent-glow-color: rgba(255, 107, 53, 0.3);
}

.agent-card[data-agent="Ghost-OrX"] {
    --agent-accent-color: #2ecc71;
    --agent-glow-color: rgba(46, 204, 113, 0.3);
}

.agent-card[data-agent="Skill-Master"] {
    --agent-accent-color: #3498db;
    --agent-glow-color: rgba(52, 152, 219, 0.3);
}

.agent-card[data-agent="Cash-Flow"] {
    --agent-accent-color: #9b59b6;
    --agent-glow-color: rgba(155, 89, 182, 0.3);
}

.agent-card[data-agent="Content-Creator"] {
    --agent-accent-color: #e74c3c;
    --agent-glow-color: rgba(231, 76, 60, 0.3);
}

/* Agent Status Indicators */
.agent-status-online {
    background: var(--success-color);
    animation: pulse 2s infinite;
}

.agent-status-busy {
    background: var(--warning-color);
    animation: pulse 1s infinite;
}

.agent-status-offline {
    background: var(--text-muted);
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Deployment Console Styles */
.deployment-console {
    background-color: var(--surface-color);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #2a2a2a;
}

.deployment-console p {
    margin-bottom: 1rem;
    color: var(--on-surface-color);
}

.deploy-ready-status,
.export-targets {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.deploy-ready-status li,
.export-targets li {
    background-color: #2a2a2a;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}

.deploy-ready-status .status-live {
    color: var(--success-color);
    font-weight: bold;
}

.deploy-ready-status .status-ready {
    color: var(--info-color);
    font-weight: bold;
}

.launch-button {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: var(--surface-color);
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease-in-out;
    margin-bottom: 1rem;
}

.launch-button:hover {
    background-color: var(--primary-variant-color);
}

.logs-viewer {
    background-color: #1a1a1a;
    border-radius: 6px;
    padding: 1rem;
    height: 150px;
    overflow-y: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: var(--on-background-color);
    border: 1px solid #2a2a2a;
}

/* Navigation Core Styles */
.nav-core {
  width: 100%;
  background-color: #111;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid #444;
  z-index: 10;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-icon {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease-in-out;
}

.nav-icon:hover {
  color: #0ff;
}

/* Static Role Label Styling */
.static-role-label {
  position: absolute;
  top: 12px;
  right: 16px;
  font-weight: bold;
  color: #00FFF7;
  background: rgba(0,0,0,0.6);
  padding: 4px 12px;
  border-radius: 8px;
  font-family: 'Orbitron', sans-serif;
  z-index: 1000;
}

/* Glowing Animated Sub-Tabs */
.sub-tab {
  display: inline-block;
  margin-right: 12px;
  padding: 10px 18px;
  font-weight: bold;
  font-family: 'Orbitron', sans-serif;
  border-radius: 999px;
  background: #1a1a1a;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 0 8px rgba(0,255,255,0.4);
  position: relative;
}

.sub-tab:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(0,255,255,0.7);
}

.sub-tab.active {
  background: linear-gradient(135deg, #00fff7, #6b00ff);
  box-shadow: 0 0 18px rgba(0,255,247,0.9);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 10px #00fff7; }
  50% { box-shadow: 0 0 24px #00fff7; }
  100% { box-shadow: 0 0 10px #00fff7; }
}

/* Sub-tab container */
.sub-tabs-container {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background: rgba(0,0,0,0.3);
  border-radius: 12px;
  margin: 12px 0;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #00fff7 #1a1a1a;
}

.sub-tabs-container::-webkit-scrollbar {
  height: 6px;
}

.sub-tabs-container::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 3px;
}

.sub-tabs-container::-webkit-scrollbar-thumb {
  background: #00fff7;
  border-radius: 3px;
}

.sub-tabs-container::-webkit-scrollbar-thumb:hover {
  background: #00ccc7;
}

/* NewTabModal Overlay */
.new-tab-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: all 0.2s ease-in-out;
}

.new-tab-modal-content {
  transform: scale(0.9);
  transition: all 0.2s ease-in-out;
}

/* Command Palette */
.command-palette {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  max-width: 90vw;
  background: rgba(20,20,20,0.95);
  border-radius: 8px;
  border: 1px solid rgba(0,255,247,0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  z-index: 10001;
  font-family: 'Orbitron', sans-serif;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: all 0.2s ease-in-out;
}

.command-palette.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.command-palette-input {
  width: 100%;
  padding: 16px 20px;
  border: none;
  background: transparent;
  color: #ffffff;
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  outline: none;
  border-bottom: 1px solid rgba(0,255,247,0.3);
}

.command-palette-input::placeholder {
  color: rgba(255,255,255,0.6);
}

.command-palette-results {
  max-height: 300px;
  overflow-y: auto;
}

.command-palette-item {
  padding: 12px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.command-palette-item:hover {
  background: rgba(0,255,247,0.1);
}

.command-palette-item.selected {
  background: rgba(0,255,247,0.2);
}

.command-palette-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.command-palette-label {
  flex: 1;
  color: #ffffff;
  font-size: 14px;
}

.command-palette-shortcut {
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  font-family: monospace;
}

/* Global Search */
.global-search {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 400px;
  max-width: 90vw;
  background: rgba(20,20,20,0.95);
  border-radius: 8px;
  border: 1px solid rgba(0,255,247,0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  z-index: 10002;
  font-family: 'Orbitron', sans-serif;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.2s ease-in-out;
  pointer-events: none;
}

.global-search.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.global-search-input {
  width: 100%;
  padding: 16px 20px;
  border: none;
  background: transparent;
  color: #ffffff;
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  outline: none;
  border-bottom: 1px solid rgba(0,255,247,0.3);
}

.global-search-input::placeholder {
  color: rgba(255,255,255,0.6);
}

.global-search-results {
  max-height: 400px;
  overflow-y: auto;
}

.global-search-item {
  padding: 12px 20px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.global-search-item:hover {
  background: rgba(0,255,247,0.1);
}

.global-search-item.selected {
  background: rgba(0,255,247,0.2);
}

.global-search-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-top: 2px;
}

.global-search-content {
  flex: 1;
}

.global-search-title {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.global-search-snippet {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  line-height: 1.4;
}

.global-search-meta {
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  margin-top: 4px;
}

/* Voice Command Interface Styles */
.voice-command-interface {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.voice-mic-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #00F6A8;
    background: rgba(0,0,0,0.8);
    color: #00F6A8;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-mic-button:hover {
    background: rgba(0,246,168,0.1);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0,246,168,0.5);
}

.voice-mic-button.listening {
    animation: pulse-glow 1.5s infinite;
    box-shadow: 0 0 20px #00F6A8;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 20px #00F6A8; }
    50% { box-shadow: 0 0 30px #00F6A8, 0 0 40px rgba(0,246,168,0.3); }
    100% { box-shadow: 0 0 20px #00F6A8; }
}

.voice-commands-help {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: rgba(0,0,0,0.9);
    border: 1px solid #00F6A8;
    border-radius: 8px;
    padding: 10px;
    color: white;
    font-size: 12px;
    max-width: 200px;
    display: none;
    backdrop-filter: blur(10px);
}

.voice-command-interface:hover .voice-commands-help {
    display: block;
}

/* Error Tracker Styles */
.error-tracker {
    background: #1B1B1B;
    padding: 20px;
    border-radius: 12px;
    margin: 10px 0;
    font-family: 'Orbitron', monospace;
    border: 1px solid rgba(255,62,62,0.3);
}

.error-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,62,62,0.3);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.error-item:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,62,62,0.5);
}

/* Theme Switcher Styles */
.theme-switcher {
    background: rgba(0,0,0,0.8);
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    font-family: 'Orbitron', monospace;
    border: 1px solid rgba(16,244,240,0.3);
}

.theme-switcher select {
    width: 100%;
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid #10F4F0;
    background: rgba(0,0,0,0.8);
    color: white;
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-switcher select:hover {
    border-color: #00F6A8;
    box-shadow: 0 0 10px rgba(0,246,168,0.3);
}

.theme-switcher select:focus {
    outline: none;
    border-color: #00F6A8;
    box-shadow: 0 0 15px rgba(0,246,168,0.5);
}

.theme-preview {
    margin-top: 10px;
    padding: 8px;
    border-radius: 4px;
    background: var(--background-color);
    border: 1px solid var(--primary-color);
    color: var(--text-color);
    font-size: 12px;
    transition: all 0.3s ease;
}

/* Collaboration Chat Styles */
.collaboration-chat {
    background: #14192F;
    border: 1px solid #10F4F0;
    border-radius: 12px;
    padding: 20px;
    margin: 10px 0;
    font-family: 'Orbitron', monospace;
    color: #ffffff;
    height: 500px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    scrollbar-width: thin;
    scrollbar-color: #10F4F0 rgba(0,0,0,0.3);
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.3);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #10F4F0;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #00F6A8;
}

.message {
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    border-left: 3px solid #00F6A8;
    transition: all 0.3s ease;
}

.message.system {
    background: rgba(16,244,240,0.1);
    border-left-color: #10F4F0;
}

.message.user {
    background: rgba(255,255,255,0.05);
    border-left-color: #00F6A8;
}

.message:hover {
    background: rgba(255,255,255,0.08);
    transform: translateX(2px);
}

/* Hotkey Manager Styles */
.hotkey-manager {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

.hotkey-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #10F4F0;
    background: rgba(0,0,0,0.8);
    color: #10F4F0;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hotkey-button:hover {
    background: rgba(16,244,240,0.1);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(16,244,240,0.5);
}

.hotkey-help-panel {
    position: absolute;
    bottom: 60px;
    left: 0;
    background: rgba(0,0,0,0.9);
    color: #10F4F0;
    font-family: 'Orbitron', monospace;
    border: 1px solid #10F4F0;
    border-radius: 8px;
    padding: 15px;
    max-width: 300px;
    display: none;
    z-index: 1001;
    backdrop-filter: blur(10px);
}

.hotkey-help-panel kbd {
    background: #333;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    border: 1px solid #555;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
  