.builder-progress {
    height: 3px;
    background: linear-gradient(90deg, #111, #666);
    width: 0%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    transition: width .6s ease;
}

.section-pill {
    background: #f8f9fa;
    padding: 12px 14px;
    border-radius: 14px;
    cursor: pointer;
    transition: .25s;
    position: relative;
}

.section-pill:hover {
    background: #eef1f4;
}

.section-pill.active {
    background: linear-gradient(135deg, #111, #333);
    color: #fff;
}

.section-pill.active .badge {
    background: #fff !important;
    color: #000 !important;
}

.pill-actions {
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: .2s;
}

.section-pill:hover .pill-actions {
    opacity: 1;
}

.preview-canvas {
    background: linear-gradient(180deg, #f9fafb, #eef1f5);
    overflow: hidden;
}

.preview-header {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, .7);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
}

.preview-ring {
    position: absolute;
    inset: 20px;
    border-radius: 30px;
    border: 1px dashed #ccc;
    pointer-events: none;
}

.setting-block {
    margin-bottom: 18px;
}

.setting-block label {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 6px;
}

.setting-block input,
.setting-block textarea {
    width: 100%;
    border: none;
    background: #f1f3f5;
    padding: 10px 12px;
    border-radius: 12px;
}

.setting-block input:focus,
.setting-block textarea:focus {
    outline: none;
    background: #e9ecef;
}

/* ===== ADD SECTION MODAL ===== */

.section-modal {
    background: linear-gradient(180deg, #ffffff, #f7f8fa);
}

.section-card {
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 20px;
    height: 100%;
    cursor: pointer;
    transition: .3s;
    background: #fff;
    position: relative;
}

.section-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
    border-color: #111;
}

.section-card.active {
    background: linear-gradient(135deg, #111, #333);
    color: #fff;
}

.section-card.active p {
    color: #d1d5db;
}

.section-card h6 {
    font-weight: 600;
    margin-bottom: 4px;
}

.section-card p {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
}

.icon-box {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    background: #f1f3f5;
    font-size: 18px;
}

.section-card.active .icon-box {
    background: #fff;
    color: #000;
}

.preview-iframe-wrapper {
    height: 80vh;
    background: #f1f3f5;
    border-radius: 24px;
    overflow: hidden;
}

#livePreviewFrame {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

/* Login page */
.auth-left {
    position: relative;
    height: 100vh;
    /* Full height */
    overflow: visible;
    /* Shapes can go outside */
}

/* Image: fills the column completely */
.auth-left-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 0;
    z-index: 1;
}

/* Decorative shapes */
.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.2;
    z-index: 2;
    animation: float 6s ease-in-out infinite alternate;
}

/* Individual shapes */
.shape-1 {
    width: 250px;
    height: 250px;
    background: rgba(0, 123, 255, 0.4);
    top: 5%;
    left: -60px;
}

.shape-2 {
    width: 180px;
    height: 180px;
    background: rgba(102, 16, 242, 0.4);
    bottom: 10%;
    right: -50px;
}

.shape-3 {
    width: 120px;
    height: 120px;
    background: rgba(255, 193, 7, 0.4);
    top: 40%;
    right: -40px;
}

.shape-4 {
    width: 100px;
    height: 100px;
    background: rgba(220, 53, 69, 0.4);
    bottom: 30%;
    left: -30px;
}

.shape-5 {
    width: 150px;
    height: 150px;
    background: rgba(40, 167, 69, 0.3);
    top: 60%;
    left: 20%;
}

.shape-6 {
    width: 200px;
    height: 200px;
    background: rgba(255, 193, 7, 0.3);
    top: 20%;
    left: 50%;
}

/* Floating animation */
@keyframes float {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) translateX(10px) rotate(10deg);
    }

    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
}

/* Right Column: Form Card */
.card-body {
    background: #fff;
    border-radius: 16px;
    padding: 3rem 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments */
@media(max-width: 1400px) {
    .auth-left {
        display: block;
        /* Show image on smaller screens */
        height: 50vh;
        /* Reduce height for mobile */
        margin-bottom: 2rem;
        /* Space below for form */
    }

    .shape-1,
    .shape-2,
    .shape-3,
    .shape-4,
    .shape-5,
    .shape-6 {
        transform: scale(0.6);
        /* Make shapes smaller */
    }
}

@media(max-width: 768px) {
    .auth-left {
        height: 40vh;
        /* Smaller height for phones */
    }

    .shape-1,
    .shape-2,
    .shape-3,
    .shape-4,
    .shape-5,
    .shape-6 {
        transform: scale(0.4);
        /* Tiny shapes for small screens */
    }
}

/* DESKTOP ONLY */
@media (min-width: 992px) {

    html[data-sidebar-size="sm"] .app-menu {
        width: 70px;
    }

    html[data-sidebar-size="sm"] .main-content {
        margin-left: 70px;
    }

    html[data-sidebar-size="lg"] .main-content {
        margin-left: 250px;
    }
}

/* MOBILE FIX */
@media (max-width: 991px) {
    .main-content {
        margin-left: 0 !important;
    }
}

/* FIX CONTENT CUT ISSUE (TABLET WIDTH) */
@media (min-width: 768px) and (max-width: 991.98px) {

    html[data-sidebar-size="sm"] .main-content {
        margin-left: 70px !important;
        width: calc(100% - 70px) !important;
    }

    html[data-sidebar-size="lg"] .main-content {
        margin-left: 250px !important;
        width: calc(100% - 250px) !important;
    }
}

/* Dashboard Cards Rounded */
.stat-pro {
    border-radius: 12px !important;
    transition: 0.3s ease;
}

.stat-pro:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* TEMPLATE DETAILS MODAL CSS */
.modern-modal {
    border-radius: 14px;
    overflow: hidden;
}

.modern-header {
    background: linear-gradient(135deg, #9091e9, #7670ec);
    color: white;
    border: none;
    padding: 18px 22px;
}

.modal-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 18px;
}

.modern-body {
    background: #f9fafb;
    padding: 28px;
}

.create-page-box {
    background: white;
    padding: 22px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

.modern-input {
    border-radius: 8px;
    height: 44px;
}

.btn-modern-primary {
    background: #6366f1;
    color: white;
    border: none;
    height: 44px;
    border-radius: 8px;
    font-weight: 500;
}

.btn-modern-primary:hover {
    background: #4f46e5;
}

.pages-container {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.modern-table thead {
    background: #f3f4f6;
    font-weight: 600;
}

.modern-table td {
    padding: 14px;
}

.modern-footer {
    background: #fafafa;
    border-top: 1px solid #eee;
}

/* Website settings tab CSS */
.custom-tabs {
    border-bottom: none;
    gap: 10px;
}

.custom-tabs .nav-link {

    border: none;
    background: #f5f7fb;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 500;
    color: #6c757d;
    transition: all .25s ease;
    display: flex;
    align-items: center;

}

.custom-tabs .nav-link i {
    font-size: 16px;
}

.custom-tabs .nav-link:hover {

    background: #eef2ff;
    color: #4f46e5;

}

.custom-tabs .nav-link.active {

    background: #4f46e5;
    color: #fff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);

}

.truncate {
    max-width: 150px;
    /* adjust width as needed */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.truncate:hover {
    cursor: pointer;
}
