/* NexaCore Demo - Main Styles */
:root {
    --primary-color: #0D6EFD;
    --secondary-color: #6C757D;
    --success-color: #198754;
    --warning-color: #FFC107;
    --danger-color: #DC3545;
    --info-color: #0DCAF0;
    --light-color: #F8F9FA;
    --dark-color: #212529;
    --sidebar-bg: #1E293B;
    --sidebar-hover: #334155;
    --card-bg: #FFFFFF;
    --border-color: #DEE2E6;
    --text-primary: #212529;
    --text-secondary: #6C757D;
    --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--light-color);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Demo Container */
.demo-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.demo-header {
    background: linear-gradient(135deg, var(--primary-color), #0B5ED7);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    gap: 0.5rem;
}

.logo i {
    font-size: 2rem;
    color: #FFC107;
}

.demo-badge {
    background: var(--warning-color);
    color: var(--dark-color);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.header-nav {
    display: flex;
    gap: 2rem;
}

.header-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

.header-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-demo {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    margin-right: 0.5rem;
}

.btn-demo:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-contact {
    background: var(--success-color);
    color: white;
    border: 1px solid var(--success-color);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-contact:hover {
    background: #157347;
    border-color: #157347;
    transform: translateY(-1px);
}

/* Main Content */
.demo-main {
    flex: 1;
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Sidebar */
.demo-sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    color: white;
    padding: 2rem 0;
    box-shadow: var(--shadow);
}

.sidebar-content {
    padding: 0 1rem;
}

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

.sidebar-section h3 {
    color: #94A3B8;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 0.25rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #CBD5E1;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    font-weight: 500;
}

.sidebar-menu a:hover {
    background: var(--sidebar-hover);
    color: white;
}

.sidebar-menu a.active {
    background: var(--primary-color);
    color: white;
}

.sidebar-menu i {
    width: 1.25rem;
    text-align: center;
}

/* Content Area */
.demo-content {
    flex: 1;
    padding: 2rem;
    background: var(--light-color);
}

.module-content {
    display: none;
}

.module-content.active {
    display: block;
}

.module-header {
    margin-bottom: 2rem;
}

.module-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.module-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
    color: white;
}

.stat-card:nth-child(1) .stat-icon { background: var(--primary-color); }
.stat-card:nth-child(2) .stat-icon { background: var(--success-color); }
.stat-card:nth-child(3) .stat-icon { background: var(--info-color); }
.stat-card:nth-child(4) .stat-icon { background: var(--warning-color); color: var(--dark-color); }

.stat-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-info p {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.stat-change {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.stat-change.positive {
    background: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
}

.stat-change.negative {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.dashboard-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
}

.dashboard-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--light-color);
    border-radius: 0.5rem;
}

.activity-item i {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: white;
    background: var(--primary-color);
}

.activity-item span {
    flex: 1;
    font-weight: 500;
}

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

/* Chart Container */
.chart-container {
    height: 300px;
    position: relative;
}

/* Footer */
.demo-footer {
    background: var(--dark-color);
    color: white;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.footer-brand i {
    color: var(--warning-color);
}

.footer-info p {
    margin: 0;
}

.footer-info a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #CBD5E1;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

/* Notifications */
#notification-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notification {
    background: var(--card-bg);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--primary-color);
    max-width: 400px;
    animation: slideIn 0.3s ease-out;
}

.notification.success { border-left-color: var(--success-color); }
.notification.warning { border-left-color: var(--warning-color); }
.notification.error { border-left-color: var(--danger-color); }
.notification.info { border-left-color: var(--info-color); }

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

.notification-title {
    font-weight: 600;
    color: var(--text-primary);
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.notification-message {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 0.75rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.loading-spinner i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.loading-spinner p {
    color: var(--text-secondary);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .demo-main {
        flex-direction: column;
    }
    
    .demo-sidebar {
        width: 100%;
        padding: 1rem 0;
    }
    
    .sidebar-content {
        display: flex;
        overflow-x: auto;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .sidebar-section {
        min-width: 200px;
        margin-bottom: 0;
    }
    
    .demo-content {
        padding: 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .header-nav {
        order: 1;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 1rem;
    }
    
    .header-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .module-header h1 {
        font-size: 1.5rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .dashboard-card {
        padding: 1rem;
    }
}

/* Contact Modal Styles */
.contact-modal {
    max-width: 600px;
}

.contact-info {
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: var(--light-color);
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.contact-item:hover {
    background: #E9ECEF;
}

.contact-item i {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    background: var(--primary-color);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.contact-item:nth-child(1) i { background: var(--primary-color); }
.contact-item:nth-child(2) i { background: var(--success-color); }
.contact-item:nth-child(3) i { background: var(--info-color); }
.contact-item:nth-child(4) i { background: var(--warning-color); color: var(--dark-color); }

.contact-item div {
    flex: 1;
}

.contact-item strong {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.contact-item p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.contact-message {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), #0B5ED7);
    color: white;
    border-radius: 0.75rem;
    text-align: center;
}

.contact-message p {
    margin: 0 0 0.5rem 0;
}

.contact-message p:last-child {
    margin-bottom: 0;
    opacity: 0.9;
}
