html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    /* SF Pro font stack - uses system fonts on Apple devices, Poppins as fallback */
    font-family:
        -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
        "Poppins", sans-serif;
    /* background-color: #eefff4; */
    /* background-color: #e7fdff; */
    background-color: #eefeff;
}

/* Prevent mobile input focus zoom/layout shift */
@media (max-width: 767.98px) {

    input,
    select,
    textarea,
    .form-control,
    .form-select {
        font-size: 16px;
    }
}

/* ___ customize style ___ */
.cu-secondary-50 {
    background-color: #eefff4;
}

.cu-secondary-50-text {
    color: #eefff4;
}

.light-green-gradient {
    background: linear-gradient(180deg, #01c82f, #00c87a);
}

.indent-text {
    padding-left: 16px;
}

.icon-svg {
    width: 24px;
    height: 24px;
}

.icon-text {
    position: relative;
    padding-left: 24px;
}

.icon-text .fa-fw {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
}

.main-logo {
    width: 80px;
    height: auto;
}

@media (min-width: 992px) {
    .main-logo {
        width: 100px;
    }
}

.row_glass {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

#startBlade .glass_card {
    width: calc(25% - 24px);
    box-sizing: border-box;
    position: relative;
    padding: 24px 20px;
    margin-top: 0;
    border-radius: 12px;
    border: 2px solid transparent;
    /* Transparent border initially */
    background: #ffffff;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
    transition: all 0.2s ease;
    /* Smooth transition */
}

#startBlade .glass_card:hover {
    transform: scale(1.02);
    /* Slight scale */
    border-color: #01c82f;
    /* Green border on hover */
    box-shadow: 0 8px 24px rgba(1, 200, 47, 0.15);
    /* Stronger shadow on hover */
}

/* Dark mode adjustments for cards */
.dark-mode #startBlade .glass_card {
    background: #232323;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dark-mode #startBlade .glass_card:hover {
    box-shadow: 0 8px 24px rgba(1, 200, 47, 0.2);
}

#startBlade .glass_card div {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

/* Responsive glass cards */
@media (max-width: 575.98px) {
    #startBlade .glass_card {
        width: 100%;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    #startBlade .glass_card {
        width: calc(50% - 24px);
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    #startBlade .glass_card {
        width: calc(33.333% - 24px);
    }
}

.text {
    font-size: 16px;
}

/* ___ customize style end ___ */

/* ___ bootstrap container ___ */
@media (min-width: 320px) {
    .text {
        font-size: 12px;
    }
}

@media (min-width: 576px) {

    .container,
    .container-sm {
        max-width: 540px !important;
    }

    #sidebarMenu {
        max-width: 270px !important;
    }
}

@media (min-width: 768px) {

    .container,
    .container-md,
    .container-sm {
        max-width: 720px !important;
    }
}

@media (min-width: 992px) {

    .container,
    .container-lg,
    .container-md,
    .container-sm {
        max-width: 870px !important;
    }

    .content {
        margin-left: 260px;
    }

    .text {
        font-size: 16px;
    }
}

@media (min-width: 1200px) {

    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl {
        max-width: 940px !important;
    }
}

@media (min-width: 1400px) {

    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: 1140px !important;
    }
}

/* ___ bootstrap container end ___ */

/* ___ bootstrap btn ___ */
.btn {
    border-width: 2px;
    box-sizing: border-box;
    padding: 6px 14px;
    border-radius: 8px;
    outline: none;
    transition: 0.3s;
}

.btn:focus {
    box-shadow: none !important;
    outline: none;
}

.btn:active:focus {
    box-shadow: none;
    outline: none;
}

/* btn-primary */
.btn.btn-primary {
    background-color: #01c82f;
    border-color: #01c82f;
    padding: 8px 12px;
    color: white;
    box-shadow: none;
}

.btn.btn-outline-primary.show {
    background-color: #01c82f;
    border-color: #01c82f;
    padding: 8px 12px;
    color: white;
}

.btn.btn-outline-primary {
    background-color: transparent;
    border: 2px solid #01c82f;
    color: #01c82f;
    padding: 8px 12px;
}

/* .btn.btn-secondary:hover {
    background-color: transparent;
    border-color: #01c82f;
    color: #01c82f;
} */

.btn.btn-primary:hover {
    background-color: #0be73f;
    border-color: #0be73f;
    color: white;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 2px 6px 0px;
}

.btn.btn-outline-primary:hover {
    background-color: #01c82f;
    border-color: #01c82f;
    color: white;
}

/* btn-primary end */

/* btn-secondary */
.btn.btn-secondary {
    background-color: #f6ba10;
    border-color: #f6ba10;
    padding: 8px 12px;
    color: white;
    box-shadow: none;
}

/* .btn.btn-secondary:hover {
    background-color: transparent;
    border-color: #f6ba10;
    color: #f6ba10;
} */

.btn.btn-secondary:hover {
    background-color: #fbc83c;
    border-color: #fbc83c;
    color: white;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 2px 6px 0px;
}

/* btn-secondary end */

.btn-hv-text-space {
    transition: 0.4s;
    letter-spacing: 2px;
}

.btn-hv-text-space:hover {
    letter-spacing: 3px;
}

@media (max-width: 1280px) {
    .btn-hv-text-space {
        letter-spacing: 0;
    }
}

@media (max-width: 1024px) {
    .btn-hv-text-space {
        letter-spacing: 0 !important;
    }
}

.rounded {
    border-radius: 10px !important;
}

/* ___ bootstrap btn end ___ */

/* ___ Custom Icon Button ___ */
.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    min-width: 32px !important;
    /* Override global submit button min-width */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* ___ bootstrap card ___ */
.card {
    border-radius: 12px;
}

/* ___ bootstrap card end ___ */

/* ___ Wave Svg ___ */
.waves {
    height: 150px;
    width: 100%;
}

.wave-top {
    top: -110px;
    width: 100%;
    position: absolute;
    left: 0;
    z-index: -1;
}

.wave-bottom {
    height: 100px;
    width: 100%;
    bottom: -50px;
    position: absolute;
    left: 0;
    z-index: -1;
}

.wave-bottom .waves {
    transform: rotate(180deg);
}

.waves>.moving-waves>use {
    animation: move-forever 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}

.waves>.moving-waves>use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.waves>.moving-waves>use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

.waves>.moving-waves>use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}

.waves>.moving-waves>use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

.waves>.moving-waves>use:nth-child(5) {
    animation-delay: -6s;
    animation-duration: 25s;
}

.waves>.moving-waves>use:nth-child(6) {
    animation-delay: -7s;
    animation-duration: 30s;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }

    100% {
        transform: translate3d(85px, 0, 0);
    }
}

@media (max-width: 991px) {
    .waves {
        height: 80px;
        margin-bottom: -120px;
    }
}

/* ___ Wave Svg End ___ */

@media (max-width: 991px) {
    .waves {
        height: 80px;
        margin-bottom: -120px;
    }
}

/* ___ Wave Svg End ___ */

.form-control:focus,
.form-select:focus,
textarea:focus {
    border-color: #01c82f;
    box-shadow: 0 0 0 2px rgba(1, 200, 47, 0.25);
}

.form-check-input:checked {
    border-color: #fff;
}

.divider {
    width: 80px;
    height: 4px;
    background: var(--bs-primary, linear-gradient(90deg, #01c82f, #00c87a));
    border-radius: 2px;
}

/* ================================================================
   ADMIN SCREEN DESIGN SYSTEM
   Shared components for all admin CRUD pages.
   Usage: page-icon, admin-card, admin-table, status-badge,
          action-btn, btn-create, empty-state, form-section
   ================================================================ */

/* ── Page Icon ── */
.page-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #01c82f, #00b46f);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(1, 200, 47, 0.25);
    flex-shrink: 0;
}
.page-icon.indigo { background: linear-gradient(135deg, #6366f1, #8b5cf6); box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3); }
.page-icon.amber  { background: linear-gradient(135deg, #f59e0b, #f97316); box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3); }
.page-icon.sky    { background: linear-gradient(135deg, #0ea5e9, #6366f1); box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3); }
.page-icon.rose   { background: linear-gradient(135deg, #f43f5e, #ec4899); box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3); }

/* ── Admin Card ── */
.admin-card {
    border-radius: 20px;
    overflow: hidden;
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    background: #fff;
}
.dark-mode .admin-card {
    background: #1e1e2e;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.admin-card-header {
    padding: 18px 24px;
    color: #fff;
    background: linear-gradient(135deg, #01c82f, #00b46f);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.admin-card-header.indigo { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.admin-card-header.amber  { background: linear-gradient(135deg, #f59e0b, #f97316); }
.admin-card-header.sky    { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.admin-card-header.rose   { background: linear-gradient(135deg, #f43f5e, #ec4899); }

/* ── Header Count Badge ── */
.header-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* ── Admin Table ── */
.admin-table thead th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    font-weight: 700;
    padding: 14px 16px;
    border-bottom: 2px solid #eee;
    white-space: nowrap;
}
.dark-mode .admin-table thead th {
    color: #aaa;
    border-color: #2a2a3e;
}
.admin-table tbody tr {
    transition: background 0.15s;
}
.admin-table tbody tr:hover {
    background: #f8f9fc;
}
.dark-mode .admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}
.admin-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}
.dark-mode .admin-table tbody td {
    border-color: #2a2a3e;
}

/* ── Row Icon (used inside table cells) ── */
.row-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    background: rgba(1, 200, 47, 0.1);
    color: #01c82f;
}
.dark-mode .row-icon {
    background: rgba(1, 200, 47, 0.15);
}

/* ── Status Badges ── */
.status-badge {
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.75rem;
    white-space: nowrap;
    display: inline-block;
}
.status-active   { background: rgba(29, 209, 161, 0.1);   color: #10ac84; }
.status-inactive { background: rgba(108, 117, 125, 0.1);  color: #6c757d; }
.status-draft    { background: rgba(254, 202, 87, 0.15);  color: #e17e00; }
.status-pending  { background: rgba(59, 130, 246, 0.12);  color: #2563eb; }
.status-failed   { background: rgba(239, 68, 68, 0.12);   color: #dc2626; }
.dark-mode .status-active   { background: rgba(29, 209, 161, 0.18);  color: #1dd1a1; }
.dark-mode .status-inactive { background: rgba(108, 117, 125, 0.18); color: #adb5bd; }
.dark-mode .status-draft    { background: rgba(254, 202, 87, 0.18);  color: #f9ca24; }
.dark-mode .status-pending  { background: rgba(59, 130, 246, 0.22);  color: #93c5fd; }
.dark-mode .status-failed   { background: rgba(239, 68, 68, 0.2);    color: #fca5a5; }

/* ── Action Buttons ── */
.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    font-size: 0.8rem;
    transition: all 0.18s;
    min-width: 32px !important;
    padding: 0;
}
.action-view { background: rgba(99, 102, 241, 0.1); color: #6366f1; }
.action-view:hover { background: #6366f1; color: #fff; }
.action-edit { background: rgba(108, 117, 125, 0.1); color: #6c757d; }
.action-edit:hover { background: #6c757d; color: #fff; }
.action-del  { background: rgba(220, 53, 69, 0.1); color: #dc3545; }
.action-del:hover { background: #dc3545; color: #fff; }

/* ── Create / Primary CTA Button ── */
.btn-create {
    background: linear-gradient(135deg, #01c82f, #00b46f);
    border: none;
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
    padding: 10px 22px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
}
.btn-create:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(1, 200, 47, 0.35);
    color: #fff;
}
.btn-create.indigo { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.btn-create.indigo:hover { box-shadow: 0 6px 18px rgba(99, 102, 241, 0.4); }
.btn-create.amber  { background: linear-gradient(135deg, #f59e0b, #f97316); }
.btn-create.amber:hover  { box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4); }
.btn-create.sky    { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.btn-create.sky:hover    { box-shadow: 0 6px 18px rgba(14, 165, 233, 0.4); }
.btn-create.rose   { background: linear-gradient(135deg, #f43f5e, #ec4899); }
.btn-create.rose:hover   { box-shadow: 0 6px 18px rgba(244, 63, 94, 0.4); }

/* ── Empty State ── */
.empty-state {
    padding: 3rem;
    text-align: center;
}
.empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: rgba(1, 200, 47, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #01c82f;
}
.dark-mode .empty-icon {
    background: rgba(1, 200, 47, 0.15);
}

/* ── Form Section (groups related fields inside a form) ── */
.form-section {
    border-radius: 16px;
    border: 1.5px solid #e9ecef;
    padding: 24px;
    margin-bottom: 24px;
}
.dark-mode .form-section {
    border-color: #2a2a3e;
    background: rgba(255, 255, 255, 0.02);
}
.form-section-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 16px;
}
.dark-mode .form-section-title {
    color: #aaa;
}

/* ── Admin Screen responsive tweaks ── */
@media (max-width: 768px) {
    .admin-card { border-radius: 14px; }
    .admin-card-header { padding: 14px 16px; }
    .admin-table { font-size: 0.85rem; }
    .admin-table thead th,
    .admin-table tbody td { padding: 10px 12px; }
    .btn-create { padding: 8px 16px; font-size: 0.9rem; }
}

