/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Login Page Styles */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.logo p {
    color: #7f8c8d;
    font-size: 1rem;
}

.login-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

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

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
}

.error-message {
    color: #e74c3c;
    text-align: center;
    padding: 10px;
    background: #fdf2f2;
    border-radius: 8px;
    border: 1px solid #fecaca;
}

/* Dashboard Styles */
.dashboard-page {
    background-color: #f8f9fa;
}

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

/* Sidebar */
.sidebar {
    width: 280px;
    background: #2c3e50;
    color: white;
    transition: transform 0.3s ease;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #34495e;
}

.sidebar-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.sidebar-nav {
    padding: 20px 0;
}

.nav-item {
    display: block;
    padding: 12px 20px;
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover,
.nav-item.active {
    background-color: #34495e;
    color: white;
    border-left-color: #3498db;
}

.nav-item i {
    margin-right: 10px;
    width: 20px;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: white;
    padding: 0 30px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    margin-right: 15px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

.header-left h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
}

.header-right {
    display: flex;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logout-btn {
    padding: 8px 16px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.logout-btn:hover {
    background: #c0392b;
}

/* Content Area */
.content-area {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* Welcome Section */
.welcome-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.welcome-section h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.welcome-section p {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 30px;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.stat-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Tools Section */
.tools-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tools-section h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 30px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.tool-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    border: 2px solid #e1e8ed;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tool-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.tool-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.tool-card p {
    color: #7f8c8d;
    margin-bottom: 20px;
}

.tool-btn {
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.tool-btn:hover {
    background: #5a6fd8;
}

/* Projects Section */
.projects-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.projects-header h2 {
    font-size: 2rem;
    color: #2c3e50;
}

.create-project-btn {
    padding: 12px 24px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.create-project-btn:hover {
    background: #229954;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.project-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    border: 2px solid #e1e8ed;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.project-card h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.project-card p {
    color: #7f8c8d;
    margin-bottom: 15px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #95a5a6;
}

/* Project Detail */
.project-detail-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e1e8ed;
}

.project-header h2 {
    font-size: 2rem;
    color: #2c3e50;
}

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

.action-btn {
    padding: 10px 20px;
    border: 2px solid #e1e8ed;
    background: white;
    color: #2c3e50;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.action-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.action-btn.primary {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.action-btn.primary:hover {
    background: #5a6fd8;
    border-color: #5a6fd8;
}

/* Data Manager */
.data-manager-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.data-manager-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.data-manager-header h2 {
    font-size: 2rem;
    color: #2c3e50;
}

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

.data-manager-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.data-list {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    max-height: 600px;
    overflow-y: auto;
}

.data-item {
    background: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
    cursor: pointer;
    transition: all 0.3s ease;
}

.data-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.data-item h4 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.data-item p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.data-preview {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.data-preview h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.preview-map {
    height: 400px;
    border-radius: 8px;
    background: #e1e8ed;
}

/* Conversion Studio */
.conversion-studio-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.conversion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.conversion-header h2 {
    font-size: 2rem;
    color: #2c3e50;
}

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

.file-upload-area {
    margin-bottom: 30px;
}

.upload-zone {
    border: 2px dashed #667eea;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-zone:hover {
    background: #e8f0fe;
    border-color: #5a6fd8;
}

.upload-zone p {
    color: #667eea;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

#fileInput {
    display: none;
}

.conversion-workspace {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 20px;
    height: 600px;
}

.data-sources {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    overflow-y: auto;
}

.data-sources h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.sources-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.source-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
    cursor: pointer;
    transition: all 0.3s ease;
}

.source-item:hover {
    border-color: #667eea;
}

.source-item.active {
    border-color: #667eea;
    background: #e8f0fe;
}

.conversion-map {
    background: #e1e8ed;
    border-radius: 8px;
    position: relative;
}

.conversion-panel {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    overflow-y: auto;
}

.conversion-panel h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.jobs-list {
    margin-bottom: 20px;
}

.job-item {
    background: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
}

.job-item h4 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.job-item p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.data-analysis {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
}

.data-analysis h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.analysis-results {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Style Editor */
.style-editor-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.style-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.style-editor-header h2 {
    font-size: 2rem;
    color: #2c3e50;
}

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

.style-editor-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    height: 600px;
}

.style-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.style-layers {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    flex: 1;
}

.style-layers h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.layers-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.layer-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
    cursor: pointer;
    transition: all 0.3s ease;
}

.layer-item:hover {
    border-color: #667eea;
}

.layer-item.active {
    border-color: #667eea;
    background: #e8f0fe;
}

.layer-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.layer-toggle {
    width: 20px;
    height: 20px;
    border: 2px solid #667eea;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.layer-toggle.checked {
    background: #667eea;
    color: white;
}

.style-editor {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    flex: 1;
}

.style-editor h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

#styleJsonEditor {
    width: 100%;
    height: 200px;
    padding: 15px;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    resize: vertical;
}

.style-preview {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.preview-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.preview-controls h3 {
    color: #2c3e50;
}

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

.preview-btn {
    padding: 8px 16px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.preview-btn:hover {
    background: #5a6fd8;
}

.style-preview-map {
    height: 500px;
    border-radius: 8px;
    background: #e1e8ed;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e1e8ed;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #2c3e50;
    font-size: 1.5rem;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e1e8ed;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-secondary {
    padding: 10px 20px;
    background: #95a5a6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-primary {
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background: #5a6fd8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .header-left h1 {
        font-size: 1.5rem;
    }
    
    .content-area {
        padding: 20px;
    }
    
    .welcome-section {
        padding: 30px 20px;
    }
    
    .welcome-section h2 {
        font-size: 2rem;
    }
    
    .quick-stats {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .data-manager-content {
        grid-template-columns: 1fr;
    }
    
    .conversion-workspace {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .style-editor-content {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
}

.empty-state h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

/* Project Info */
.project-info {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.project-info h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.project-info p {
    color: #7f8c8d;
    margin-bottom: 15px;
}

.project-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #95a5a6;
}

/* Drag and Drop */
.drag-over {
    background-color: #e8f0fe !important;
    border-color: #5a6fd8 !important;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e1e8ed;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

/* Analysis Items */
.analysis-item {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.analysis-item strong {
    color: #2c3e50;
}

/* Data Explorer Styles */
.data-explorer-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.processing-status {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.status-item {
    font-size: 0.9rem;
    color: #2c3e50;
}

.status-item strong {
    color: #667eea;
}

.data-explorer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.data-explorer-header h2 {
    font-size: 2rem;
    color: #2c3e50;
}

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

.explorer-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.9rem;
}

.filter-group select,
.filter-group input {
    padding: 8px 12px;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    font-size: 14px;
}

.explorer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.data-sources-list h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-height: 600px;
    overflow-y: auto;
}

.data-source-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
    transition: all 0.3s ease;
}

.data-source-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.source-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.source-header h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin: 0;
}

.source-type {
    background: #667eea;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.source-details {
    margin-bottom: 15px;
}

.source-details p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.source-actions {
    display: flex;
    gap: 8px;
}

.action-btn.small {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.data-preview-panel {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.data-preview-panel h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.preview-placeholder {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

.preview-info {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.preview-info h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.analysis-results {
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.analysis-results h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #667eea;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    border-bottom: 2px solid #e1e5e9;
    margin-bottom: 20px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    color: #6c757d;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #667eea;
    background: #f8f9fa;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
    font-weight: 600;
}

.tab-content {
    display: none;
}

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

/* Queue Styles */
.queue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e1e5e9;
}

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

.queue-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.queue-item {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.queue-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.queue-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.queue-item-header h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.queue-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-success {
    background: #d4edda;
    color: #155724;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
}

.queue-item-details {
    margin-bottom: 15px;
}

.queue-item-details p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #6c757d;
}

.queue-item-details strong {
    color: #2c3e50;
}

.queue-item-actions {
    display: flex;
    gap: 10px;
}

/* Professional Data Explorer Styles */
.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e1e5e9;
}

.tab-title h3 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 1.5rem;
}

.tab-title p {
    margin: 0;
    color: #7f8c8d;
    font-size: 0.9rem;
}

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

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

.action-btn.primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
}

.action-btn.danger {
    background: #e74c3c;
    color: white;
    border: none;
}

.action-btn.danger:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

/* Queue Item Styles */
.queue-item {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.queue-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
    transform: translateY(-2px);
}

.queue-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.queue-item-info h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
}

.file-type-badge {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.queue-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.status-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-queued {
    background: #fff3cd;
    color: #856404;
}

.status-processing {
    background: #d1ecf1;
    color: #0c5460;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-failed {
    background: #f8d7da;
    color: #721c24;
}

.progress-text {
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 600;
}

.progress-section {
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e1e8ed;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.5s ease;
    border-radius: 4px;
}

.queue-item-details {
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 5px 0;
}

.detail-label {
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.9rem;
}

.detail-value {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.queue-item-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Preview Panel */
.preview-panel {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    height: fit-content;
}

.preview-panel h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.preview-map {
    height: 300px;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    margin-bottom: 15px;
}

.preview-info {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.preview-info h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1rem;
}

/* Tiles Grid */
.tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.tile-card {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tile-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
    transform: translateY(-2px);
}

.tile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.tile-header h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
}

.tile-type-badge {
    background: #27ae60;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.tile-details {
    margin-bottom: 20px;
}

.tile-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.empty-state p {
    margin-bottom: 20px;
    font-size: 1rem;
}

/* Professional Data Explorer Styles */
.pro-data-explorer {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Page Header */
.page-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 2rem 0;
    margin-bottom: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem 0;
}

.header-title p {
    color: #6b7280;
    margin: 0;
    font-size: 1rem;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

/* Statistics Bar */
.stats-bar {
    display: flex;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    gap: 2rem;
}

.stat-card {
    text-align: center;
    min-width: 120px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Professional Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.btn-outline {
    background: transparent;
    color: #374151;
    border-color: #d1d5db;
}

.btn-outline:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

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

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.icon {
    font-size: 1rem;
}

/* Professional Tab System */
.pro-tabs {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.tab-nav {
    display: flex;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
    font-weight: 500;
    font-size: 0.875rem;
    flex: 1;
    justify-content: center;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.tab-btn.active {
    background: white;
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.tab-text {
    font-weight: 500;
}

.tab-badge {
    background: #e5e7eb;
    color: #6b7280;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 1.5rem;
    text-align: center;
}

.tab-btn.active .tab-badge {
    background: #dbeafe;
    color: #3b82f6;
}

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

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

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

.content-header h2 {
    font-size: 1.5rem;
    color: #111827;
    margin: 0;
    font-weight: 600;
}

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

.search-container {
    position: relative;
}

.search-container input {
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    width: 250px;
    transition: all 0.2s ease;
}

.search-container input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: #6b7280;
}

/* Professional Data Grid */
.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.data-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.data-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

.data-icon {
    font-size: 1.5rem;
    color: #3b82f6;
}

.data-type {
    background: #f3f4f6;
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.data-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.data-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    font-size: 0.875rem;
    color: #6b7280;
}

.meta-item strong {
    color: #374151;
    font-weight: 500;
}

.data-actions {
    display: flex;
    gap: 0.75rem;
}

/* Tiles Grid */
.tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2.5rem;
}

.tile-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.tile-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.tile-preview {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    overflow: hidden;
}

.tile-thumb {
    font-size: 4rem;
    opacity: 0.6;
    color: #667eea;
}

.tile-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #667eea;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.tile-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 1.5rem 0;
    line-height: 1.3;
}

.tile-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: #6c757d;
}

.meta-icon {
    font-size: 1.2rem;
    color: #667eea;
}

.tile-actions {
    display: flex;
    gap: 1rem;
}

.action-btn {
    flex: 1;
    padding: 1rem;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.action-btn.preview {
    border-color: #17a2b8;
    color: #17a2b8;
}

.action-btn.preview:hover {
    background: #17a2b8;
    color: white;
}

.action-btn.download {
    border-color: #28a745;
    color: #28a745;
}

.action-btn.download:hover {
    background: #28a745;
    color: white;
}

.action-btn.delete {
    border-color: #dc3545;
    color: #dc3545;
}

.action-btn.delete:hover {
    background: #dc3545;
    color: white;
}

.action-btn.retry {
    border-color: #ffc107;
    color: #ffc107;
}

.action-btn.retry:hover {
    background: #ffc107;
    color: white;
}

/* Queue List */
.queue-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.queue-item {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.4s ease;
}

.queue-item:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
    transform: translateY(-4px);
}

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

.queue-filename {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.queue-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.file-type {
    background: #e9ecef;
    color: #495057;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.queue-date {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 500;
}

.status-badge {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-queued {
    background: #fff3cd;
    color: #856404;
}

.status-processing {
    background: #d1ecf1;
    color: #0c5460;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-failed {
    background: #f8d7da;
    color: #721c24;
}

.progress-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.progress-bar {
    flex: 1;
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.5s ease;
    border-radius: 6px;
}

.progress-text {
    font-size: 1rem;
    font-weight: 700;
    color: #667eea;
    min-width: 3rem;
}

.queue-details {
    margin-bottom: 2rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.detail-row.full-width {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.detail-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.detail-value {
    color: #6c757d;
    font-size: 1rem;
}

.queue-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: #6c757d;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
    opacity: 0.6;
}

.empty-state h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 700;
}

.empty-state p {
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Modal Styles */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-dialog {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    animation: modalZoom 0.4s ease;
}

@keyframes modalZoom {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 2px solid #f1f3f4;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #6c757d;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #2c3e50;
}

.modal-body {
    padding: 2rem;
}

.upload-area {
    border: 3px dashed #667eea;
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.upload-area:hover,
.upload-area.dragover {
    background: linear-gradient(135deg, #e8f0fe 0%, #d4edda 100%);
    border-color: #28a745;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: #667eea;
}

.upload-content h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.upload-content p {
    color: #6c757d;
    margin: 0;
    font-size: 1.1rem;
}

.file-preview {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

.file-size {
    color: #6c757d;
    font-size: 1rem;
}

.format-info {
    margin-top: 1.5rem;
    text-align: center;
}

.format-info small {
    color: #6c757d;
    font-size: 0.9rem;
}

.modal-footer {
    padding: 2rem;
    border-top: 2px solid #f1f3f4;
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
}

/* Alert Styles */
.alert {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-weight: 600;
    font-size: 1rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.alert-icon {
    font-size: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-data-explorer {
        padding: 0 1rem;
    }
    
    .explorer-hero {
        padding: 2rem 1.5rem;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .stats-dashboard {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem;
    }
    
    .tab-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tab-content {
        padding: 2rem 1.5rem;
    }
    
    .content-header {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
    }
    
    .header-controls {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .search-container input {
        width: 100%;
    }
    
    .tiles-grid {
        grid-template-columns: 1fr;
    }
    
    .queue-item {
        padding: 1.5rem;
    }
    
    .queue-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .queue-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .modal-dialog {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1.5rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .tab-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .tab-actions {
        justify-content: center;
    }
    
    .explorer-content {
        grid-template-columns: 1fr;
    }
    
    .tiles-grid {
        grid-template-columns: 1fr;
    }
    
    .queue-item-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .queue-status {
        align-items: flex-start;
    }
}

/* Projects Section Styles */
.projects-section {
    margin-top: 2rem;
}

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

.section-header h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
}

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

.project-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid #e1e8ed;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

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

.project-header h4 {
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
    margin-right: 1rem;
}

.project-type {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-type.web {
    background: #e3f2fd;
    color: #1976d2;
}

.project-type.mobile {
    background: #f3e5f5;
    color: #7b1fa2;
}

.project-type.analysis {
    background: #e8f5e8;
    color: #388e3c;
}

.project-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    min-height: 2.7rem;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.project-date {
    color: #6c757d;
    font-size: 0.8rem;
}

.project-actions .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: 6px;
    text-decoration: none;
    background: #667eea;
    color: white;
    transition: background 0.3s ease;
}

.project-actions .btn-sm:hover {
    background: #5a6fd8;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state h4 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.view-all-projects {
    text-align: center;
    margin-top: 1.5rem;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Responsive adjustments for projects */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .project-card {
        padding: 1.25rem;
    }
    
    .project-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .project-header h4 {
        margin-right: 0;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-header .close {
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
    line-height: 1;
}

.modal-header .close:hover {
    color: #dc3545;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1rem 2rem 2rem 2rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    border-top: 1px solid #e9ecef;
    margin-top: 1rem;
}

.modal-footer button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-footer .btn-primary {
    background: #667eea;
    color: white;
}

.modal-footer .btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.modal-footer .btn-secondary {
    background: #6c757d;
    color: white;
}

.modal-footer .btn-secondary:hover {
    background: #5a6268;
}

/* Sidebar Projects Styles */
.sidebar-projects {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #dee2e6;
}

.sidebar-projects h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0 1rem;
}

.project-list-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #6c757d;
    text-decoration: none;
    border-radius: 8px;
    margin: 0.25rem 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.project-list-item:hover {
    background: #f8f9fa;
    color: #667eea;
}

.project-list-item.active {
    background: #667eea;
    color: white;
}

.project-type-icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.75rem;
}

.project-type-icon.web {
    background: #1976d2;
}

.project-type-icon.mobile {
    background: #7b1fa2;
}

.project-type-icon.analysis {
    background: #388e3c;
}

/* Data Explorer Project-based Layout Styles */
.project-group {
    background: white;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e8ed;
    overflow: hidden;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.project-info {
    flex: 1;
}

.project-name {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.project-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.project-type-badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.data-count {
    color: #6c757d;
    font-size: 0.9rem;
}

.project-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    padding: 1.5rem 2rem;
}

.project-data-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.project-data-item:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.data-icon-small {
    font-size: 1.5rem;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.data-details {
    flex: 1;
}

.data-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.style-badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.data-info-small {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.data-info-small span {
    position: relative;
}

.data-info-small span:not(:last-child)::after {
    content: '•';
    position: absolute;
    right: -0.4rem;
    color: #dee2e6;
}

/* Styles Grid Layout */
.styles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.style-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e8ed;
    transition: all 0.3s ease;
}

.style-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

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

.style-icon {
    font-size: 1.5rem;
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.style-project {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.style-info {
    margin-bottom: 1rem;
}

.style-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.style-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.style-meta .meta-item {
    font-size: 0.9rem;
    color: #6c757d;
}

.style-actions {
    display: flex;
    gap: 0.75rem;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .project-data-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .styles-grid {
        grid-template-columns: 1fr;
    }
    
    .project-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Enhanced Project Connection Styles */
.project-connection {
    margin: 0.75rem 0;
}

.project-connection .project-connection-label {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.project-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid;
    transition: all 0.3s ease;
}

.project-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.project-badge.project-type-web {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
    border-color: #2196f3;
}

.project-badge.project-type-mobile {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
    color: #7b1fa2;
    border-color: #9c27b0;
}

.project-badge.project-type-analysis {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    color: #388e3c;
    border-color: #4caf50;
}

.project-type-label {
    font-size: 0.8rem;
    opacity: 0.8;
    font-weight: 400;
}

.map-style-badge {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 0.5rem;
    border: 1px solid #2196f3;
}

/* Style Project Connection */
.style-project-connection {
    margin: 1rem 0;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.project-connection-label {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.style-project-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid;
}

.style-project-badge.project-type-web {
    background: #e3f2fd;
    color: #1976d2;
    border-color: #2196f3;
}

.style-project-badge.project-type-mobile {
    background: #fce4ec;
    color: #7b1fa2;
    border-color: #9c27b0;
}

.style-project-badge.project-type-analysis {
    background: #e8f5e8;
    color: #388e3c;
    border-color: #4caf50;
}

/* Enhanced project type icons */
.project-type-icon {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

/* Responsive adjustments for project badges */
@media (max-width: 768px) {
    .project-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .project-type-label {
        display: none;
    }
    
    .style-project-connection {
        margin: 0.5rem 0;
        padding: 0.5rem;
    }
}

/* List View Styles */
.data-list, .styles-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    margin-bottom: 2rem;
}

.data-list-item, .style-list-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    background: #fafbfc;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.data-list-item:hover, .style-list-item:hover {
    background: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
    z-index: 1;
}

.data-list-item:hover::before, .style-list-item:hover::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.data-list-item:last-child, .style-list-item:last-child {
    border-bottom: none;
}

/* List Icons */
.data-list-icon, .style-list-icon {
    font-size: 2.2rem;
    margin-right: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* List Content */
.data-list-content, .style-list-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    min-height: 60px;
}

.data-list-main, .style-list-main {
    flex: 1;
    min-width: 0; /* Allows text truncation */
}

.data-list-name, .style-list-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    line-height: 1.4;
}

.data-list-project, .style-list-project {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.project-connection-label-small {
    font-size: 0.8rem;
    color: #718096;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-badge-small {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.project-badge-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.project-badge-small.project-type-web {
    background: #e3f2fd;
    color: #1976d2;
    border-color: #2196f3;
}

.project-badge-small.project-type-mobile {
    background: #fce4ec;
    color: #7b1fa2;
    border-color: #9c27b0;
}

.project-badge-small.project-type-analysis {
    background: #e8f5e8;
    color: #388e3c;
    border-color: #4caf50;
}

.map-style-badge-small {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* List Meta Tags */
.data-list-meta, .style-list-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.meta-tag {
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.meta-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

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

.meta-size {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.meta-date {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.meta-description {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: #1a202c;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* List Actions */
.data-list-actions, .style-list-actions {
    display: flex;
    gap: 0.75rem;
    margin-left: 2rem;
    flex-shrink: 0;
    align-items: center;
}

.btn-list {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-list::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-list:hover::before {
    left: 100%;
}

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

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

.btn-secondary-list {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.btn-secondary-list:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

.btn-danger-list {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.btn-danger-list:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* Responsive List View */
@media (max-width: 1024px) {
    .data-list-content, .style-list-content {
        gap: 2rem;
    }
    
    .data-list-actions, .style-list-actions {
        margin-left: 1rem;
        gap: 0.5rem;
    }
    
    .btn-list {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .data-list-item, .style-list-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem 1.5rem;
        gap: 1.25rem;
    }
    
    .data-list-content, .style-list-content {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .data-list-icon, .style-list-icon {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .data-list-main, .style-list-main {
        width: 100%;
    }
    
    .data-list-meta, .style-list-meta {
        width: 100%;
        justify-content: flex-start;
        gap: 0.5rem;
    }
    
    .data-list-actions, .style-list-actions {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .btn-list {
        flex: 1;
        text-align: center;
        min-width: 120px;
    }
    
    .meta-description {
        max-width: none;
    }
    
    .project-badge-small {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .data-list-item, .style-list-item {
        padding: 1rem;
    }
    
    .data-list, .styles-list {
        margin: 0 -0.5rem;
        border-radius: 8px;
    }
    
    .btn-list {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Professional Data Explorer Controls */
.content-header {
    background: white;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.header-title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.header-title-section h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
}

.data-count-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.count-label {
    opacity: 0.9;
    font-size: 0.8rem;
}

.header-controls-pro {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}

/* Advanced Search Container */
.search-container-pro {
    flex: 1;
    min-width: 300px;
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.search-input-wrapper input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 2.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

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

.search-input-wrapper .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: #718096;
}

.search-clear {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: #e2e8f0;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    color: #718096;
    transition: all 0.2s ease;
}

.search-clear:hover {
    background: #cbd5e0;
    color: #4a5568;
}

.search-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 0.85rem;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

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

.filter-select:hover {
    border-color: #cbd5e0;
}

/* Sort Controls */
.sort-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f7fafc;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.sort-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #4a5568;
    white-space: nowrap;
}

.sort-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    font-size: 0.85rem;
    color: #4a5568;
    cursor: pointer;
    min-width: 120px;
}

.sort-direction {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.sort-direction:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
}

.sort-direction.asc .sort-arrow {
    transform: rotate(180deg);
}

.sort-arrow {
    font-size: 1.1rem;
    color: #667eea;
    transition: transform 0.2s ease;
}

/* Action Controls */
.action-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.view-controls {
    display: flex;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.view-btn {
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #718096;
    font-size: 1rem;
}

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

.view-btn:hover:not(.active) {
    background: #e2e8f0;
    color: #4a5568;
}

/* Responsive Professional Controls */
@media (max-width: 1200px) {
    .header-controls-pro {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .search-container-pro {
        width: 100%;
    }
    
    .sort-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .action-controls {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .content-header {
        padding: 1rem 1.5rem;
    }
    
    .header-title-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .search-filters {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .sort-controls {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .action-controls {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}

/* Enhanced Card Layout for Grid View */
@media (min-width: 769px) {
    .data-list-content, .style-list-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .data-list-icon, .style-list-icon {
        align-self: center;
        margin-bottom: 1rem;
        font-size: 2.5rem;
        width: 60px;
        height: 60px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
    }

    .data-list-main, .style-list-main {
        text-align: center;
        margin-bottom: 1rem;
    }

    .data-list-name, .style-list-name {
        font-size: 1.1rem;
        font-weight: 600;
        color: #2d3748;
        margin-bottom: 0.5rem;
        text-align: center;
    }

    .data-list-project, .style-list-project {
        justify-content: center;
        margin-bottom: 1rem;
    }

    .data-list-meta, .style-list-meta {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .meta-tag {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
        text-align: center;
    }

    .data-list-actions, .style-list-actions {
        display: flex;
        gap: 0.5rem;
        justify-content: center;
        border-top: 1px solid #e9ecef;
        padding-top: 1rem;
        margin-top: auto;
    }

    .btn-list {
        flex: 1;
        min-width: 70px;
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        text-align: center;
    }
}

/* Enhanced Grid responsive adjustments */
@media (min-width: 1400px) {
    .data-list, .styles-list {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 1200px) {
    .data-list, .styles-list {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 900px) {
    .data-list, .styles-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .data-list, .styles-list {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .data-list-item, .style-list-item {
        flex-direction: row;
        align-items: center;
        padding: 1rem;
    }
    
    .data-list-icon, .style-list-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-bottom: 0;
        margin-right: 1rem;
        flex-shrink: 0;
    }
}

/* Upload Cancel Button Styling */
.btn-danger {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%) !important;
    color: white !important;
    border: none !important;
    transition: all 0.2s ease !important;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c53030 0%, #9c2626 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(197, 48, 48, 0.4) !important;
}

.btn-danger:disabled {
    background: #cbd5e0 !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Modal Scrolling Fix */
.modal {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    max-height: 90vh;
    overflow-y: auto;
    width: 100%;
    max-width: 600px;
    margin: auto;
}

.modal-body {
    max-height: calc(90vh - 200px);
    overflow-y: auto;
    padding: 1.5rem;
}

/* Ensure upload button is always visible */
.modal-footer {
    position: sticky;
    bottom: 0;
    background: white;
    border-top: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
    margin-top: auto;
}
