        /* Main Content */
        .main-content {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
        }

        /* Dashboard Cards Grid */
        .cards-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 15px;
            margin-bottom: 25px;
        }

        .card {
            border-radius: 8px;
            padding: 15px;
            color: white;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
            position: relative;
            min-height: 90px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .card-icon {
            position: absolute;
            right: 10px;
            top: 10px;
            font-size: 24px;
            opacity: 0.3;
        }

        .card-number {
            font-size: 28px;
            font-weight: bold;
            margin: 5px 0;
        }

        .card-label {
            font-size: 11px;
            opacity: 0.9;
            text-transform: uppercase;
        }

        /* Card Colors */
        .card-red {
            background: linear-gradient(135deg, #f44336, #e91e63);
        }

        .card-orange {
            background: linear-gradient(135deg, #ff9800, #ff5722);
        }

        .card-green {
            background: linear-gradient(135deg, #4caf50, #8bc34a);
        }

        .card-pink {
            background: linear-gradient(135deg, #e91e63, #f06292);
        }

        .card-purple {
            background: linear-gradient(135deg, #9c27b0, #673ab7);
        }

        .card-amber {
            background: linear-gradient(135deg, #ffc107, #ffb300);
        }

        .card-blue {
            background: linear-gradient(135deg, #2196f3, #03a9f4);
        }

        /* Dashboard Sections */
        .dashboard-row {
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: 20px;
            margin-bottom: 20px;
        }

        .dashboard-section {
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            overflow: hidden;
        }

        .section-header {
            background: #dc3545;
            color: white;
            padding: 10px 15px;
            font-size: 12px;
            font-weight: bold;
        }

        .section-content {
            padding: 15px;
        }

        /* Chart Container */
        .chart-container {
            display: flex;
            justify-content: space-around;
            align-items: center;
            padding: 20px;
        }

        .bar-chart {
            display: flex;
            align-items: flex-end;
            gap: 15px;
            height: 120px;
        }

        .bar-group {
            text-align: center;
        }

        .bar {
            width: 40px;
            background: #2196f3;
            margin: 0 2px;
            display: inline-block;
            vertical-align: bottom;
        }

        .bar.green {
            background: #4caf50;
        }

        .bar.blue {
            background: #2196f3;
        }

        .bar-label {
            font-size: 10px;
            color: #666;
            margin-top: 5px;
        }

        /* Pie Charts */
        .pie-charts {
            display: flex;
            justify-content: space-around;
            align-items: center;
            padding: 20px;
        }

        .pie-chart {
            text-align: center;
        }

        .pie {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            position: relative;
            margin: 0 auto 10px;
        }

        .pie-label {
            font-size: 11px;
            color: #666;
        }

        /* OEE Summary Tabs */
        .tabs {
            display: flex;
            gap: 5px;
            padding: 0 15px;
            background: #f5f5f5;
        }

        .tab {
            padding: 8px 15px;
            background: #e0e0e0;
            border: none;
            font-size: 11px;
            cursor: pointer;
            border-radius: 4px 4px 0 0;
        }

        .tab.active {
            background: white;
            font-weight: bold;
        }

        /* Table Styles */
        .data-table {
            width: 100%;
            font-size: 11px;
            border-collapse: collapse;
        }

        .data-table th {
            background: #f5f5f5;
            padding: 8px;
            text-align: left;
            font-weight: normal;
            color: #666;
            border-bottom: 1px solid #e0e0e0;
        }

        .data-table td {
            padding: 8px;
            border-bottom: 1px solid #f0f0f0;
        }

        .status-bar {
            height: 20px;
            background: #e0e0e0;
            border-radius: 3px;
            overflow: hidden;
            position: relative;
        }

        .status-fill {
            height: 100%;
            position: absolute;
            left: 0;
            top: 0;
        }

        .status-green {
            background: #4caf50;
        }

        .status-yellow {
            background: #ffc107;
        }

        .status-red {
            background: #f44336;
        }

        /* Badge Styles */
        .badge {
            display: inline-block;
            padding: 2px 8px;
            border-radius: 3px;
            font-size: 10px;
            font-weight: bold;
            color: white;
        }

        .badge-success {
            background: #4caf50;
        }

        .badge-warning {
            background: #ff9800;
        }

        .badge-danger {
            background: #f44336;
        }

        .badge-info {
            background: #2196f3;
        }

        /* Mobile Menu Toggle */
        .menu-toggle {
            display: none;
            background: none;
            border: none;
            color: white;
            font-size: 20px;
            cursor: pointer;
        }

        /* Responsive Design */
        @media (max-width: 1200px) {
            .dashboard-row {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 768px) {
            .menu-toggle {
                display: block;
            }

            .sidebar {
                position: fixed;
                left: -200px;
                top: 50px;
                height: calc(100vh - 50px);
                z-index: 1000;
                transition: left 0.3s;
            }

            .sidebar.active {
                left: 0;
            }

            .main-content {
                padding: 15px;
            }

            .cards-grid {
                grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
                gap: 10px;
            }

            .card {
                min-height: 80px;
            }

            .card-number {
                font-size: 24px;
            }

            .header {
                padding: 8px 10px;
            }

            .company-select,
            .date-input {
                display: none;
            }

            .pie-charts {
                flex-direction: column;
                gap: 20px;
            }

            .bar-chart {
                gap: 10px;
            }

            .bar {
                width: 30px;
            }
        }

        @media (max-width: 480px) {
            .cards-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .data-table {
                font-size: 10px;
            }

            .data-table th,
            .data-table td {
                padding: 5px;
            }
        }

        @media (max-width: 380px) {
            .cards-grid {
                grid-template-columns: repeat(1, 1fr);
            }

            .data-table {
                font-size: 10px;
            }

            .data-table th,
            .data-table td {
                padding: 5px;
            }
        }

        /* Overlay for mobile */
        .overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 999;
        }

        .overlay.active {
            display: block;
        }

