/**
 * Diagnostic Romandie Dashboard - Styles CSS
 * ===========================================
 */

/* Base Font */
* {
    font-family: 'Plus Jakarta Sans', sans-serif;
    box-sizing: border-box;
}

/* Glass Effects */
.glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
}

/* Sidebar */
.sidebar {
    transition: all 0.3s ease;
}

.sidebar-item {
    transition: all 0.2s ease;
}

.sidebar-item:hover {
    background: rgba(5, 150, 105, 0.1);
    transform: translateX(4px);
}

.sidebar-item.active {
    background: rgba(5, 150, 105, 0.15);
    border-right: 3px solid #059669;
}

/* Cards */
.tool-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
}

/* Upload Zone */
.upload-zone {
    transition: all 0.3s ease;
    border: 2px dashed #cbd5e1;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: #059669;
    background: rgba(5, 150, 105, 0.05);
}

.upload-zone.dragover {
    transform: scale(1.02);
}

/* Canvas Editor */
.canvas-container {
    position: relative;
    overflow: hidden;
    background: #f8fafc;
}

.canvas-layer {
    position: absolute;
    top: 0;
    left: 0;
}

/* Room Polygon */
.room-polygon {
    fill: rgba(5, 150, 105, 0.2);
    stroke: #059669;
    stroke-width: 2;
    cursor: pointer;
    transition: fill 0.2s ease;
}

.room-polygon:hover {
    fill: rgba(5, 150, 105, 0.3);
}

.room-polygon.selected {
    fill: rgba(5, 150, 105, 0.4);
    stroke-width: 3;
}

/* Control Point */
.control-point {
    fill: white;
    stroke: #059669;
    stroke-width: 2;
    cursor: move;
    transition: transform 0.1s ease;
}

.control-point:hover {
    transform: scale(1.3);
}

/* Toolbar */
.toolbar {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.toolbar-btn {
    transition: all 0.2s ease;
}

.toolbar-btn:hover {
    background: #f1f5f9;
}

.toolbar-btn.active {
    background: #ecfdf5;
    color: #059669;
}

/* Progress Steps */
.step-indicator {
    transition: all 0.3s ease;
}

.step-indicator.completed {
    background: #059669;
    color: white;
}

.step-indicator.current {
    background: #059669;
    color: white;
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.2);
}

.step-indicator.pending {
    background: #e2e8f0;
    color: #64748b;
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

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

.animate-spin-slow {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Modal */
.modal-overlay {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Toast */
.toast {
    animation: toastIn 0.3s ease-out;
}

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

/* Room Label */
.room-label {
    font-size: 12px;
    font-weight: 600;
    fill: #1e293b;
    pointer-events: none;
}

/* Zoom Controls */
.zoom-control {
    transition: all 0.2s ease;
}

.zoom-control:hover {
    background: #f1f5f9;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        position: fixed;
        left: -280px;
        z-index: 50;
    }
    
    .sidebar.open {
        left: 0;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .canvas-container {
        background: white;
    }
}
