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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.app-container {
    min-height: 100vh;
}

/* Navigation */
.nav-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-bar h1 {
    font-size: 1.8rem;
    font-weight: 300;
}

.nav-tabs {
    display: flex;
    gap: 1rem;
}

.tab-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.tab-btn:hover {
    background: rgba(255,255,255,0.3);
}

.tab-btn.active {
    background: white;
    color: #667eea;
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 2rem;
}

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

/* Steps */
.step {
    display: none;
    max-width: 800px;
    margin: 0 auto;
}

.step.active {
    display: block;
}

.step h2 {
    color: #4a5568;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 300;
}

/* Import Step */
.import-area {
    margin-bottom: 2rem;
}

.drag-drop-area {
    border: 2px dashed #cbd5e0;
    border-radius: 10px;
    padding: 3rem;
    text-align: center;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.drag-drop-area:hover {
    border-color: #667eea;
    background: #f7fafc;
}

.drag-drop-area.dragover {
    border-color: #667eea;
    background: #ebf4ff;
}

#fileInput {
    display: none;
}

.file-types {
    font-size: 0.9rem;
    color: #718096;
    margin-top: 0.5rem;
}

.file-list {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.file-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-status {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.file-status.success {
    background: #c6f6d5;
    color: #22543d;
}

.file-status.error {
    background: #fed7d7;
    color: #742a2a;
}

.file-status.loading {
    background: #bee3f8;
    color: #2a4365;
}

/* Chart Configuration */
.chart-configs {
    margin-bottom: 2rem;
}

.chart-config {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.config-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.config-row label {
    font-weight: 500;
    color: #4a5568;
}

.config-row select,
.config-row input {
    padding: 0.75rem;
    border: 1px solid #cbd5e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.config-row select:focus,
.config-row input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Layout Options */
.layout-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.layout-option {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 2px solid transparent;
}

.layout-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.layout-option.selected {
    border-color: #667eea;
    background: #f7fafc;
}

.layout-preview {
    height: 100px;
    margin-bottom: 1rem;
    display: grid;
    gap: 5px;
    padding: 10px;
    background: #f7fafc;
    border-radius: 5px;
}

.single-layout {
    grid-template-columns: 1fr;
}

.grid-2x2 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.sidebar-layout {
    grid-template-columns: 2fr 1fr;
}

.slot {
    background: #cbd5e0;
    border-radius: 3px;
}

/* Slot Assignment */
.slot-assignment {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.slot-config {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.slot-config:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

/* Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.dashboard-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.last-update {
    font-size: 0.9rem;
    color: #718096;
}

.dashboard-container {
    min-height: 600px;
}

.empty-dashboard {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.empty-dashboard h3 {
    color: #4a5568;
    margin-bottom: 1rem;
}

.empty-dashboard p {
    color: #718096;
}

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

.dashboard-grid2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2rem;
    min-height: 600px;
}

.dashboard-sidebar {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    min-height: 600px;
}

.chart-container {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
}

.chart-title {
    text-align: center;
    margin-bottom: 1rem;
    color: #4a5568;
    font-size: 1.1rem;
    font-weight: 500;
}

.chart-canvas {
    max-height: 300px;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

.btn-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.4);
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

.btn-danger {
    background: #f56565;
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-danger:hover {
    background: #e53e3e;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Step Navigation */
.step-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-bar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .tab-content {
        padding: 1rem;
    }
    
    .config-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .layout-options {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid2x2,
    .dashboard-sidebar {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .step-nav {
        flex-direction: column;
        gap: 1rem;
    }
}