        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 20px;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            background: white;
            border-radius: 15px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            overflow: hidden;
        }

        .header {
            background: linear-gradient(135deg, #2c3e50, #34495e);
            color: white;
            padding: 20px 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .header h1 {
            font-size: 24px;
            font-weight: 600;
        }

        .nav-tabs {
            display: flex;
            background: #f8f9fa;
            border-bottom: 2px solid #e9ecef;
        }

        .nav-tab {
            padding: 15px 25px;
            background: none;
            border: none;
            cursor: pointer;
            font-size: 16px;
            font-weight: 500;
            color: #666;
            transition: all 0.3s ease;
            border-bottom: 3px solid transparent;
        }

        .nav-tab.active {
            background: white;
            color: #2c3e50;
            border-bottom-color: #3498db;
        }

        .nav-tab:hover {
            background: #e9ecef;
        }

        .nav-tab.admin-only {
            /* Same style as regular tabs */
        }

        .tab-content {
            display: none;
            padding: 30px;
            min-height: 600px;
        }

        .tab-content.active {
            display: block;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #333;
        }

        .form-group input, .form-group select, .form-group textarea {
            width: 100%;
            padding: 12px;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            font-size: 14px;
            transition: border-color 0.3s ease;
        }

        .form-group input:focus, .form-group select:focus, .form-group textarea:focus {
            outline: none;
            border-color: #3498db;
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
        }

        .btn {
            padding: 12px 24px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.3s ease;
            margin-right: 10px;
            margin-bottom: 10px;
        }

        .btn-primary {
            background: #3498db;
            color: white;
        }

        .btn-primary:hover {
            background: #2980b9;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
        }

        .btn-success {
            background: #27ae60;
            color: white;
        }

        .btn-success:hover {
            background: #229954;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
        }

        .btn-warning {
            background: #f39c12;
            color: white;
        }

        .btn-warning:hover {
            background: #e67e22;
        }

        .btn-danger {
            background: #e74c3c;
            color: white;
        }

        .btn-danger:hover {
            background: #c0392b;
        }

        .card {
            background: white;
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
            border: 1px solid #e9ecef;
        }

        .card h3 {
            margin-bottom: 15px;
            color: #2c3e50;
            font-size: 18px;
        }

        .grid {
            display: grid;
            gap: 20px;
        }

        .grid-2 {
            grid-template-columns: 1fr 1fr;
        }

        .grid-3 {
            grid-template-columns: 1fr 1fr 1fr;
        }

        .sub-assembly {
            border: 2px solid #e9ecef;
            border-radius: 10px;
            padding: 15px;
            margin-bottom: 15px;
            background: #f8f9fa;
        }

        .sub-assembly.completed {
            border-color: #27ae60;
            background: #d5f4e6;
        }

        .sub-assembly.quality-checked {
            border-color: #3498db;
            background: #dbeafe;
        }

        .status-badge {
            display: inline-block;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
        }

        .status-pending {
            background: #fff3cd;
            color: #856404;
        }

        .status-assembly {
            background: #d1ecf1;
            color: #0c5460;
        }

        .status-quality {
            background: #d4edda;
            color: #155724;
        }

        .status-shipped {
            background: #f8d7da;
            color: #721c24;
        }

        .machine-list {
            display: grid;
            gap: 15px;
        }

        .machine-item {
            background: white;
            border: 2px solid #e9ecef;
            border-radius: 10px;
            padding: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .machine-item:hover {
            border-color: #3498db;
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.1);
        }

        .machine-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }

        .progress-bar {
            width: 100%;
            height: 8px;
            background: #e9ecef;
            border-radius: 4px;
            overflow: hidden;
            margin-top: 10px;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #3498db, #27ae60);
            transition: width 0.3s ease;
        }

        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 1000;
        }

        .modal-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: white;
            border-radius: 15px;
            padding: 30px;
            max-width: 600px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
        }

        .close {
            float: right;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
            color: #aaa;
            margin-top: -10px;
        }

        .close:hover {
            color: #000;
        }

        .admin-section {
            background: #f8f9fa;
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .engineer-list, .instruction-list {
            display: grid;
            gap: 10px;
            margin-top: 15px;
        }

        .engineer-item, .instruction-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 15px;
            background: white;
            border-radius: 8px;
            border: 1px solid #e9ecef;
        }

        .parameter-input {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr;
            gap: 10px;
            align-items: end;
            margin-bottom: 10px;
        }

        .signature-pad {
            border: 2px dashed #e9ecef;
            border-radius: 8px;
            padding: 20px;
            text-align: center;
            margin-top: 10px;
            background: #f8f9fa;
            cursor: pointer;
        }

        .signed {
            background: #d5f4e6;
            border-color: #27ae60;
        }

        .access-denied {
            text-align: center;
            padding: 60px 40px;
            background: linear-gradient(135deg, #ff7675, #d63031);
            color: white;
            border-radius: 15px;
            margin: 50px auto;
            max-width: 500px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        }

        .access-denied h2 {
            font-size: 32px;
            margin-bottom: 20px;
        }

        .access-denied p {
            font-size: 16px;
            opacity: 0.9;
            margin-bottom: 30px;
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .flex-between {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .inline-grid-2 {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        /* Tablet */
        @media (max-width: 768px) {
            body {
                padding: 0;
            }

            .container {
                margin: 0;
                border-radius: 0;
                box-shadow: none;
            }

            .header {
                flex-direction: column;
                gap: 10px;
                padding: 15px;
                text-align: center;
            }

            .header h1 {
                font-size: 18px;
            }

            .header-actions {
                display: flex;
                align-items: center;
                gap: 8px;
                flex-wrap: wrap;
                justify-content: center;
            }

            .grid-2, .grid-3 {
                grid-template-columns: 1fr;
            }

            .parameter-input {
                grid-template-columns: 1fr;
            }

            .tab-content {
                padding: 15px;
                min-height: auto;
            }

            .nav-tabs {
                flex-wrap: wrap;
            }

            .nav-tab {
                padding: 10px 12px;
                font-size: 13px;
                min-width: 0;
                flex: 1 1 auto;
                text-align: center;
            }

            .card {
                padding: 15px;
            }

            .card h3 {
                font-size: 16px;
            }

            .btn {
                padding: 10px 16px;
                font-size: 13px;
                margin-right: 5px;
                margin-bottom: 5px;
            }

            .engineer-item, .instruction-item {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }

            .machine-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
            }

            .machine-item {
                padding: 15px;
            }

            .modal-content {
                width: 95%;
                padding: 20px;
                max-height: 90vh;
            }

            .sub-assembly {
                padding: 12px;
            }

            .flex-between {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }

            .inline-grid-2 {
                grid-template-columns: 1fr;
            }
        }

        /* Small phone */
        @media (max-width: 480px) {
            .header h1 {
                font-size: 15px;
            }

            .header-actions {
                width: 100%;
                justify-content: center;
            }

            .header-actions .btn {
                padding: 5px 10px;
                font-size: 11px;
            }

            .nav-tab {
                padding: 8px 6px;
                font-size: 11px;
                flex: 1 1 30%;
            }

            .tab-content {
                padding: 10px;
            }

            .card {
                padding: 12px;
            }

            .form-group input, .form-group select, .form-group textarea {
                padding: 10px;
                font-size: 14px;
            }

            .modal-content {
                padding: 15px;
                border-radius: 10px;
            }
        }
