
* {
        font-family: 'Inter', sans-serif;
}

body {
    background: #ffffff;
}

/* Reduce space between OTP boxes and error message */
#err_otp {
    margin-top: 8px !important;
    margin-bottom: 4px !important;
    font-size: 15px;
    font-weight: 500;
    color: #d32f2f !important; /* Better red tone */
}

/* Keep tip text closer and aligned */
.otp-tip {
    margin-top: 0 !important;
}

/* Full-page overlay */
#loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: none; /* hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Circular spinner */
.spinner {
    border: 6px solid #f3f3f3; /* Light gray */
    border-top: 6px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

/* Spin animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.required {
    color: red;
    font-weight: bold;
    margin-left: 2px;
}

.error {
    color: red;
    font-size: 13px;
    margin-top: 0px;
    margin: 6px 0 6px 14px;
}

/* loader for button  */

.button-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
    color: transparent !important;   /* hides the "Next" text */
}

.button-loading:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin-top: -9px;   /* half of height */
    margin-left: -9px;  /* half of width */
    border: 2px solid rgba(255,255,255,0.5);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* Wrapper to control width on large screens */
.auth-wrapper {
    max-width: 420px;
    margin: 2rem auto 4rem auto;
}

/* Input styling */
.auth-input {
    background-color: #f5f5f5;
    border-radius: 999px;
    border: none;
    padding: 0.9rem 1.1rem;
    font-size: 0.95rem;
}

.auth-input:focus {
    outline: none;
    box-shadow: none;
    background-color: #f0f0f0;
}

/* Primary Continue button */
.auth-primary-btn {
    border-radius: 999px;
    padding: 0.8rem 1.1rem;
    font-weight: 600;
}

/* Google / Apple buttons */
.auth-alt-btn {
    border-radius: 999px;
    padding: 0.8rem 1.1rem;
    background-color: #f5f5f5;
    border: none;
    font-weight: 500;
}

.auth-alt-btn:hover {
    background-color: #e9e9e9;
}

/* Make text slightly lighter for the disclaimer */
.auth-wrapper p {
    line-height: 1.4;
}

.org-page {
    min-height: calc(100vh - 140px); /* leave space for header/footer */
}

/* Search bar */
.org-search {
    background: #f5f5f5;
    border-radius: 999px;
    height: 48px;
}
.org-search input:focus {
    outline: none;
    box-shadow: none;
}

/* Cards */
.org-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 18px 22px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.03);
    cursor: pointer;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.org-card:hover {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

/* Arrow circle */
.org-card-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #555;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-pending {
    background: #fdecc8;
    color: #8a5a00;
}

.status-active {
    background: #e3f8e5;
    color: #0b7a36;
}

.status-pending {
    background: #fdecc8;
    color: #8a5a00;
}

/* OTP page layout */
.otp-wrapper {
    max-width: 420px;
    margin: 3rem auto 4rem auto;
}

/* Code boxes */
.otp-boxes {
    display: flex;
    gap: 12px;
}

.otp-input {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    border: 2px solid #000;
    text-align: center;
    font-size: 1.6rem;
    padding: 0;
}

.otp-input:focus {
    outline: none;
    box-shadow: none;
}

/* Resend button */
.otp-resend-btn {
    border-radius: 999px;
    padding: 0.6rem 1.6rem;
    background: #f5f5f5;
    border: none;
    font-weight: 500;
}

/* Circular back/next buttons */
.otp-circle-btn {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: #f5f5f5;
    border: none;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Layout */
.vouchers-layout {
    min-height: calc(100vh - 120px); /* leave some space for header/footer */
    background: #ffffff;
}

.vouchers-sidebar {
    border-right: 1px solid #eee;
    background: #fafafa;
}

.vouchers-main {
    background: #ffffff;
}

/* Sidebar nav */
.voucher-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.voucher-nav-item {
    display: flex;
    align-items: center;
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    padding: 10px 12px;
    border-radius: 5px;
    font-size: 0.95rem;
    color: #111;
    transition: background 0.15s ease;
    gap: 8px;
}

.voucher-nav-item .icon {
    width: 22px;
    margin-right: 8px;
}

.voucher-nav-item .count {
    margin-left: auto;
    font-size: 0.85rem;
    color: #666;
}

.voucher-nav-item:hover {
    background: #ececec;
}

.voucher-nav-item.active {
    background: #EDEDED;
}

.voucher-nav-item.active .count {
    color: #000000;
}

/* Search area */
.search-by-select select {
    min-width: 130px;
    border-radius: 999px;
    padding-right: 2rem;
}

.voucher-search-bar {
    border: 2px solid #ddd;
    border-radius: 40px;
    height: 50px;
    background: #fff;
}

.clear-icon {
    font-size: 18px;
}

.voucher-search-bar input:focus {
    outline: none;
    box-shadow: none;
}

/* Table */
.voucher-table {
    border-collapse: separate;
    border-spacing: 0 4px;
    font-size: 0.95rem;
}

.voucher-table thead th {
    font-size: 0.8rem;
    font-weight: 500;
    color: #666;
    border-bottom: 1px solid #eee;
}

.voucher-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
}

.voucher-row {
    transition: background-color 0.2s ease;
}

#data_voucher_list tr:hover td {
    background-color: #f5f5f5 !important;
    cursor: pointer;
}

.vouchers-table-responsive {
  overflow-x: auto;
  overflow-y: visible;  /* so the dot-menu can overflow down */
}

/* Status pills */
.status-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-active {
    background: #e8f0fe;
    color: #0b63e5;
}

.status-completed {
    background: #f3f4f6;
    color: #555;
}

.status-canceled {
    background: #ffe5e5;
    color: #c53030;
}

.status-default {
    color: #444;
    background-color: #eee;
    border: 1px solid #ccc;
}

/* Feedback bubble */
.voucher-feedback-btn {
    position: fixed;
    right: 22px;
    bottom: 22px;
    border-radius: 999px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 8px 16px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* Layout is same as vouchers page */
.voucher-detail {
    max-width: 1000px;
}

/* Card container */
.voucher-summary-card {
    padding: 32px 40px;
    border: 1px solid #e5e5e5;  /* light gray border */
    border-radius: 8px;
    background: #ffffff;
}

/* Flex row with three columns */
.summary-row {
    width: 100%;
}

.summary-column {
    flex: 1;
    padding: 0 32px;
}

/* Column titles: Vouchers accepted / Transactions / Total spent */
.summary-title {
    font-size: 15px;
    font-weight: 400;
    color: #111827;          /* almost black, not navy */
    margin-bottom: 16px;
}

/* Numbers: 1/2, 1, CA$25 */
.summary-value {
    font-size: 15px;
    font-weight: 700;
    color: #111827;          /* same dark color */
}

/* Vertical divider */
.divider {
    width: 1px;
    background: #e5e5e5;
    height: 90px;
    margin-top: 8px;
}

/* Validity text under the row */
.summary-validity {
    margin-top: 32px;
    font-size: 12px;
    line-height: 1.5;
    color: #6b7280;          /* neutral gray like expected screenshot */
}

.voucher-summary-card .summary-item {
    flex: 1 1 220px;
    padding: 0 32px; /* ⬅ ADD padding on both sides */
    border-right: 1px solid #F0F0F0;
}

.voucher-summary-card .summary-item:first-child {
    padding-left: 0; /* align left block perfectly */
}

.voucher-summary-card .summary-item:last-child {
    border-right: none;
    padding-right: 0; /* align right block perfectly */
}


/* Tabs */
.voucher-tabs {
    display: flex;
    gap: 24px;
    margin-top: 18px;
}

.voucher-tab {
    background: transparent;
    border: none;
    padding: 4px 0;
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
}

.voucher-tab.active {
    border-bottom-color: #000000;
}

.voucher-tab:not(.active) {
    color: #8a8a8a;
}

/* Recipients table */
.recipients-table thead th {
    font-size: 0.8rem;
    font-weight: 500;
    color: #777;
    border-bottom: 1px solid #EEEEEE;
}

.recipients-table tbody tr {
    border-bottom: 1px solid #F4F4F4;
}

/* Avatar circle */
.recipient-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #F4F4F4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* Status dot */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    background: #14b45c; /* green */
    margin-right: 6px;
}

/* Back button */
.back-link {
    font-size: 1.3rem;
    color: #000;
    text-decoration: none;
}

/* Mobile: stack items vertically, remove vertical line */
@media (max-width: 767.98px) {
    .voucher-summary-card {
        flex-direction: column;
        padding: 18px 18px;
    }

    .voucher-summary-card .summary-item {
        border-right: none;            /* remove vertical border */
        padding: 12px 0;               /* no side padding needed */
        border-bottom: 1px solid #F0F0F0;
    }

    .voucher-summary-card .summary-item:last-child {
        border-bottom: none;           /* no line after last item */
    }
}

/* Share Voucher Modal */
.share-modal {
    border-radius: 20px;
    padding: 8px 6px 14px;
}

.share-modal .modal-body {
    padding: 0 24px 8px 24px;
}

.share-modal .modal-header {
    padding: 18px 24px 8px 24px;
}

.share-modal .modal-footer {
    padding: 12px 24px 18px 24px;
}

/* Large clean input */
.share-search-input {
    border-radius: 999px;
    background: #f5f5f5;
    border: none;
    height: 46px;
    font-size: 0.95rem;
}

.share-search-input:focus {
    outline: none;
    box-shadow: none;
    background: #f0f0f0;
}

/* Smooth backdrop dimming */
.modal-backdrop.show {
    opacity: 0.5;
}

/* 3-dot button */
.three-dot-btn {
    font-size: 20px;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.three-dot-btn:hover {
    background: #f5f5f5;
}

.three-dot-btn[disabled] {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    opacity: 0.5; /* optional */
    cursor: not-allowed;
}

/* Dropdown menu styling */
.share-menu {
    border-radius: 12px;
    padding: 6px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    min-width: 160px;
}

/* Items */
.share-menu .dropdown-item {
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 6px;
}

.share-menu .dropdown-item:hover {
    background: #f5f5f5;
}

.share-menu .dropdown-item.text-danger:hover {
    background: #fff1f1;
}


/* Reuse from list page:
   .vouchers-layout, .vouchers-sidebar, .voucher-nav, .status-pill,
   .status-active, .voucher-feedback-btn, etc.
*/


/* 
create_organization.php 

Page background & centering */

.org-item-hidden {
    display: none !important;
}

.create-org-page {
    min-height: calc(100vh - 80px); /* adjust if your header height differs */
    padding: 40px 16px;
}

/* Card */
.create-org-card {
    max-width: 520px;
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
    padding: 40px 36px 32px;
    margin: 0 auto;
}

.create-primary-btn {
    border-radius: 999px;
    padding: 12px 32px;
}

/* Inputs / select look */
.create-input {
    border-radius: 999px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 12px 18px;
}

.create-input:focus {
    border-color: #111827;
    background-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
    outline: none;
}

/* Text in the checkbox paragraph */
.create-org-card .form-check-label a {
    text-decoration: underline;
}

/* verify.php */

.resend-wrapper {
    display: flex;
    align-items: center;       /* vertically aligned */
    gap: 12px;                 /* space between button and text */
    margin-top: 10px;
}

#resendBtn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

#resendInfo {
    font-size: 14px;
    color: #555;
}

/* Voucher list page*/

/* Pagination look & feel */
.pagination-select {
    padding-right: 1.75rem;
    box-shadow: none;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 60px;
}

.pagination-select:focus {
    box-shadow: none;
}

/* Bigger, properly centered dropdown arrow */
.pagination-select-caret {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;   /* increase size (was ~10px) */
    line-height: 1;
    pointer-events: none;
    font-weight: 600;  /* optional, makes it bolder */
}


.pagination-disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: default;
}


/* recipient list */

/* Base dot */
.recipient-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

/* Green (Accepted) */
.recipient-dot-green {
  background-color: #1a7f37;
}

/* Grey (Sent / Neutral) */
.recipient-dot-grey {
  background-color: #777;
}

/* Red (Error / Removed / Failed) */
.recipient-dot-red {
  background-color: #d32f2f;
  content: "✖";
}

/* Yellow (Pending / Waiting) */
.recipient-dot-yellow {
  background-color: #f4c430;
}

.voucher-tab {
    border: none;
    background: transparent;
    padding: 0 12px 8px;
}

.voucher-tab.active {
    border-bottom: 2px solid #000;
    font-weight: 600;
}


/** add recipients */

/* Small tweaks to better match your screenshot */
.share-modal {
  border-radius: 18px;
}
.share-modal .modal-header,
.share-modal .modal-body,
.share-modal .modal-footer {
  padding-inline: 32px;
}
.share-modal .modal-header {
  padding-top: 24px;
  padding-bottom: 8px;
}
.share-modal .modal-body {
  padding-top: 0;
  padding-bottom: 8px;
}
.share-modal .modal-footer {
  padding-top: 16px;
  padding-bottom: 20px;
}

/* Help pill */
.btn-help-pill {
    border-radius: 999px;
    background-color: #f3f3f3;
    border: none;
    font-weight: 500;
}

.btn-help-pill:hover {
    background-color: #e5e5e5;
}

.help-icon {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    background-color: #000;
    color: #fff;
}

/* Avatar circle */
.user-avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #000;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

/* Dropdown panel */
.user-menu {
    min-width: 280px;
    border-radius: 16px;
    padding-top: 0;
    padding-bottom: 0;
    border: none;
}

/* Kill the Bootstrap invalid icon for OTP inputs */
.form-control.otp-input,
.form-control.otp-input:focus,
.form-control.otp-input.is-invalid,
.was-validated .form-control.otp-input:invalid {
    background-image: none !important;
    box-shadow: none !important;      /* no glow */
    padding-right: 0 !important;      /* remove space reserved for icon */
}
