        :root {
            --primary-color: #01a479;
            --primary-light: #7ad06d;
            --secondary-color: #075e54;
            --dark-color: #1a1a2e;
            --light-color: #f8f9fa;
            --success-color: #4cc9f0;
            --warning-color: #f8961e;
            --danger-color: #f94144;
            --border-radius: 12px;
            --box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            --glass-bg: rgba(255, 255, 255, 0.9);
            --glass-border: 1px solid rgba(255, 255, 255, 0.2);
            --transition: all 0.3s ease;
        }

        [data-bs-theme="dark"] {
            --primary-color: #01a479;
            --primary-light: #7ad06d;
            --secondary-color: #075e54;
            --dark-color: #f8f9fa;
            --light-color: #1a1a2e;
            --glass-bg: rgba(26, 26, 46, 0.9);
            --glass-border: 1px solid rgba(255, 255, 255, 0.1);
        }

        body {
            background-color: var(--light-color);
            color: var(--dark-color);
            transition: var(--transition);
            min-height: 100vh;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        .glass-card {
            background: var(--glass-bg);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: var(--glass-border);
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            transition: var(--transition);
        }

        .nav-pills {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
            max-width: 300px;
            margin: auto;
        }

        .nav-pills .nav-link {
            width: 140px;
            height: 60px;
            background-color: #f1f1f1;
            color: var(--dark-color);
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            border-radius: 10px;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
            text-decoration: none;
        }

        .nav-pills .nav-link.active {
            background-color: var(--primary-color);
            color: #fff;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }

        .nav-pills .nav-link:hover {
            background-color: var(--primary-color);
            color: #fff;
        }

        .form-control, .form-select {
            border-radius: var(--border-radius);
            border: 1px solid rgba(0, 0, 0, 0.1);
            background-color: rgba(255, 255, 255, 0.8);
            transition: var(--transition);
        }

        [data-bs-theme="dark"] .form-control, 
        [data-bs-theme="dark"] .form-select {
            background-color: rgba(26, 26, 46, 0.8);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #f8f9fa;
        }

        .btn-primary {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
            border-radius: var(--border-radius);
            transition: var(--transition);
        }

        .btn-primary:hover {
            background-color: var(--secondary-color);
            border-color: var(--secondary-color);
        }

        .btn-outline-primary {
            color: var(--primary-color);
            border-color: var(--primary-color);
            border-radius: var(--border-radius);
            transition: var(--transition);
        }

        .btn-outline-primary:hover {
            background-color: var(--primary-color);
            color: white;
        }

        .history-item {
            cursor: pointer;
            transition: transform 0.2s;
            border-radius: var(--border-radius);
            margin-bottom: 0.5rem;
        }

        .history-item:hover {
            transform: translateY(-3px);
            background-color: rgba(var(--primary-color), 0.1);
        }

        .qr-container {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            min-height: 400px;
            background-color: white;
            border-radius: var(--border-radius);
            padding: 1rem;
            margin-bottom: 1rem;
            transition: var(--transition);
        }

        [data-bs-theme="dark"] .qr-container {
            background-color: #2a2a3a;
        }

        .qr-frame {
            padding: 15px;
            background-color: white;
            display: inline-block;
        }

        .qr-text-label {
            margin: 10px 0;
            text-align: center;
            max-width: 100%;
            word-break: break-word;
            background-color: transparent;
            border-radius: 0;
            padding: 0;
        }

        .qr-text-label.vertical {
            writing-mode: vertical-rl;
            text-orientation: mixed;
            max-height: 300px;
            margin: 0 10px;
            padding: 10px 5px;
        }

        .color-preview {
            width: 25px;
            height: 25px;
            border-radius: 50%;
            display: inline-block;
            margin-left: 10px;
            border: 1px solid #ddd;
        }

        .tab-content {
            padding: 1rem 0;
        }

        .shape-preview {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto;
        }

        .frame-preview {
            width: 80px;
            height: 80px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto;
            border: 1px solid #ddd;
            border-radius: 8px;
            overflow: hidden;
        }

        .history-thumbnail {
            width: 60px;
            height: 60px;
            object-fit: cover;
            border-radius: 8px;
        }

        #logoPreview {
            max-width: 100px;
            max-height: 100px;
            margin-top: 10px;
            display: none;
            border-radius: 8px;
        }
        input{
            padding: 15px !important;
            border: solid 4px #eee;
            border-radius:15px;
        }
        .form-select{
            padding:15px;
        }
        .theme-toggle {
            cursor: pointer;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            display: none;
        }

        .loader {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(255, 255, 255, 0.8);
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: var(--border-radius);
            z-index: 10;
            display: none;
        }

        .loader-spinner {
            width: 3rem;
            height: 3rem;
            border: 5px solid rgba(var(--primary-color), 0.3);
            border-radius: 50%;
            border-top-color: var(--primary-color);
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        .category-header {
            font-weight: 600;
            color: var(--primary-color);
            margin-top: 1rem;
            margin-bottom: 0.5rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid var(--primary-color);
        }

        .save-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            z-index: 5;
        }

        .download-dropdown .dropdown-menu {
            min-width: 120px;
        }

        .download-dropdown .dropdown-item {
            min-width: 120px;
            padding: 0.5rem 1rem;
        }

        .section-title {
            font-weight: 600;
            color: var(--primary-color);
            margin-bottom: 1rem;
        }

        .input-group-text {
            border-radius: var(--border-radius) 0 0 var(--border-radius);
        }

        .form-floating label {
            color: #6c757d;
        }

        .qr-type-icon {
            font-size: 1.2rem;
            margin-right: 8px;
            color: var(--primary-color);
        }
        [data-bs-theme="dark"] .nav-link{
            background:rgb(26 26 46); 
        }
        [data-bs-theme="dark"] input{
            background:rgb(26 26 46); 
            border:2px solid #272737
        }
        .settings-icon {
            font-size: 1rem;
            margin-right: 6px;
        }

        .nav-tabs .nav-link {
            color: var(--dark-color);
        }

        .nav-tabs .nav-link.active {
            color: var(--primary-color);
            font-weight: 600;
        }

        .qr-code-container {
            position: relative;
        }

        .badge-category {
            background-color: var(--primary-light);
            color: white;
            font-weight: 500;
            margin-right: 5px;
        }
        
        /* Flipping loader styles */
        .flipping-loader {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 50px;
            height: 50px;
            perspective: 800px;
            z-index: 10;
            display: none;
        }
        
        .flipping-loader-inner {
            position: absolute;
            width: 100%;
            height: 100%;
            animation: flip 1.5s infinite ease-in-out;
            transform-style: preserve-3d;
        }
        
        .flipping-loader-front,
        .flipping-loader-back {
            position: absolute;
            width: 100%;
            height: 100%;
            backface-visibility: hidden;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: var(--primary-color);
            color: white;
        }
        
        .flipping-loader-back {
            transform: rotateY(180deg);
            background-color: var(--secondary-color);
        }
        
        @keyframes flip {
            0% { transform: rotateY(0deg); }
            50% { transform: rotateY(180deg); }
            100% { transform: rotateY(360deg); }
        }
        
        /* Frame style preview */
        .frame-style-preview {
            width: 100%;
            height: 60px;
            margin-top: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            overflow: hidden;
            background-color: white;
        }
        
        /* Hidden sections */
        .section-content {
            display: none;
        }
        
        .section-content.active {
            display: block;
        }
        
        /* Section selector dropdown */
        .section-selector {
            margin-bottom: 15px;
        }

        /* Text label background */
        .text-label-bg {
            padding: 5px 10px;
            border-radius: 5px;
        }

        /* Logo preview container */
        .logo-preview-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-top: 10px;
        }

        /* Download buttons row */
        .download-buttons {
            display: flex;
            gap: 10px;
        }

        .download-buttons .btn {
            min-width: 120px;
        }

        /* Sticky sidebar */
        @media (min-width: 992px) {
            .col-lg-4 {
                position: sticky;
                top: 20px;
                height: calc(100vh - 40px);
                overflow-y: auto;
            }
        }

        /* Error message styles */
        .error-message {
            color: var(--danger-color);
            font-size: 0.875rem;
            margin-top: 0.25rem;
            display: none;
        }

        .is-invalid {
            border-color: var(--danger-color) !important;
        }

        /* Batch generation styles */
        .batch-item {
            margin-bottom: 15px;
            padding: 15px;
            background: rgba(var(--primary-color), 0.05);
            border-radius: var(--border-radius);
        }

        .batch-actions {
            margin-top: 10px;
        }

        /* Template styles */
        .template-card {
            cursor: pointer;
            transition: all 0.3s ease;
            margin-bottom: 15px;
        }

        .template-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        /* Toast notification */
        .toast-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 1100;
        }
