:root {
    --primary: #4a6bff;
    --primary-dark: #3a56cc;
    --secondary: #6c757d;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --light: #f8f9fa;
    --dark: #343a40;
    --white: #ffffff;
    --black: #000000;
    --bg-dark: #0f172a;
    --bg-darker: #0b1120;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--light);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
}

/* Background themes */
.bridge-bg {
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)), 
                url('http://static.photos/technology/1024x576/42') no-repeat center center;
    background-size: cover;
}

.engineering-bg {
    background: linear-gradient(rgba(11, 17, 32, 0.9), rgba(11, 17, 32, 0.9)), 
                url('http://static.photos/industry/1024x576/23') no-repeat center center;
    background-size: cover;
}

.import-export-bg {
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)), 
                url('http://static.photos/finance/1024x576/76') no-repeat center center;
    background-size: cover;
}

.settings-bg {
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)), 
                url('http://static.photos/office/1024x576/88') no-repeat center center;
    background-size: cover;
}

.alexandria-bg {
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)), 
                url('http://static.photos/science/1024x576/55') no-repeat center center;
    background-size: cover;
}

.future-bg {
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)), 
                url('http://static.photos/aerial/1024x576/91') no-repeat center center;
    background-size: cover;
}

/* Header styles */
.module-header {
    text-align: left;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.module-header h1 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--white);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.module-header .subtitle {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    margin-top: 0.25rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}
.module-header i {
    margin-right: 1rem;
}

/* Hero section */
.hero {
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 4rem;
    margin: 0;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero h2 {
    font-size: 1.8rem;
    margin: 0.5rem 0;
    color: var(--primary);
    font-weight: 300;
}

.hero .tagline {
    font-size: 1.2rem;
    color: var(--secondary);
    max-width: 800px;
    margin: 1rem auto;
}

/* Module grid */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.module-card {
    background: rgba(30, 41, 59, 0.6);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--light);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.module-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    background: rgba(40, 51, 69, 0.7);
    border-color: rgba(74, 107, 255, 0.3);
}
.module-card i {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
    background: rgba(74, 107, 255, 0.1);
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0.5rem;
}
.module-card h3 {
    font-size: 1.2rem;
    margin: 0.75rem 0;
    font-weight: 500;
}
.module-card p {
    color: rgba(255,255,255,0.6);
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
}
/* Nyx intro */
.nyx-intro {
    display: flex;
    background: rgba(30, 41, 59, 0.7);
    border-radius: 10px;
    padding: 2rem;
    margin: 3rem 0;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-officer {
    display: flex;
    align-items: center;
    margin-right: 2rem;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-right: 1rem;
}

.ai-officer h3 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary);
}

.ai-officer .role {
    font-size: 0.9rem;
    color: var(--secondary);
    margin: 0.2rem 0 0;
}

.description {
    flex: 1;
}

.description p {
    font-style: italic;
    margin: 0;
    position: relative;
    padding-left: 1.5rem;
}

.description p::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -0.5rem;
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.5;
}

/* Bridge content */
.bridge-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.status-panel {
    grid-column: 1 / -1;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.status-card {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-card.operational {
    border-left: 4px solid var(--success);
}

.status-card h3 {
    font-size: 1rem;
    margin: 0 0 0.5rem;
    color: var(--secondary);
}

.status-value {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    color: var(--white);
}

.alerts-panel {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.alerts-panel h2 {
    margin-top: 0;
    font-size: 1.5rem;
}

.alert-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.alert-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.2);
}

.alert-item i {
    margin-right: 0.5rem;
}

.alert-item.info {
    color: var(--info);
}

.alert-item.warning {
    color: var(--warning);
}

.quick-nav {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.nav-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1rem;
    text-decoration: none;
    color: var(--light);
    transition: all 0.2s ease;
}

.nav-button:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.nav-button i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.nav-button span {
    font-size: 0.9rem;
}

/* Engineering content */
.engineering-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature i {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

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

.current-projects {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.project-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid var(--primary);
}

.project-card h3 {
    font-size: 1.2rem;
    margin: 0 0 0.5rem;
}

.status {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.status.in-progress {
    background: rgba(255, 193, 7, 0.2);
    color: var(--warning);
}

.status.testing {
    background: rgba(40, 167, 69, 0.2);
    color: var(--success);
}

.project-card p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--secondary);
}

/* Import/Export content */
.import-export-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.operations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.operation-card {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.operation-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.operation-header i {
    font-size: 2rem;
    margin-right: 1rem;
    color: var(--primary);
}

.operation-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.operation-steps {
    flex: 1;
    margin-bottom: 1.5rem;
}

.step {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 0.8rem;
}

.step p {
    margin: 0;
    font-size: 0.9rem;
}

.action-button {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.action-button i {
    margin-right: 0.5rem;
}

.action-button:hover {
    background: var(--primary-dark);
}

.backup-section {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.backup-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.backup-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid var(--info);
}

.backup-card h3 {
    font-size: 1.2rem;
    margin: 0 0 0.5rem;
}

.backup-card p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--secondary);
}

.backup-meta {
    font-size: 0.8rem;
    color: var(--info);
    margin-top: 0.5rem;
}

/* Settings content */
.settings-content {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.settings-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
}

.settings-nav {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem 0;
}

.settings-category {
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s ease;
}

.settings-category:hover {
    background: rgba(255, 255, 255, 0.05);
}

.settings-category.active {
    background: var(--primary);
}

.settings-category i {
    margin-right: 0.8rem;
    font-size: 1.1rem;
}

.settings-category h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: normal;
}

.settings-detail {
    padding: 2rem;
}

.settings-detail h2 {
    margin-top: 0;
    font-size: 1.8rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.preference-group {
    margin-bottom: 2rem;
}

.preference-group h3 {
    font-size: 1.2rem;
    margin: 0 0 1rem;
    color: var(--primary);
}

.preference-item {
    margin-bottom: 1rem;
}

.preference-item label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.preference-item select {
    width: 100%;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: white;
}

.preference-item input[type="text"],
.preference-item input[type="password"] {
    width: 100%;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: white;
}

.preference-item input[type="checkbox"] {
    margin-right: 0.5rem;
}

.preference-item input[type="range"] {
    width: 100%;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.save-button {
    background: var(--success);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.save-button i {
    margin-right: 0.5rem;
}

.save-button:hover {
    background: #218838;
}

.reset-button {
    background: rgba(0, 0, 0, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.reset-button i {
    margin-right: 0.5rem;
}

.reset-button:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Alexandria content */
.alexandria-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.memory-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.stat {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat h3 {
    font-size: 1rem;
    margin: 0 0 0.5rem;
    color: var(--secondary);
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    margin: 0 0 1rem;
    color: var(--white);
}

.stat-bar {
    height: 6px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.fill {
    height: 100%;
    background: var(--primary);
}

.memory-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.action-card {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.action-card h3 {
    font-size: 1.2rem;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
}

.action-card h3 i {
    margin-right: 0.5rem;
    color: var(--primary);
}

.search-box {
    display: flex;
    margin-bottom: 1rem;
}

.search-box input {
    flex: 1;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px 0 0 4px;
    color: white;
}

.search-box button {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    padding: 0 1rem;
    cursor: pointer;
}

.hint {
    font-size: 0.8rem;
    color: var(--secondary);
    margin: 0;
}

.context-list {
    margin-top: 1rem;
}

.context-item {
    display: flex;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.context-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(74, 107, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.context-icon i {
    color: var(--primary);
    font-size: 1rem;
}

.context-details {
    flex: 1;
}

.context-details h4 {
    margin: 0 0 0.2rem;
    font-size: 1rem;
}

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

.context-time {
    font-size: 0.8rem;
    color: var(--info);
    margin-top: 0.3rem;
}

.memory-management {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.memory-management h2 {
    margin-top: 0;
}

.management-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.option {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.option:hover {
    transform: translateY(-3px);
}

.option i {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.option h3 {
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

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

/* Future modules */
.future-content {
    max-width: 1000px;
    margin: 0 auto;
}

.future-intro p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 3rem;
}

.planned-modules {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.planned-card {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 10px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
}

.planned-card.concept {
    flex-direction: column;
}

.planned-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(74, 107, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 2rem;
    flex-shrink: 0;
}

.planned-icon i {
    font-size: 2rem;
    color: var(--primary);
}

.planned-details {
    flex: 1;
}

.planned-card h2 {
    font-size: 1.8rem;
    margin: 0 0 0.3rem;
}

.planned-card h3 {
    font-size: 1.2rem;
    margin: 0 0 1.5rem;
    color: var(--primary);
    font-weight: normal;
}

.planned-features {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.planned-features li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1rem;
}

.planned-features li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.planned-status {
    margin-top: 2rem;
}

.status-label {
    font-size: 0.9rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.status-bar {
    height: 6px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.status-detail {
    font-size: 0.9rem;
    color: var(--secondary);
}

.concept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.concept-item {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s ease;
}

.concept-item:hover {
    transform: translateY(-3px);
}

.concept-item i {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.concept-item h4 {
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

.concept-item p {
    font-size: 0.9rem;
    color: var(--secondary);
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .bridge-content {
        grid-template-columns: 1fr;
    }
    
    .operations-grid {
        grid-template-columns: 1fr;
    }
    
    .memory-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nyx-intro {
        flex-direction: column;
    }
    
    .ai-officer {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .planned-card {
        flex-direction: column;
    }
    
    .planned-icon {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .module-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }
}