@import url("https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css");


/* Brand color */
:root {
    --lattia-blue: #0EA5E9;
    --lattia-accent-tint: #e9f5fb;
    --lattia-outline-hover: #E0F2FE;
    --light-gray-hover: #f3f4f6;
    --light-gray-hover-border: #e9e9eb;
}


/* ===============================
   Bootstrap Primary → Lattia
   =============================== */

   .btn-primary {
    background-color: var(--lattia-blue);
    border-color: var(--lattia-blue);
    font-weight: 500;
    border-radius: 5px;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #0284c7; /* darker Lattia blue */
    border-color: #0284c7;
}

.btn-primary:active {
    transform: translateY(1px);
}


.rounded-xl {
    border-radius: 1.15rem; /* 20px */
    overflow: hidden; /* critical for images */
}

.page-body {
    max-width: 820px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.7;
}

.page-body h2 {
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.page-body h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.page-body p {
    margin-bottom: 1.25rem;
    color: #444;
}

.page-body ul {
    padding-left: 1.2rem;
    margin-bottom: 1.5rem;
}

.page-body li {
    margin-bottom: 0.5rem;
}

.page-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.office-hours-row {
    padding: 0.65rem 0;
}

/* Accent button base */
.btn-accent {
    background-color: var(--store-accent);
    border: 2px solid var(--store-accent);
    color: #fff;
    font-weight: 500;

    /* ✅ THESE are the important fixes */
    padding: 1rem 1.25rem;
    min-height: 52px;
    line-height: 1.2;

    transition: all 0.2s ease-in-out;
}

/* Hover / focus state */
.btn-accent:hover,
.btn-accent:focus {
    background-color: #ffffff;
    color: var(--store-accent);
    border-color: var(--store-accent);
    box-shadow: none;
}

/* Active (click) state */
.btn-accent:active {
    transform: translateY(1px);
}

/* ===============================
   Admin User Dropdown Button
   =============================== */

   .admin-user-btn {
    border: 1px solid #fff;
    background-color: #fff;
    border-radius: 12px;
    padding: 8px 14px;
    color: #1f2937;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-user-btn:hover,
.admin-user-btn:focus {
    background-color: var(--light-gray-hover);
    border: 1px solid var(--light-gray-hover-border);
    color: #1f2937;
}

/* Remove Bootstrap caret spacing weirdness */
.admin-user-btn::after {
    margin-left: 8px;
}

/* ===============================
   Admin Dropdown Menu
   =============================== */

   .dropdown-menu {
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.dropdown-item {
    border-radius: 8px;
    padding: 10px 12px;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: var(--lattia-accent-tint);
}

/* Admin user icon circle */
.admin-user-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--lattia-accent-tint);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--lattia-blue);
    font-size: 1rem;
}

/* Hover: icon circle darkens slightly */
.admin-user-btn:hover .admin-user-icon {
    background-color: var(--lattia-accent-tint);
}


/* ===============================
   Admin Sidebar
   =============================== */

   .admin-sidebar {
    width: 260px;
    min-height: 100vh;
    background-color: #ffffff;
    border-right: 1px solid #e5e7eb;
    padding: 20px 12px;
}

/* Nav container */
.admin-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Individual link */
.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 12px 14px;
    margin-bottom: 6px;

    color: #6b7280; /* gray-500 */
    font-weight: 500;
    text-decoration: none;

    border-radius: 12px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

/* Icon */
.admin-nav-link i {
    font-size: 1.1rem;
    color: #6b7280;
}

/* Hover */
.admin-nav-link:hover {
    background-color: var(--light-gray-hover);
    color: #111827;
}

.admin-nav-link:hover i {
    color: #111827;
}

/* Active */
.admin-nav-link.active {
    background-color: var(--lattia-accent-tint);
    color: var(--lattia-blue);
}

.admin-nav-link.active i {
    color: var(--lattia-blue);
}

.admin-nav-divider {
    border: 1px solid var(--light-gray-hover-border);
    margin-bottom: 15px;
}

/* ===============================
   Dashboard Stat Cards
   =============================== */

   .stat-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
}

/* ===============================
   Admin Table Styling
   =============================== */

   .admin-table th {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
    padding: 16px 20px;
}

.admin-table td {
    padding: 18px 20px;
    vertical-align: middle;
}

.admin-table tbody tr {
    border-top: 1px solid #eef0f3;
}

.admin-table tbody tr:hover {
    background-color: #fafafa;
}

/* ===============================
   Action Icons
   =============================== */

.icon-action {
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.15s ease;
}

.icon-action:hover {
    color: #0EA5E9; /* lattia blue */
}

/* ===============================
   Toggle Switch (Bootstrap-based)
   =============================== */

.form-switch .form-check-input {
    width: 42px;
    height: 22px;
    cursor: pointer;
}

/* Admin table row padding (Bootstrap-safe) */
.admin-table tbody td {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

/* ===============================
   Lattia Login Card
   =============================== */

   .lattia-login-card {
    background-color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04); /* softer shadow */
}

/* Improve form spacing rhythm */
.lattia-login-card .form-label {
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.lattia-login-card .form-control-lg {
    padding: 0.9rem 1rem;
    border-radius: 10px;
}

.lattia-login-card .form-control:focus {
    border-color: var(--lattia-blue);
    box-shadow: 0 0 0 0.15rem var(--lattia-outline-hover);
}

/* =========================================
   Lattia Brand → Bootstrap Primary Overrides
   (fixes purple "primary" defaults)
   ========================================= */

   :root {
    /* Let Bootstrap utilities use Lattia */
    --bs-primary: var(--lattia-blue);
    --bs-primary-rgb: 14, 165, 233;

    /* Links */
    --bs-link-color: var(--lattia-blue);
    --bs-link-hover-color: #0284c7;
}

/* Outline primary buttons should use Lattia hover tint (not filled blue) */
.btn-outline-primary {
    --bs-btn-color: var(--lattia-blue);
    --bs-btn-border-color: var(--lattia-blue);

    --bs-btn-hover-color: var(--lattia-blue);
    --bs-btn-hover-bg: var(--lattia-outline-hover);
    --bs-btn-hover-border-color: var(--lattia-blue);

    --bs-btn-active-color: var(--lattia-blue);
    --bs-btn-active-bg: var(--lattia-outline-hover);
    --bs-btn-active-border-color: var(--lattia-blue);

    font-weight: 500;
    border-radius: 5px;
}

/* Make sure the "Visit Organization Settings..." link matches the same brand style */
.link-primary {
    color: var(--lattia-blue) !important;
    text-decoration: none;
}
.link-primary:hover,
.link-primary:focus {
    color: #0284c7 !important;
    text-decoration: underline;
}

/* Ensure switches use Lattia when checked */
.form-check-input:checked {
    background-color: var(--lattia-blue);
    border-color: var(--lattia-blue);
}

/* =========================================
   Store Settings Layout Helpers
   ========================================= */

.admin-settings-container {
    max-width: 920px;
}

/* Accent color input group width without inline styles */
.settings-accent-inputs {
    max-width: 420px;
}

/* Logo thumbnail styling without inline styles */
.settings-logo-thumb {
    width: 132px;
}
.settings-logo-img {
    max-height: 80px;
    width: 100%;
    object-fit: contain;
}

/* =========================================
   Dropzone UI (logo + OG image URL preview)
   ========================================= */

.lattia-dropzone {
    border: 1px dashed var(--light-gray-hover-border);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.lattia-dropzone:hover {
    background-color: var(--light-gray-hover);
}

.lattia-dropzone.is-dragover {
    border-color: var(--lattia-blue);
    background-color: var(--lattia-outline-hover);
}

.lattia-dropzone-preview {
    width: 100%;
    object-fit: contain;
}

.lattia-dropzone-preview-logo {
    max-height: 140px;
}

.lattia-dropzone-preview-og {
    max-height: 180px;
}


/* Store settings: OG preview thumbnail */
.settings-og-thumb {
    width: 180px;
}

.settings-og-img {
    max-height: 100px;
    width: 100%;
    object-fit: contain;
}
/* REQUIRED: makes file uploads actually submit */

.lattia-dropzone {
    position: relative;
}

.lattia-drop-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Store name link — Lattia branded */
/* Store name link — Lattia branded */
a.lattia-store-link {
    color: var(--lattia-blue);
    text-decoration: none;
    padding: 4px 6px;
    margin-left: -6px;
    border-radius: 6px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

a.lattia-store-link:hover,
a.lattia-store-link:focus {
    background-color: var(--lattia-outline-hover);
    color: var(--lattia-blue);
    text-decoration: none;
}

/* =========================================
   Pricing Cards (Shared: Marketing + Admin)
   ========================================= */

   .pricing-card {
    background-color: #ffffff;
    border-radius: 1rem;
    border: 1px solid var(--light-gray-hover-border);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pricing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.pricing-badge {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background-color: var(--lattia-accent-tint);
    color: var(--lattia-blue);
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    color: #111827;
}

.pricing-period {
    font-size: 1rem;
    color: #6b7280;
}

.pricing-list li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #374151;
}

/* =========================================
   Pricing list checkmarks (Admin)
   ========================================= */

   .pricing-list li {
    position: relative;
    padding-left: 1.75rem;
}

.pricing-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.05rem;
    font-weight: 700;
    color: #16a34a; /* green-600 */
}

.lattia-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
    border: 1px solid transparent;
    user-select: none;
    white-space: nowrap;
}

  .lattia-pill--dropdown {
    font-size: 12px;
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(14, 165, 233, 0.25);
    color: #0369a1;
  }

  .lattia-pill--checkbox {
    font-size: 12px;
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.25);
    color: #5b21b6;
  }

  .lattia-pill--text {
    font-size: 12px;
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.28);
    color: #92400e;
  }

  /* Inventory card fade-in (paired with Bootstrap collapse) */
#inventoryCardWrap .inventory-fade {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease;
  }
  
  #inventoryCardWrap.show .inventory-fade {
    opacity: 1;
    transform: translateY(0);
  }