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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #000000;
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.5rem;
    text-align: center;
}

.tagline {
    text-align: center;
    color: #0066cc;
    margin-bottom: 1rem;
    font-style: italic;
}

.nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: #0066cc;
    color: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-btn:hover, .nav-btn.active {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Main Content */
.main {
    padding: 2rem 0;
}

.section {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.section.active {
    display: block;
}

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

h2 {
    text-align: center;
    color: white;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Sector Tabs */
.sector-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.sector-tab {
    padding: 0.5rem 1rem;
    border: 2px solid white;
    background: transparent;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sector-tab:hover, .sector-tab.active {
    background: white;
    color: #0066cc;
}

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

.kpi-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 2px solid #0066cc;
}

.kpi-card:hover {
    transform: translateY(-5px);
    border-color: #000000;
}

.kpi-card h3 {
    color: #000000;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.kpi-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 0.5rem;
}

.kpi-trend {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.kpi-trend.positive {
    color: #00cc00;
}

.kpi-trend.negative {
    color: #ff6600;
}

.chart-container {
    height: 150px;
    position: relative;
}

/* Tool Grid */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.tool-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 2px solid #0066cc;
}

.tool-card:hover {
    border-color: #000000;
}

.tool-card h3 {
    color: #000000;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 2px solid #0066cc;
    padding-bottom: 0.5rem;
}

.calculator h4 {
    color: #0066cc;
    margin-bottom: 1rem;
}

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

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #000000;
    font-weight: 500;
}

.input-group input, .input-group select, .input-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #0066cc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
    outline: none;
    border-color: #000000;
}

.input-group textarea {
    height: 80px;
    resize: vertical;
}

button {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

button:hover {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.result {
    margin-top: 1rem;
    padding: 1rem;
    background: #f0f8ff;
    border: 2px solid #0066cc;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    text-align: center;
}

/* Simulator Styles */
.simulator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 2px solid #0066cc;
}

.simulator-panel h3 {
    color: #000000;
    margin-bottom: 1.5rem;
}

.input-group input[type="range"] {
    width: 100%;
    margin-bottom: 0.5rem;
}

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

.metric {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: #f0f8ff;
    border: 1px solid #0066cc;
    border-radius: 8px;
}

.metric-label {
    font-weight: 500;
    color: #000000;
}

.metric-value {
    font-weight: 700;
    color: #0066cc;
}

/* Emulator Styles */
.emulator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.emulator-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 2px solid #0066cc;
}

.emulator-card:hover {
    border-color: #000000;
}

.emulator-card h3 {
    color: #000000;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.emulation-output {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #0066cc;
}

.output-metric {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f0f8ff;
    border: 1px solid #0066cc;
    border-radius: 8px;
}

.output-metric span:first-child {
    font-weight: 500;
    color: #000000;
}

.output-metric span:last-child {
    font-weight: 700;
    color: #0066cc;
}

/* Builder Styles */
.builder-interface {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 2px solid #0066cc;
}

.builder-panel h3, .preview-panel h3 {
    color: #000000;
    margin-bottom: 1.5rem;
}

.custom-kpi-preview {
    background: #f0f8ff;
    border: 2px solid #0066cc;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}

.preview-name {
    font-size: 1.2rem;
    color: #000000;
    margin-bottom: 1rem;
}

.preview-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 0.5rem;
}

.preview-target {
    color: #0066cc;
    font-style: italic;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.95);
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    color: #000000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-grid {
        grid-template-columns: 1fr;
    }
    
    .simulator-container {
        grid-template-columns: 1fr;
    }
    
    .builder-interface {
        grid-template-columns: 1fr;
    }
    
    .emulator-grid {
        grid-template-columns: 1fr;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

/* Animation for charts */
.chart-container canvas {
    transition: all 0.3s ease;
}

#simulation-chart {
    height: 300px;
    margin-bottom: 1rem;
}

/* Success/Error indicators */
.success {
    color: #00cc00;
}

.warning {
    color: #ff6600;
}

.error {
    color: #cc0000;
}
