        :root {
            --primary-color: #2c7da0;
            --secondary-color: #a9d6e5;
            --accent-color: #01497c;
            --light-gray: #f8f9fa;
            --border-color: #eaeaea;
            --text-color: #333;
            --text-muted: #6c757d;
            --success-color: #28a745;
            --warning-color: #ffc107;
            --danger-color: #dc3545;
        }
    
        .page-header {
            background: linear-gradient(135deg, rgba(169, 214, 229, 0.4) 0%, rgba(44, 125, 160, 0.4) 100%);
            padding: 1.5rem 0;
            margin-bottom: 2rem;
            border-bottom: 1px solid rgba(44, 125, 160, 0.2);
            position: relative;
            overflow: hidden;   color: var(--text-muted);
        }
     
        .breadcrumb {
            background-color: transparent;
            padding: 0.5rem 0;
            margin-bottom: 0.5rem;
        }
        
        .breadcrumb-item a {
            color: var(--text-muted);
            text-decoration: none;
        }
        
        .breadcrumb-item.active {
            color: var(--text-color);
        }
       
        .vsm-summary {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
            margin: 2rem 0;
        }
        
        .vsm-item {
            background: white;
            border-radius: 8px;
            padding: 1.5rem;
            border: 1px solid var(--border-color);
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        
        .vsm-item h4 {
            font-size: 1rem;
            color: var(--text-muted);
            margin-bottom: 0.5rem;
        }
        
        .vsm-item .value {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-color);
        }
        
        .vsm-item .detail {
            font-size: 0.9rem;
            color: var(--text-muted);
            margin-top: 0.5rem;
        }
        
        /* Chart Container */
        .chart-container {
            position: relative;
            height: 400px;
            width: 100%;
            margin: 2rem 0; 
        }
        
        
        /* VSM Canvas */
        .vsm-canvas-container {
            width: 100%;
            height: 600px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            overflow: auto;
            background-color: #f9f9f9;
            margin: 2rem 0;
            position: relative;
        }
        
        .vsm-canvas {
            width: 2000px;
            height: 1500px;
            position: relative;
            background-image: 
                linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px);
            background-size: 20px 20px;
        }
        
        /* Process Box */
        .process-box {
            position: absolute;
            width: 180px;
            min-height: 120px;
            background: white;
            border: 2px solid var(--primary-color);
            border-radius: 8px;
            padding: 10px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            cursor: move;
            z-index: 10;
            user-select: none;
        }
        
        .process-box.selected {
            box-shadow: 0 0 0 3px rgba(44, 125, 160, 0.5);
        }
        
        .process-header {
            font-weight: 600;
            color: var(--primary-color);
            margin-bottom: 8px;
            border-bottom: 1px solid #eee;
            padding-bottom: 5px;
        }
        
        .process-data {
            font-size: 0.85rem;
        }
        
        .process-data div {
            margin-bottom: 3px;
        }
        
        /* Inventory Triangle */
        .inventory-triangle {
            position: absolute;
            width: 0;
            height: 0;
            border-left: 20px solid transparent;
            border-right: 20px solid transparent;
            border-bottom: 35px solid #8B4513;
            z-index: 5;
            cursor: move;
        }
        
        /* Arrow */
        .flow-arrow {
            position: absolute;
            height: 2px;
            background-color: #333;
            z-index: 5;
        }
        
        .flow-arrow::after {
            content: '';
            position: absolute;
            right: -8px;
            top: -4px;
            width: 0;
            height: 0;
            border-left: 8px solid #333;
            border-top: 5px solid transparent;
            border-bottom: 5px solid transparent;
        }
        
        /* Information Arrow */
        .info-arrow {
            position: absolute;
            height: 2px;
            background-color: #333;
            z-index: 5;
            border-style: dashed;
        }
        
        /* Timeline Element */
        .timeline-element {
            position: absolute;
            width: 400px;
            height: 80px;
            background: white;
            border: 1px solid #ccc;
            border-radius: 6px;
            padding: 10px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            cursor: move;
            z-index: 10;
            user-select: none;
        }
        
        .timeline-element .timeline-header {
            font-weight: 600;
            color: var(--primary-color);
            margin-bottom: 8px;
            border-bottom: 1px solid #eee;
            padding-bottom: 5px;
        }
        
        .timeline-element .timeline-bar {
            height: 20px;
            background: #f0f0f0;
            border-radius: 4px;
            position: relative;
            overflow: hidden;
        }
        
        .timeline-element .value-add-time {
            height: 100%;
            background: var(--success-color);
            position: absolute;
            left: 0;
            top: 0;
        }
        
        .timeline-element .non-value-add-time {
            height: 100%;
            background: var(--danger-color);
            position: absolute;
            top: 0;
        }
        
        .timeline-element .timeline-labels {
            display: flex;
            justify-content: space-between;
            margin-top: 5px;
            font-size: 0.75rem;
        }
        
        /* VSM Controls */
        .vsm-controls {
            display: flex;
            gap: 10px;
            margin-bottom: 1rem;
            flex-wrap: wrap;
        }
        
        .vsm-control-btn {
            background: white;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            padding: 0.5rem 1rem;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .vsm-control-btn:hover {
            background-color: var(--light-gray);
            color: var(--primary-color);
        }
        
        /* VSM Toolbox */
        .vsm-toolbox {
            background: white;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 1rem;
            margin-bottom: 1.5rem;
        }
        
        .toolbox-title {
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--primary-color);
        }
        
        .toolbox-items {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            gap: 10px;
        }
        
        .toolbox-item {
            background: var(--light-gray);
            border: 1px solid var(--border-color);
            border-radius: 6px;
            padding: 10px;
            text-align: center;
            cursor: grab;
            transition: all 0.3s;
        }
        
        .toolbox-item:hover {
            background: #e9ecef;
            transform: translateY(-2px);
        }
        
        .toolbox-item i {
            font-size: 1.5rem;
            margin-bottom: 5px;
            color: var(--primary-color);
        }
        
        .toolbox-item span {
            font-size: 0.85rem;
            display: block;
        }
        
        /* VSM Table */
        .vsm-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
        }
        
        .vsm-table th, .vsm-table td {
            padding: 0.75rem;
            text-align: left;
            border-bottom: 1px solid var(--border-color);
        }
        
        .vsm-table th {
            background-color: var(--light-gray);
            font-weight: 600;
        }
        
        .vsm-table tr:hover {
            background-color: rgba(44, 125, 160, 0.05);
        }
        
        /* Timeline */
        .timeline-container {
            width: 100%;
            height: 120px;
            margin: 2rem 0;
            position: relative;
            overflow-x: auto;
        }
        
        .timeline {
            height: 60px;
            position: relative;
            background: #f0f0f0;
            border-radius: 4px;
        }
        
        .timeline-bar {
            height: 30px;
            background: var(--primary-color);
            position: absolute;
            top: 15px;
            border-radius: 4px;
        }
        
        .timeline-label {
            position: absolute;
            top: 50px;
            font-size: 0.8rem;
            text-align: center;
        }
        
        /* Responsive Adjustments */
        @media (max-width: 768px) {
            .tool-card {
                padding: 1.5rem;
            }
            
            .vsm-summary {
                grid-template-columns: 1fr;
            }
            
            .vsm-canvas-container {
                height: 400px;
            }
        }
        
        /* Toggle switch for calculation modes */
        .calculation-modes {
            display: flex;
            background-color: var(--light-gray);
            border-radius: 6px;
            padding: 4px;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
        }
        
        .mode-btn {
            flex: 1;
            text-align: center;
            padding: 0.75rem;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 600;
            min-width: 120px;
            margin: 2px;
        }
        
        .mode-btn.active {
            background-color: var(--primary-color);
            color: white;
        }
        
        /* Toast notifications */
        .toast-container {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 1050;
        }
        
        /* Action buttons */
        .action-btn {
            background-color: white;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            padding: 0.5rem 1rem;
            margin-left: 0.5rem;
            transition: all 0.3s;
            color: var(--text-color);
        }
        
        .action-btn:hover {
            background-color: var(--light-gray);
            color: var(--primary-color);
        }
        
        
        /* Data Box */
        .data-box {
            position: absolute;
            width: 160px;
            min-height: 100px;
            background: white;
            border: 1px dashed #666;
            border-radius: 6px;
            padding: 10px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            cursor: move;
            z-index: 10;
            font-size: 0.85rem;
        }
        
        /* Supplier/Customer Box */
        .entity-box {
            position: absolute;
            width: 120px;
            min-height: 80px;
            background: white;
            border: 2px solid #666;
            border-radius: 6px;
            padding: 10px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            cursor: move;
            z-index: 10;
            text-align: center;
        }
        
        .entity-box i {
            font-size: 1.5rem;
            margin-bottom: 5px;
            color: #666;
        }
        
        /* Connection Points */
        .connection-point {
            position: absolute;
            width: 12px;
            height: 12px;
            background-color: white;
            border: 2px solid var(--primary-color);
            border-radius: 50%;
            z-index: 20;
            cursor: crosshair;
        }
        
        .connection-point:hover {
            background-color: var(--primary-color);
        }
        
        /* Selected Element */
        .vsm-element.selected {
            box-shadow: 0 0 0 3px rgba(44, 125, 160, 0.5);
        }
        
        /* Delete Button */
        .delete-btn {
            position: absolute;
            top: -8px;
            right: -8px;
            width: 20px;
            height: 20px;
            background-color: var(--danger-color);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            cursor: pointer;
            z-index: 30;
            opacity: 0;
            transition: opacity 0.3s;
        }
        
        .vsm-element:hover .delete-btn {
            opacity: 1;
        }
        
        /* Drawing Mode */
        .drawing-mode {
            cursor: crosshair;
        }
    