@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

/* Reset and Base Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "DM Sans", sans-serif; 
    background-color: #f8fafc;
    color: #1a202c;
    line-height: 1.6;
}

/* App Container */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: linear-gradient(135deg, #0f488a 0%, #009bde 100%);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 1000;
}

.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid #ffffff1a;
    display: flex;
    gap: 10px;
    align-items: center;
    min-height: 90px;
    background-color: white;
    border-right: 1px solid #b2b2b270;
}

.sidebar-header .logo {
    height: 35px;
}

.sidebar-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.sidebar-nav ul {
    list-style: none;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    background-color: rgba(255, 255, 255, 0.15);
    border-left-color: #ffffff;
}

.nav-item i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.nav-item span {
    font-weight: 500;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.logout-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: 500;
    font-family: "DM Sans", sans-serif;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.logout-btn i {
    margin-right: 0.5rem;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Progress Bar */
.progress-container {
    background: white;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    min-height: 90px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0f488a 0%, #009bde 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 16.67%;
}

.progress-text {
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

/* Content Area */
.content-area {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

/* Step Content */
.step-content {
    display: none;
    /* max-width: 800px; */
    margin: 0 auto;
}

.step-content.active {
    display: block;
}

.step-header {
    text-align: center;
    margin-bottom: 3rem;
}

.step-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
}

.step-header p {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Form Styles */
.form-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-transform: capitalize;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #0f488a;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Platform Selection */
.platform-selection {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.platform-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.platform-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.platform-card:hover {
    border-color: #0f488a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.platform-card.selected {
    border-color: #0f488a;
    background: linear-gradient(90deg, #0f488a 0%, #009bde 100%);
    color: white;
}

.platform-card img {
    height: 60px;
    margin-bottom: 1rem;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.platform-card.selected img {
    filter: grayscale(0%);
}

.platform-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.platform-card p {
    color: #6b7280;
    font-size: 0.875rem;
}

.platform-card.selected p {
    color: rgba(255, 255, 255, 0.8);
}

.version-selection {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.version-selection h3 {
    margin-bottom: 1rem;
    color: #374151;
    font-weight: 600;
}

select#versionSelect {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff url('data:image/svg+xml;utf8,<svg fill="none" stroke="gray" stroke-width="2" viewBox="0 0 24 24" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><path d="M6 9l6 6 6-6"/></svg>') no-repeat right 1rem center/1.2em;
    cursor: pointer;
    border: 1.5px solid #e2e8f0;
    border-radius: 5px;
    font-size: 16px;
    font-family: "DM Sans", sans-serif;
    transition: border-color 0.2s;
    width: 100%;
    padding: 10px;
    outline-color: #d1d5db;
    outline: thin; 
}
select#versionSelect:focus {
    border-color: #0f488a;
    outline: none;
}

.dependencies {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.dependencies h4 {
    margin-bottom: 1rem;
    color: #374151;
    font-weight: 600;
}

.dependency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.dependency-item {
    display: flex;
    gap: 5px;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.dependency-item img{
    width: 50px;
}

.dependency-item .label {
    font-weight: 500;
    color: #374151;
}

.dependency-item .value {
    font-size: 14px;
    font-weight: 400;
    color: #000000;
}

/* Styling Sections */
.styling-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.styling-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.styling-section h3 {
    margin-bottom: 1.5rem;
    color: #374151;
    font-weight: 600;
    font-size: 1.25rem;
}

.theme-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.theme-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-card:hover {
    border-color: #0f488a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.theme-card.selected {
    border-color: #0f488a;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.theme-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.theme-card h4 {
    padding: 1rem;
    margin: 0;
    font-weight: 600;
    color: #374151;
}

.theme-card p {
    padding: 0 1rem 1rem;
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
}

.color-pickers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.color-group {
    display: flex;
    flex-direction: column;
}

.color-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

/* Color pickers in Color Scheme section */
.color-group input[type="color"] {
    width: 100%;
    height: 50px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-group input[type="color"]:focus {
    border-color: #0f488a;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.color-group small {
    margin-top: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.color-group input[type="color"]::-webkit-color-swatch {
    border-radius: 50px;
}
.color-group input[type="color"]::-moz-color-swatch {
    border-radius: 50px;
}
.color-group input[type="color"]::color-swatch {
    border-radius: 50px;
}

.preview-btn {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #0f488a 0%, #009bde 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-family: "DM Sans", sans-serif;
}

.preview-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* File Upload */
.logo-uploads {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.upload-group {
    display: flex;
    flex-direction: column;
}

.upload-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.upload-area:hover {
    border-color: #0f488a;
    background: #f0f4ff;
}

.upload-area i {
    font-size: 2rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.upload-area span {
    color: #6b7280;
    font-weight: 500;
}

.image-preview {
    margin-top: 1rem;
    max-width: 200px;
    max-height: 100px;
    border-radius: 8px;
    overflow: hidden;
    display: none;
}

.image-preview img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Font Selection */
.font-selection {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.font-search {
    position: relative;
}

.font-search input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
}

.font-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.font-result {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.font-result:hover {
    background-color: #f3f4f6;
}

.font-option {
    display: flex;
    align-items: center;
}

.font-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
}

.font-option input[type="checkbox"] {
    margin-right: 0.5rem;
    width: auto;
}

.selected-font {
    background: #f0f4ff;
    border: 1px solid #0f488a;
    border-radius: 8px;
    padding: 1rem;
}

.selected-font h4 {
    margin: 0;
    color: #374151;
    font-weight: 600;
}

/* Modules Grid */

/* --- Modules Step New Layout --- */

.modules-layout {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.modules-filter-col {
    width: 220px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 1.5rem 1rem;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
    height: fit-content;
}

.modules-filter-col h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #0f488a;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 0.75rem;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.filter-checkbox input[type="checkbox"] {
    accent-color: #0f488a;
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
}

.modules-main-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
    width: 100%;
}

.modules-search-bar {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    margin-bottom: 0.5rem;
    gap: 10px;
}

.modules-search-bar input[type="text"] {
    border: none;
    outline: none;
    font-size: 1rem;
    flex: 1;
    background: transparent;
    color: #1a202c;
    padding: 0.5rem 0;
    font-family: "DM Sans", sans-serif;
    text-transform: capitalize;
}

.modules-search-bar i {
    color: #b2b2b2;
    font-size: 1.1rem;
    margin-left: 0.5rem;
}

/* Modules grid tweaks for new layout */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 8px;
}

/* Custom scrollbar for modules grid */
.modules-grid::-webkit-scrollbar {
    width: 8px;
}
.modules-grid::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 6px;
}
.modules-grid::-webkit-scrollbar-thumb:hover {
    background: #b2b2b2;
}

.module-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 2px solid transparent;
    cursor: pointer;
    transition: border 0.2s, box-shadow 0.2s, background 0.2s;
    padding: 1.25rem 1rem;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.module-card.selected {
    border: 2px solid #0f488a;
    background: #eaf3fa;
    box-shadow: 0 4px 16px rgba(15,72,138,0.08);
}

.module-card:hover {
    border: 2px solid #009bde;
    background: #f3fafd;
}

.module-card img {
    width: 150px;
    object-fit: contain;
    margin-bottom: 15px;
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.module-header h4 {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.module-card p {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 14px;
}

.module-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.module-meta span {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}


.license-required {
    background: #fef3c7;
    color: #92400e;
}

.free {
    background: #d1fae5;
    color: #065f46;
}

.category {
    background: #d8eaff;
    color: #0f488a;
}

/* Checkbox and Radio Styles */
.checkbox-container,
.radio-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.checkbox-container input[type="checkbox"],
.radio-container input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark,
.radio-mark {
    height: 20px;
    width: 20px;
    background-color: white;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    margin-right: 0.75rem;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radio-mark {
    border-radius: 50%;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #0f488a;
    border-color: #0f488a;
}

.radio-container input:checked ~ .radio-mark {
    background-color: #0f488a;
    border-color: #0f488a;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.radio-mark:after {
    content: "";
    position: absolute;
    display: none;
    left: 4px;
    top: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.checkbox-container input:checked ~ .checkmark:after,
.radio-container input:checked ~ .radio-mark:after {
    display: block;
}

/* Sample Data */
.sample-data-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.sample-data-option {
    margin-bottom: 1.5rem;
}

.sample-data-option:last-child {
    margin-bottom: 0;
}

.option-content h4 {
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 600;
}

.option-content p {
    color: #6b7280;
    line-height: 1.5;
}

.tip-box {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.tip-box i {
    color: #0ea5e9;
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.tip-content h5 {
    margin-bottom: 0.5rem;
    color: #0c4a6e;
    font-weight: 600;
}

.tip-content p {
    color: #0369a1;
    line-height: 1.5;
    margin: 0;
}

/* Summary */
.summary-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.summary-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.summary-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.summary-section h3 {
    margin-bottom: 1rem;
    color: #374151;
    font-weight: 600;
    font-size: 1.125rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item .label {
    font-weight: 500;
    color: #374151;
}

.summary-item .value {
    color: #0f488a;
    font-weight: 600;
}

.color-swatch {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    margin-right: 0.5rem;
    border: 1px solid #e2e8f0;
}

.modules-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.module-tag {
    background: #d8eaff;
    color: #0f488a;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.no-modules {
    color: #9ca3af;
    font-style: italic;
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: white;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.1);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-family: "DM Sans", sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, #0f488a 0%, #009bde 100%);
    color: white;
    
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Modal Styles */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
    margin: 0;
    color: #374151;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.modal-body {
    padding: 0;
}

.preview-tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
}

.tab-btn {
    flex: 1;
    padding: 1rem 2rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: #0f488a;
    border-bottom-color: #0f488a;
}

.tab-btn:hover {
    background: #f9fafb;
}

.preview-content {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.preview-frame {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.preview-header {
    background: #f8fafc;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.preview-logo img {
    height: 40px;
}

.preview-nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #0f488a;
}

.preview-main {
    padding: 2rem;
}

.preview-hero {
    text-align: center;
    margin-bottom: 2rem;
}

.preview-hero h2 {
    font-size: 2rem;
    color: #374151;
    margin-bottom: 1rem;
}

.preview-hero p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.preview-btn {
    background: #0f488a;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
}

.preview-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.preview-product {
    text-align: center;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.preview-product img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.preview-product h4 {
    margin-bottom: 0.5rem;
    color: #374151;
}

.price {
    color: #0f488a;
    font-weight: 600;
    font-size: 1.125rem;
}

/* Mobile Preview */
.mobile-header {
    background: #f8fafc;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-logo img {
    height: 30px;
}

.mobile-menu-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #ffffff;
    cursor: pointer;
}

.mobile-main {
    padding: 1rem;
}

.mobile-hero {
    text-align: center;
    margin-bottom: 1.5rem;
}

.mobile-hero h3 {
    font-size: 1.5rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

.mobile-hero p {
    color: #6b7280;
    margin-bottom: 1rem;
}

.mobile-btn {
    background: #0f488a;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
}

.mobile-products {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-product {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.mobile-product img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.mobile-product h4 {
    margin-bottom: 0.25rem;
    color: #374151;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }
    
    .main-content {
        margin-left: 240px;
    }
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .platform-options {
        grid-template-columns: 1fr;
    }
    
    .theme-options {
        grid-template-columns: 1fr;
    }
    
    .color-pickers {
        grid-template-columns: 1fr;
    }
    
    .logo-uploads {
        grid-template-columns: 1fr;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
    }
    
    .navigation-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .preview-tabs {
        flex-direction: column;
        font-family: "DM Sans", sans-serif;
    }
    
    .tab-btn {
        border-bottom: none;
        border-right: 2px solid transparent;
        font-family: "DM Sans", sans-serif;
    }
    
    .tab-btn.active {
        border-right-color: #0f488a;
        border-bottom-color: transparent;
    }
}

@media (max-width: 480px) {
    .content-area {
        padding: 1rem;
    }
    
    .step-header h1 {
        font-size: 2rem;
    }
    
    .form-section,
    .platform-selection,
    .styling-section,
    .sample-data-section,
    .summary-content {
        padding: 1.5rem;
    }
    
    .modal-header,
    .modal-body {
        padding: 1rem;
    }
    
    .preview-content {
        padding: 1rem;
    }

} 

/* Login Overlay Styles */
.login-overlay {
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #0f488a 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    animation: loginFadeIn 0.7s;
}

@keyframes loginFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.login-form {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.18), 0 1.5px 8px rgba(118, 75, 162, 0.10);
    padding: 2.5rem 2rem 2rem 2rem;
    min-width: 340px;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    border: 1.5px solid #e0e7ff;
    animation: loginFormPop 0.7s cubic-bezier(.23,1.01,.32,1);
}

@keyframes loginFormPop {
    0% { transform: scale(0.95) translateY(30px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.login-header {
    text-align: center;
    margin-bottom: 1rem;
}

.login-logo {
    height: 50px;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 2px 8px #764ba233);
}

.login-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f488a;
    letter-spacing: 0.5px;
}

.login-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.login-group label {
    font-weight: 500;
    color: #374151;
    font-size: 0.98rem;
    margin-bottom: 0.15rem;
}

.login-group input {
    padding: 0.85rem 1.1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1.08rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f8fafc;
    margin-bottom: 0.1rem;
    box-shadow: 0 1px 2px #e0e7ff44;
}

.login-group input:focus {
    border-color: #764ba2;
    outline: none;
    box-shadow: 0 0 0 2px #764ba233;
}

.login-btn {
    width: 100%;
    margin-top: 0.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 1rem 0;
    border-radius: 10px;
    background: linear-gradient(90deg, #0f488a 0%, #009bde 100%);
    color: #fff;
    box-shadow: 0 2px 8px #0f488a22;
    border: none;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    letter-spacing: 0.5px;
    justify-content: center;
}

.login-btn:hover, .login-btn:focus {
    background: linear-gradient(90deg, #0f488a 0%, #009bde 100%);
    box-shadow: 0 4px 16px #764ba244;
    transform: translateY(-2px) scale(1.02);
}

.login-error {
    color: #ef4444;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
    font-size: 0.98rem;
    width: 100%;
    text-align: center;
    display: block;
    box-shadow: 0 1px 4px #fecaca33;
}

/* Responsive for modules step */
@media (max-width: 900px) {
    .modules-layout {
        flex-direction: column;
        gap: 1.5rem;
    }
    .modules-filter-col {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 1rem 2rem;
        padding: 1rem 0.5rem;
        margin-bottom: 1rem;
    }
    .filter-checkbox {
        min-width: 120px;
    }
}


