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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: #F4F8FB;
    color: #102A43;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* NAVBAR */
.navbar {
    background: #102A43;
    padding: 20px 0;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 27px;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.logo span {
    color: #75B6DF;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: #D3E2ED;
    text-decoration: none;
    font-size: 14px;
}

.nav-menu a.active {
    color: white;
}

.nav-button {
    background: #75B6DF;
    color: #102A43;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}


/* HAMBURGER MENU */
.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid #75B6DF;
    color: white;
    font-size: 25px;
    width: 42px;
    height: 42px;
    border-radius: 6px;
    cursor: pointer;
}

/* NAVBAR RESPONSIVE */
@media (max-width: 768px) {

    .navbar {
        position: relative;
        z-index: 100;
    }

    .nav-content {
        position: relative;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: calc(100% + 15px);
        left: 0;
        width: 100%;
        background: #102A43;
        flex-direction: column;
        gap: 0;
        padding: 10px 20px;
        border: 1px solid #28658A;
        border-radius: 8px;
        box-shadow: 0 12px 25px rgba(0,0,0,0.2);
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-menu a {
        padding: 15px 5px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-menu a:last-child {
        border-bottom: none;
    }

    .nav-button {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

}


/* HERO */
.hero {
    padding: 90px 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero-label {
    color: #28658A;
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: 700;
}

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    line-height: 1.2;
    margin: 22px 0;
}

.hero-text h1 span {
    color: #28658A;
}

.hero-text p {
    color: #60788C;
    line-height: 1.8;
    max-width: 470px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 14px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.btn-primary {
    background: #102A43;
    color: white;
}

.btn-secondary {
    border: 1px solid #102A43;
    color: #102A43;
}

.image-card {
    background: white;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(16,42,67,0.12);
}

.image-card img {
    width: 100%;
    height: 390px;
    object-fit: cover;
    border-radius: 8px;
}

.image-caption {
    padding: 15px;
}

.image-caption span {
    font-size: 10px;
    letter-spacing: 2px;
    color: #75B6DF;
}

.image-caption h3 {
    font-family: 'Playfair Display', serif;
    margin-top: 5px;
}

/* TEMPLATE */
.templates {
    padding: 90px 0;
    background: white;
}

.section-heading {
    text-align: center;
    margin-bottom: 45px;
}

.section-heading span,
.about span {
    color: #28658A;
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: 700;
}

.section-heading h2,
.about h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    margin: 15px 0;
}

.section-heading p,
.about p {
    color: #60788C;
    line-height: 1.8;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.template-card {
    border: 1px solid #E4EDF3;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
}

.template-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(16,42,67,0.10);
}

.template-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* LIVE PREVIEW IFRAME DI KATALOG */
.template-iframe-wrap {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #F4F8FB;
}

.template-iframe-wrap iframe {
    width: 1200px;
    height: 850px;
    border: none;
    transform: scale(0.35);
    transform-origin: top left;
    pointer-events: none;
}

.template-info {
    padding: 20px;
}

.template-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 21px;
}

.template-info p {
    color: #60788C;
    font-size: 13px;
    margin: 8px 0 15px;
}

.template-info strong {
    color: #28658A;
}

/* ABOUT */
.about {
    padding: 90px 0;
    text-align: center;
}

/* FOOTER */
footer {
    background: #102A43;
    color: white;
    padding: 50px 0;
    text-align: center;
}

footer h2 {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
}

footer p {
    color: #B7D8EF;
    margin: 12px 0 25px;
}

footer small {
    color: #91AFC4;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .nav-menu {
        display: none;
    }

    .nav-button {
        padding: 10px 12px;
        font-size: 11px;
    }

    .hero {
        padding: 55px 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .hero-text h1 {
        font-size: 38px;
    }

    .image-card img {
        height: 280px;
    }

    .template-grid {
        grid-template-columns: 1fr;
    }

    .section-heading h2,
    .about h2 {
        font-size: 29px;
    }

}

/* TEMPLATE CATEGORY */
.template-category {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 2px;
    color: #28658A;
    font-weight: 700;
    margin-bottom: 10px;
}

/* TEMPLATE ACTIONS */
.template-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.template-actions button {
    flex: 1;
    padding: 11px 8px;
    border-radius: 5px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-preview {
    background: white;
    border: 1px solid #102A43;
    color: #102A43;
}

.btn-preview:hover {
    background: #EAF3F9;
}

.btn-order {
    background: #102A43;
    border: 1px solid #102A43;
    color: white;
}

.btn-order:hover {
    background: #28658A;
}


/* PREVIEW MODAL */
.preview-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 20, 35, 0.8);
    z-index: 999;
    padding: 20px;
    align-items: center;
    justify-content: center;
}

.preview-modal.active {
    display: flex;
}

.preview-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    background: white;
    border-radius: 12px;
    padding: 15px;
    animation: modalShow 0.3s ease;
}

.preview-content img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
}

/* TOMBOL TUTUP PREVIEW */
.close-preview {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: #102A43;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 2;
}

/* CATALOG TOOLBAR */
.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

/* SEARCH BOX */
.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 400px;
    background: #F4F8FB;
    border: 1px solid #DCE8EF;
    border-radius: 7px;
    padding: 0 15px;
}

.search-box span {
    font-size: 24px;
    color: #28658A;
}

.search-box input {
    width: 100%;
    padding: 14px 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    color: #102A43;
    font-size: 13px;
}

/* FILTER */
.filter-box {
    display: flex;
    gap: 10px;
}

.filter-box select {
    padding: 13px;
    border: 1px solid #DCE8EF;
    border-radius: 7px;
    background: white;
    color: #102A43;
    font-family: inherit;
    font-size: 12px;
    outline: none;
}

/* RESULT TEXT */
.catalog-result {
    font-size: 12px;
    color: #60788C;
    margin-bottom: 25px;
}

/* HIDDEN TEMPLATE */
.template-card.hidden {
    display: none;
}

/* EMPTY RESULT */
.empty-result {
    display: none;
    text-align: center;
    padding: 50px 15px;
    color: #60788C;
}

.empty-result.show {
    display: block;
}

.empty-result h3 {
    font-family: 'Playfair Display', serif;
    color: #102A43;
    margin-bottom: 10px;
}

/* MOBILE CATALOG */
@media (max-width: 768px) {
    .catalog-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: 100%;
    }

    .filter-box {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .filter-box select {
        width: 100%;
        min-width: 0;
    }
}


.preview-details {
    padding: 20px 10px;
}

.preview-details span {
    font-size: 10px;
    letter-spacing: 2px;
    color: #28658A;
}

.preview-details h2 {
    font-family: 'Playfair Display', serif;
    margin: 12px 0;
    color: #102A43;
}

.preview-details p {
    color: #60788C;
    line-height: 1.7;
    margin-bottom: 15px;
}

.preview-details strong {
    font-size: 20px;
    color: #28658A;
}

/* TOAST NOTIFICATION */
.toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translate(-50%, 100px);
    background: #102A43;
    color: white;
    padding: 14px 22px;
    border-radius: 8px;
    font-size: 13px;
    opacity: 0;
    transition: 0.3s;
    z-index: 1000;
    text-align: center;
    width: max-content;
    max-width: 90%;
}

.toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

/* MODAL ANIMATION */
@keyframes modalShow {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* PREVIEW TEMPLATE FEATURES */
.preview-details h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #102A43;
    margin: 20px 0 12px;
}

.preview-details ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.preview-details li {
    position: relative;
    background: #F4F8FB;
    color: #486581;
    padding: 10px 10px 10px 28px;
    border-radius: 6px;
    font-size: 12px;
}

.preview-details li::before {
    content: "✓";
    position: absolute;
    left: 10px;
    color: #28658A;
    font-weight: 700;
}

@media (max-width: 480px) {
    .preview-details ul {
        grid-template-columns: 1fr;
    }
}


/* =========================
   ORDER MODAL
========================= */

.order-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 20, 35, 0.8);
    z-index: 1001;
    padding: 20px;
    align-items: center;
    justify-content: center;
}

.order-modal.active {
    display: flex;
}

.order-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    background: white;
    border-radius: 12px;
    padding: 30px;
    animation: modalShow 0.3s ease;
}

.close-order {
    position: absolute;
    top: 15px;
    right: 18px;
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: #102A43;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.order-heading {
    margin-bottom: 25px;
}

.order-heading span {
    color: #28658A;
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 700;
}

.order-heading h2 {
    font-family: 'Playfair Display', serif;
    color: #102A43;
    font-size: 27px;
    margin: 12px 0;
}

.order-heading p {
    color: #60788C;
    font-size: 13px;
    line-height: 1.7;
}

#orderForm {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#orderForm label {
    color: #102A43;
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
}

#orderForm input,
#orderForm select,
#orderForm textarea {
    width: 100%;
    padding: 13px;
    border: 1px solid #DCE8EF;
    border-radius: 6px;
    background: #F8FBFD;
    color: #102A43;
    font-family: inherit;
    font-size: 13px;
    outline: none;
}

#orderForm input:focus,
#orderForm select:focus,
#orderForm textarea:focus {
    border-color: #28658A;
}

#orderForm input[readonly] {
    background: #EAF3F9;
    font-weight: 600;
}

#orderForm textarea {
    resize: vertical;
}

.submit-order {
    margin-top: 20px;
    padding: 15px;
    border: none;
    border-radius: 6px;
    background: #102A43;
    color: white;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.submit-order:hover {
    background: #28658A;
}

/* MOBILE ORDER */
@media (max-width: 480px) {
    .order-content {
        padding: 25px 20px;
    }

    .order-heading h2 {
        font-size: 23px;
    }
}

/* ==================================
   ADMIN DASHBOARD
================================== */

.admin-dashboard {
    display: flex;
    min-height: 100vh;
    background: #f3f6fc;
    color: #172033;
}

/* SIDEBAR */

.admin-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: #101b32;
    color: white;
    padding: 30px 20px;
}

.admin-sidebar h2 {
    font-size: 24px;
    margin-bottom: 45px;
}

.admin-sidebar h2 span {
    color: #69baff;
}

.admin-label {
    font-size: 11px;
    color: #8b9bb5;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.admin-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-sidebar nav a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 13px 15px;
    border-radius: 9px;
    transition: 0.3s;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
    background: #243957;
    color: white;
}

/* MAIN CONTENT */

.admin-main {
    flex: 1;
    min-width: 0;
    padding: 35px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 35px;
}

.admin-header h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.admin-header p {
    color: #718096;
}

.admin-profile {
    background: white;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 600;
}

/* STATISTICS */

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(20, 40, 80, 0.05);
}

.stat-card p {
    color: #718096;
    margin-bottom: 15px;
}

.stat-card h2 {
    font-size: 30px;
    color: #172b4d;
}

/* ORDER TABLE */

.admin-table {
    background: white;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(20, 40, 80, 0.05);
}

.admin-table h2 {
    margin-bottom: 15px;
}

.admin-table p {
    color: #718096;
}

/* RESPONSIVE */

@media (max-width: 900px) {

    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 600px) {

    .admin-dashboard {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        padding: 20px;
    }

    .admin-sidebar h2 {
        margin-bottom: 20px;
    }

    .admin-sidebar nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-main {
        padding: 20px;
    }

    .admin-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 18px;
    }

    .stat-card h2 {
        font-size: 24px;
    }

}

/* SEMBUNYIKAN DASHBOARD SECARA DEFAULT */

.admin-dashboard {
    display: none;
}

.admin-dashboard.active {
    display: flex;
}

/* MODAL LOGIN ADMIN */
.admin-login-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(5, 12, 25, 0.8);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.admin-login-modal.active {
    display: flex;
}

.admin-login-box {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    color: #172033;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.admin-login-box h2 {
    margin-bottom: 8px;
}

.admin-login-box p {
    color: #64748b;
    margin-bottom: 22px;
}

.admin-login-box label {
    display: block;
    margin-bottom: 7px;
    font-weight: bold;
}

.admin-login-box input {
    width: 100%;
    padding: 12px;
    margin-bottom: 18px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
}

.admin-login-box button {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.admin-login-box button[type="submit"] {
    background: #2563eb;
    color: white;
}

#closeLogin {
    background: #e2e8f0;
    color: #172033;
}

#loginError {
    color: #dc2626;
    font-size: 14px;
    margin: 0;
}

/* =================================
   TABEL PESANAN ADMIN
================================= */

.admin-table {
    background: #ffffff;
    padding: 24px;
    border-radius: 14px;
    margin-top: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.admin-table h2 {
    color: #172033;
    margin-bottom: 20px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 10px;
}

.admin-table table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th {
    background: #f1f5f9;
    color: #475569;
    padding: 15px;
    font-size: 14px;
}

.admin-table td {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    font-size: 14px;
}

.admin-table select {
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #ffffff;
    color: #172033;
    font-size: 13px;
}

.admin-table td button {
    padding: 9px 13px;
    border: none;
    border-radius: 7px;
    background: #fee2e2;
    color: #dc2626;
    font-weight: bold;
    cursor: pointer;
}

/* TAMPILAN HP */
@media (max-width: 768px) {
    .admin-table {
        padding: 15px;
        margin-top: 18px;
    }

    .admin-table h2 {
        font-size: 18px;
    }

    .table-responsive {
        overflow-x: auto;
    }
}

/* DAFTAR TEMPLATE DI PANEL ADMIN */
.admin-template-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.admin-template-card {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.admin-iframe-preview {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
}

.admin-iframe-preview iframe {
    width: 1200px;
    height: 850px;
    border: none;
    transform: scale(0.24);
    transform-origin: top left;
    pointer-events: none;
}

.admin-template-card-info {
    padding: 16px;
}

.admin-template-card-info .badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    background: #E0F2FE;
    color: #0284C7;
    padding: 4px 8px;
    border-radius: 5px;
    margin-bottom: 8px;
}

.admin-template-card-info h4 {
    font-size: 16px;
    color: #102A43;
    margin-bottom: 5px;
}

.admin-template-card-info p {
    font-size: 14px;
    font-weight: 600;
    color: #28658A;
}

.admin-template-card button {
    margin: 0 16px 16px;
    padding: 10px;
    border: none;
    border-radius: 7px;
    background: #FEE2E2;
    color: #DC2626;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.admin-template-card button:hover {
    background: #FECACA;
}

/* MODAL TAMBAH TEMPLATE */
.template-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.template-modal.active {
    display: flex;
}

.template-modal-content {
    background: white;
    color: #333;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 25px;
    border-radius: 12px;
    position: relative;
}
/* FORM TAMBAH TEMPLATE */

.template-modal-content h2 {
    margin-bottom: 20px;
    color: #102A43;
}

.template-modal-content .form-group {
    margin-bottom: 18px;
}

.template-modal-content label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #102A43;
}

.template-modal-content input,
.template-modal-content select,
.template-modal-content textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #DCE8EF;
    border-radius: 7px;
    background: #F8FBFD;
    font-family: inherit;
    font-size: 14px;
}

.template-modal-content textarea {
    resize: vertical;
}

#saveTemplateButton {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 7px;
    background: #102A43;
    color: white;
    font-weight: 600;
    cursor: pointer;
}
/* TOMBOL CLOSE MODAL TEMPLATE */

#closeTemplateModal {
    position: absolute;
    top: 15px;
    right: 15px;

    width: 35px;
    height: 35px;

    border: none;
    border-radius: 50%;

    background: #F1F5F9;
    color: #64748B;

    font-size: 24px;
    font-weight: bold;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    transition: 0.3s;
}

#closeTemplateModal:hover {
    background: #FEE2E2;
    color: #DC2626;
    transform: rotate(90deg);
}
/* TOMBOL TAMBAH TEMPLATE */

#addTemplateButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 13px 22px;

    background: #102A43;
    color: white;

    border: none;
    border-radius: 8px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
    transition: all 0.3s ease;

    box-shadow: 0 4px 10px rgba(16, 42, 67, 0.15);
    margin-top: 20px;
}

#addTemplateButton:hover {
    background: #1B496D;
    transform: translateY(-2px);

    box-shadow: 0 6px 15px rgba(16, 42, 67, 0.25);
}

#addTemplateButton:active {
    transform: scale(0.97);
}

/* HALAMAN KONFIRMASI PESANAN */

.confirmation-page {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;

    width: 100%;
    min-height: 100vh;
    padding: 50px 20px;

    justify-content: center;
    align-items: center;

    background: #F5F8FC;
    overflow-y: auto;
}

.confirmation-page.active {
    display: flex;
}

.confirmation-card {
    width: 100%;
    max-width: 500px;
    padding: 35px 25px;
    background: white;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(16, 42, 67, 0.08);
}

.confirmation-icon {
    width: 75px;
    height: 75px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: #DCFCE7;
    color: #16A34A;
    font-size: 42px;
    font-weight: bold;
}

.confirmation-card h2 {
    color: #102A43;
    font-size: 24px;
    margin-bottom: 12px;
}

.confirmation-card > p {
    color: #64748B;
    line-height: 1.6;
    margin-bottom: 25px;
}

#confirmationDetails {
    padding: 18px;
    margin-bottom: 25px;
    background: #F8FAFC;
    border-radius: 10px;
    text-align: left;
}

#confirmationDetails p {
    margin-bottom: 10px;
    color: #334155;
    font-size: 14px;
}

#confirmationDetails p:last-child {
    margin-bottom: 0;
}

#backToHomeButton {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: #102A43;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

#backToHomeButton:hover {
    background: #1B496D;
    transform: translateY(-2px);
}
/* MODAL DETAIL PESANAN */
.detail-order-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.detail-order-modal.active {
    display: flex;
}

.detail-order-content {
    position: relative;
    background: white;
    width: 100%;
    max-width: 500px;
    padding: 30px;
    border-radius: 15px;
    color: #1e293b;
}

.detail-order-content h2 {
    margin-bottom: 20px;
}

#closeDetailOrder {
    position: absolute;
    top: 10px;
    right: 15px;
    border: none;
    background: none;
    font-size: 28px;
    cursor: pointer;
}
#btnKembaliWebsite {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

#btnKembaliWebsite:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    transform: translateY(-2px);
}

#btnKembaliWebsite:active {
    transform: scale(0.97);
}

.back-icon {
    font-size: 20px;
    line-height: 1;
}


#btnDetailPesanan {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: #102A43;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 5px;
}

#btnDetailPesanan:hover {
    background: #1B496D;
    transform: translateY(-2px);
}
/* =================================
   KOTAK LINK UNDANGAN
================================= */

.admin-table td input[id^="invitationLink-"] {
    width: 220px;
    padding: 11px 13px;
    margin-bottom: 8px;

    background: #F0F7FC;
    color: #28658A;

    border: 1px solid #C8DFEF;
    border-radius: 8px;

    font-family: inherit;
    font-size: 12px;
    font-weight: 600;

    outline: none;
    transition: 0.3s;
}

.admin-table td input[id^="invitationLink-"]:focus {
    border-color: #28658A;
    box-shadow: 0 0 0 3px rgba(40, 101, 138, 0.12);
}

/* TOMBOL SALIN LINK */

.admin-table td button[onclick^="copyInvitationLink"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 10px 15px;

    background: linear-gradient(135deg, #28658A, #102A43);
    color: white;

    border: none;
    border-radius: 8px;

    font-family: inherit;
    font-size: 12px;
    font-weight: 600;

    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-table td button[onclick^="copyInvitationLink"]:hover {
    background: linear-gradient(135deg, #75B6DF, #28658A);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 101, 138, 0.2);
}

.admin-table td button[onclick^="copyInvitationLink"]:active {
    transform: scale(0.96);
}

/* =================================
   MODAL DETAIL PESANAN
================================= */

#orderDetailModal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(16, 42, 67, 0.65);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#orderDetailModal .modal-content {
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    background: #FFFFFF;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

#orderDetailModal h2 {
    color: #102A43;
    margin-bottom: 25px;
    font-size: 22px;
}

#orderDetailContent p {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 13px 0;
    border-bottom: 1px solid #E5EDF3;
    color: #486581;
    font-size: 14px;
}

#orderDetailContent span {
    color: #102A43;
    font-weight: 600;
    text-align: right;
    overflow-wrap: anywhere;
}

#orderDetailModal .modal-content > button {
    width: 100%;
    margin-top: 25px;
    padding: 13px;
    border: none;
    border-radius: 9px;
    background: #28658A;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

#orderDetailModal .modal-content > button:hover {
    background: #102A43;
}

/* JARAK TOMBOL AKSI PESANAN */

.admin-table td button[onclick^="showOrderDetail"],
.admin-table td button[onclick^="deleteOrder"] {
    margin: 4px;
} 


/* =================================
   EDITOR UNDANGAN - ADMIN BLUE THEME
================================= */

.admin-editor {
    background: #111c30;
    padding: 25px;
    border: 1px solid #263954;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
    color: #ffffff;
}

.admin-editor > h2 {
    color: #ffffff;
    font-size: 25px;
    margin-bottom: 8px;
}

.admin-editor > p {
    color: #9aabc2;
    margin-bottom: 25px;
    line-height: 1.6;
}

.editor-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.editor-content h3 {
    color: #38bdf8;
    font-size: 17px;
    padding: 14px 16px;
    margin: 12px 0 0;
    background: #172943;
    border-left: 4px solid #06b6d4;
    border-radius: 8px;
}

.admin-editor .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
    background: #172943;
    border: 1px solid #293e5b;
    border-radius: 12px;
}

.admin-editor .form-group label {
    color: #d5e5f7;
    font-size: 14px;
    font-weight: 600;
}

.admin-editor .form-group input,
.admin-editor .form-group select,
.admin-editor .form-group textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #344b68;
    border-radius: 9px;
    background: #0b1729;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: 0.2s ease;
}

.admin-editor .form-group input::placeholder,
.admin-editor .form-group textarea::placeholder {
    color: #71849e;
}

.admin-editor .form-group input:focus,
.admin-editor .form-group select:focus,
.admin-editor .form-group textarea:focus {
    border-color: #06b6d4;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.13);
}

.admin-editor .form-group textarea {
    min-height: 110px;
    resize: vertical;
}

.admin-editor .form-group small {
    color: #9aabc2;
    font-size: 12px;
    line-height: 1.5;
}

.admin-editor .form-group code {
    background: #0b1729;
    color: #38bdf8;
    padding: 2px 6px;
    border-radius: 4px;
}

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

.editor-actions button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #0284c7, #06b6d4);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(6, 182, 212, 0.2);
}

.editor-actions button:active {
    transform: scale(0.98);
}

@media (max-width: 600px) {
    .admin-editor {
        padding: 16px;
        border-radius: 14px;
    }

    .admin-editor > h2 {
        font-size: 22px;
    }

    .admin-editor .form-group {
        padding: 12px;
    }
}


/* KARTU PILIHAN PESANAN */

.order-card-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.order-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    background: #172943;
    border: 1px solid #293e5b;
    border-radius: 12px;
    transition: 0.2s ease;
}

.order-card.selected {
    border: 1px solid #06b6d4;
    background: #19334e;
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.12);
}

.order-card-info {
    min-width: 0;
}

.order-card-info h4 {
    color: #ffffff;
    font-size: 15px;
    margin-bottom: 6px;
    overflow-wrap: anywhere;
}

.order-card-info p {
    color: #9aabc2;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.order-card button {
    flex-shrink: 0;
    padding: 9px 13px;
    border: 1px solid #06b6d4;
    border-radius: 8px;
    background: transparent;
    color: #38bdf8;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.order-card.selected button {
    background: #06b6d4;
    color: #082032;
}

.order-empty {
    padding: 18px;
    text-align: center;
    color: #9aabc2;
    background: #172943;
    border: 1px dashed #344b68;
    border-radius: 10px;
}

@media (max-width: 450px) {
    .order-card {
        padding: 12px;
    }

    .order-card button {
        padding: 8px 10px;
    }
}

/* =================================
   KOLOM LINK DASHBOARD BUYER
================================= */

.admin-table td input[id^="buyerLink-"] {
    width: 220px;
    max-width: 100%;
    padding: 11px 13px;
    margin-bottom: 8px;

    background: #EAF7FF;
    color: #28658a;

    border: 1px solid #B7D8EF;
    border-radius: 8px;

    font-family: inherit;
    font-size: 12px;
    font-weight: 600;

    outline: none;
}

.admin-table td input[id^="buyerLink-"]:focus {
    border-color: #28658A;
    box-shadow: 0 0 0 3px rgba(40, 101, 138, 0.12);
}

/* TOMBOL BUAT LINK BUYER */

.admin-table td button[onclick^="createBuyerLink"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 15px;

    background: linear-gradient(135deg, #28658A, #102A43);
    color: white;

    border: none;
    border-radius: 8px;

    font-family: inherit;
    font-size: 12px;
    font-weight: 600;

    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-table td button[onclick^="createBuyerLink"]:hover {
    background: linear-gradient(135deg, #75B6DF, #28658A);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 100, 140, 0.2);
}

.admin-table td button[onclick^="createBuyerLink"]:active {
    transform: scale(0.96);
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

#btnLogoutAdmin {
    padding: 12px 18px;
    border: 1px solid #fecaca;
    border-radius: 12px;
    background: #fee2e2;
    color: #dc2626;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

#btnLogoutAdmin:hover {
    background: #fca5a5;
    color: #991b1b;
}
