        :root {
            --primary-color: #00bbf0;
            --secondary-color: #00B4D8;
        }

        body {
            margin: 0;
            padding: 0;
            font-family: 'Tajawal', sans-serif;
            direction: rtl;
            background-color: #f8f9fa;
        }

        #header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background: #fff;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            padding: 10px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 3px solid var(--primary-color);
        }

        .logo {
            display: flex;
            justify-items: space-between;
            gap: 10px;
        }

        .logo h2 {
            font-size: calc(1.375rem + 1.5vw);
            font-weight: 700;
            line-height: 1.2;
        }

        .preview-devices ul {
            list-style: none;
            display: flex;
            gap: 10px;
            padding: 0;
            margin: 0;
        }

        .preview-devices li {
            cursor: pointer;
            padding: 8px 12px;
            border-radius: 5px;
            background: #f1f1f1;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .preview-devices li:hover {
            background: #e1e1e1;
        }

        .preview-devices li.active {
            background: var(--primary-color);
            /* This will apply the primary color */
            color: #fff;
            /* Text and icon color will be white */
        }

        /* Add this if you want the icon color to also change explicitly */
        .preview-devices li.active i {
            color: #fff;
        }

        .current-template {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .current-template a {
            color: #555;
            text-decoration: none;
            transition: color 0.3s;
        }

        .current-template a:hover {
            color: var(--primary-color);
        }

        .navigate {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .navigate a {
            color: #555;
            text-decoration: none;
            transition: color 0.3s;
        }

        .navigate a:hover {
            color: var(--primary-color);
        }

        .navigate .download {
            background: var(--primary-color);
            color: #fff;
            padding: 8px 15px;
            border-radius: 5px;
            font-weight: 500;
        }

        .navigate .download:hover {
            background: var(--secondary-color);
            color: #fff;
        }

        .iframe-container {
            margin-top: 70px;
            padding: 20px;
            background: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            max-width: 95%;
            margin-left: auto;
            margin-right: auto;
        }

        iframe {
            width: 100%;
            height: calc(100vh - 120px);
            border: none;
            border-radius: 5px;
            box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
            transition: all 0.3s;

        }

        .device-frame {
            margin: 0 auto;
            position: relative;
            /* background: #f1f1f1; */
            /* border-radius: 20px; */
            /* padding: 15px; */
        }

        .device-frame.desktop {
            max-width: 100%;
            padding: 0;
            background: transparent;
            box-shadow: none;
        }

        .device-frame.tablet {
            max-width: 768px;
        }

        .device-frame.mobile {
            max-width: 385px;
        }

        .device-frame .device-screen {
            overflow: hidden;
            border-radius: 10px;
        }

        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.8);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
        }

        .spinner {
            width: 50px;
            height: 50px;
            border: 5px solid #f3f3f3;
            border-top: 5px solid var(--primary-color);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        @media (max-width: 768px) {
            #header {
                flex-wrap: wrap;
                padding: 10px;
            }

            .logo {
                order: 1;
                width: 100%;
                justify-content: center;
                margin-bottom: 10px;
            }

            .preview-devices {
                order: 2;
                margin: 0 auto;
            }

            .current-template {
                order: 3;
                margin: 10px auto;
            }

            .navigate {
                order: 4;
                margin: 0 auto;
            }

            .iframe-container {
                padding: 10px;
                margin-top: 120px;
            }
        }