         /* Reset dan gaya asas */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background: linear-gradient(135deg, #0f1b33 0%, #1a2d4d 100%);
            color: #fff;
            min-height: 100vh;
            padding: 20px;
        }

        .dashboard-container {
            max-width: 1600px;
            margin: 0 auto;
        }

        /* Header */
        .dashboard-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            padding-bottom: 15px;
            border-bottom: 2px solid rgba(255, 255, 255, 0.1);
        }

        h1 {
            font-size: 2.8rem;
            background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        }

        .current-time {
            font-size: 1.2rem;
            color: #a0c8ff;
            background: rgba(0, 0, 0, 0.3);
            padding: 10px 20px;
            border-radius: 30px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        /* Grid untuk saluran */
        .channels-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 25px;
            margin-bottom: 40px;
        }

        /* Kad saluran */
        .channel-card {
            background: linear-gradient(145deg, #1e3a5c 0%, #152642 100%);
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.05);
            position: relative;
        }

        .channel-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
        }

        .channel-card.active {
            border: 2px solid #4facfe;
            box-shadow: 0 0 20px rgba(79, 172, 254, 0.4);
        }

        .channel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 18px 20px;
            background: rgba(0, 0, 0, 0.3);
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .channel-title {
            font-size: 1.5rem;
            font-weight: 600;
            color: #fff;
        }

        .channel-controls {
            display: flex;
            gap: 10px;
        }

        .toggle-btn {
            background: linear-gradient(90deg, #4CAF50 0%, #45a049 100%);
            color: white;
            border: none;
            padding: 8px 18px;
            border-radius: 20px;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        }

        .toggle-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
        }

        .toggle-btn.off {
            background: linear-gradient(90deg, #f44336 0%, #d32f2f 100%);
        }

        .edit-btn {
            background: linear-gradient(90deg, #ff9800 0%, #f57c00 100%);
            color: white;
            border: none;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
        }

        .edit-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        }

        /* Pratonton saluran */
        .channel-preview {
            position: relative;
            height: 220px;
            overflow: hidden;
        }

        .channel-preview img.poster {
            width: 100%;
            height: 100%;
            object-fit: cover;
            cursor: pointer;
            transition: all 0.3s;
        }

        .channel-preview .live-frame {
            width: 100%;
            height: 100%;
            display: none;
        }

        .channel-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
            padding: 15px;
            color: white;
        }

        .program-title {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 5px;
        }

        .program-time {
            font-size: 0.9rem;
            color: #a0c8ff;
        }

        /* Maklumat saluran */
        .channel-info {
            padding: 20px;
        }

        .channel-description {
            font-size: 0.95rem;
            line-height: 1.5;
            color: #c0d4ff;
            margin-bottom: 15px;
        }

        .channel-meta {
            display: flex;
            justify-content: space-between;
            font-size: 0.85rem;
            color: #8aa8e6;
        }

        .status {
            font-weight: bold;
            color: #f44336;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .status.on {
            color: #4CAF50;
        }

        .status::before {
            content: "";
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: currentColor;
        }

        /* Kawalan dashboard */
        .dashboard-controls {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-bottom: 40px;
        }

        .control-btn {
            background: linear-gradient(90deg, #2196F3 0%, #0b7dda 100%);
            color: white;
            border: none;
            padding: 14px 30px;
            border-radius: 30px;
            cursor: pointer;
            font-size: 1.1rem;
            font-weight: bold;
            transition: all 0.3s;
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
        }

        .control-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        }

        .control-btn.secondary {
            background: linear-gradient(90deg, #6c757d 0%, #5a6268 100%);
        }

        /* Panel Edit EPG */
        .epg-panel {
            background: linear-gradient(145deg, #1e3a5c 0%, #152642 100%);
            border-radius: 16px;
            padding: 25px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            margin-top: 30px;
            border: 1px solid rgba(255, 255, 255, 0.05);
            display: none;
        }

        .epg-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .epg-title {
            font-size: 1.8rem;
            font-weight: 600;
            color: #fff;
        }

        .epg-close {
            background: #f44336;
            color: white;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            transition: all 0.3s;
        }

        .epg-close:hover {
            transform: scale(1.1);
            background: #d32f2f;
        }

        .epg-form {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 25px;
        }

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

        .form-group.full-width {
            grid-column: 1 / -1;
        }

        .form-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #a0c8ff;
        }

        .form-input, .form-textarea {
            width: 100%;
            padding: 12px 15px;
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(0, 0, 0, 0.3);
            color: white;
            font-size: 1rem;
            transition: all 0.3s;
        }

        .form-input:focus, .form-textarea:focus {
            outline: none;
            border-color: #4facfe;
            box-shadow: 0 0 0 2px rgba(79, 172, 254, 0.2);
        }

        .form-textarea {
            min-height: 120px;
            resize: vertical;
        }

        .epg-actions {
            grid-column: 1 / -1;
            display: flex;
            justify-content: flex-end;
            gap: 15px;
            margin-top: 20px;
        }

        .action-btn {
            padding: 12px 25px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s;
        }

        .save-btn {
            background: linear-gradient(90deg, #4CAF50 0%, #45a049 100%);
            color: white;
        }

        .update-btn {
            background: linear-gradient(90deg, #2196F3 0%, #0b7dda 100%);
            color: white;
        }

        .delete-btn {
            background: linear-gradient(90deg, #f44336 0%, #d32f2f 100%);
            color: white;
        }

        .action-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }

        /* Responsif */
        @media (max-width: 1200px) {
            .channels-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 768px) {
            .channels-grid {
                grid-template-columns: 1fr;
            }
            
            .dashboard-header {
                flex-direction: column;
                gap: 15px;
                text-align: center;
            }
            
            .epg-form {
                grid-template-columns: 1fr;
            }
            
            .epg-actions {
                justify-content: center;
            }
        }