/* ============================================
   GLOBAL STYLES
============================================= */
body {
    font-family: Arial, sans-serif;
    margin: auto;
    padding: 0 0 20px;
    background-color: #f9fafc;
    color: #333;
}

h1 {
    text-align: center;
    margin: 20px 0;
    font-size: 1.8rem;
}
h3 {
	margin-top: 0;
}
.container {
    max-width: 500px;
    margin: 5px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box; /* Ensures padding doesn't affect width */
    overflow: hidden; /* Prevents content from overflowing */
}
p img {
    vertical-align: middle;
    display: inline-block;
}
.email-feedback {
    margin-top: 5px;
    font-size: 0.9em;
    color: red;
}
.site-footer {
	text-align: center;
}
/* ============================================
   HEADER AND LOGO
============================================= */
.logo-container {
    text-align: center;
    margin-bottom: 10px;
    overflow: hidden; /* Prevents content from spilling out */
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}

.logo-container img {
    max-width: 100%; /* Ensures the image doesn't exceed its container */
    height: auto; /* Maintains aspect ratio */
    display: block; /* Prevents inline spacing issues */
    margin: 0 auto; /* Centers the image horizontally */
}

/* ============================================
   MAIN TITLE
============================================= */
.main-title {
    font-size: 1.25em; /* Adjust text size */
    text-align: center; /* Center align the text */
    line-height: 1.4; /* Improved spacing */
}

.main-title img {
    display: inline-block; /* Ensures image behaves inline */
    vertical-align: middle; /* Aligns image with the text baseline */
    max-height: 1.25em; /* Adjusts image height to match text */
    width: auto; /* Maintains aspect ratio */
    margin: 0 5px; /* Adds slight spacing between text and image */
}

/* ============================================
   CALL-TO-ACTION BUTTON
============================================= */
.cta-button {
    display: block;
    width: 100%;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px;
    font-size: 1em;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 20px;
}

.cta-button:hover {
    background-color: #0056b3;
}
.cta-button.secondary {
    background-color: #6c757d;
    margin-top: 5px;
}

.cta-button.secondary:hover {
    background-color: #5a6268;
}

.hidden {
    display: none;
}
.cta-button-wrapper {
    display: flex;
    justify-content: center; /* Centers the button horizontally */
    margin-top: 20px;
}

.cta-button-wrapper .cta-button {
    width: 200px; /* Match the button width */
    text-align: center; /* Ensures text is centered */
}

/* ============================================
   PRODUCT SECTION
============================================= */
.product-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    position: sticky; /* Makes the section sticky */
    top: 0; /* Sticks to the top of the viewport */
    background: #fff; /* Prevents overlap transparency */
    z-index: 1000; /* Ensures it stays above other elements */
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Adds a slight shadow for visibility */
}
.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 5px 0;
}

.product-card img {
    max-width: 150px;
    height: auto;
    border-radius: 8px;
}

.product-card p {
    margin: 2px 0;
    font-size: 0.95em;
}

.product-price {
    font-weight: bold;
}

.product-price.strike {
    text-decoration: line-through;
    color: #dc3545;
}

/* Plus Sign Separator Styling */
.product-separator {
    font-size: 1.5em;
    font-weight: bold;
    color: #007bff;
    margin: 5px 0;
    text-align: center;
}

/* ============================================
   CART SECTION
============================================= */
.cart-container {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.95em;
}

.discount {
    color: #28a745;
    font-weight: bold;
}

.summary-total {
    color: #007bff;
    font-weight: bold;
    font-size: 1.1em;
}

.cart-summary {
    margin-top: 15px;
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

.cart-summary p {
    margin: 5px 0;
    display: flex;
    justify-content: space-between;
}

/* ============================================
   FORM STYLES
============================================= */
form {
    width: 100%;
    margin: 0 auto;
    background: #fff;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}

form label {
    font-size: 0.9em;
    margin-bottom: 3px;
    font-weight: bold;
}

form input {
    width: calc(100% - 20px); /* Prevents overflow by accounting for padding */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.95em;
    box-sizing: border-box; /* Includes padding and border in width */
    margin-top: 5px;
}

form button {
    width: 100%;
    margin-top: 5px;
    padding: 10px;
    font-size: 1em;
    border: none;
    background: #28a745;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

form button:hover {
    background: #218838;
}
.dashboard-header {
    display: flex; /* Enables flexbox layout */
    align-items: center; /* Aligns items vertically */
    justify-content: space-between; /* Pushes content to edges */
    padding: 10px 20px; /* Adds spacing around the header */
    border-bottom: 1px solid #ddd; /* Optional: Add a border for separation */
    background-color: #f9fafc; /* Matches the background */
    position: relative; /* Allows absolute positioning if needed */
}

.dashboard-header h1 {
    flex: 1; /* Allows the heading to take up available space */
    text-align: center; /* Centers the text */
    margin: 0; /* Removes default margin */
    font-size: 1.5em; /* Adjust font size */
}

.logout-btn {
    position: absolute; /* Absolute positioning */
    top: 10px; /* Distance from the top */
    right: 10px; /* Distance from the right */
    background-color: #dc3545; /* Red for logout */
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    font-size: 0.9em;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    z-index: 1000; /* Ensure it appears above other elements */
}

.logout-btn:hover {
    background-color: #c82333; /* Darker red on hover */
}
.client-info-section {
	margin: 20px 0 0;
  border: 1px solid #ccc;
  padding: 15px;
  border-radius: 5px;
  background-color: #f9f9f9;
}
/* ============================================
   CARD EXPIRATION AND CVV (SIDE BY SIDE)
============================================= */
.form-row {
    display: flex;
    gap: 10px; /* Space between fields */
    margin-bottom: 15px;
}

.form-group {
    flex: 1; /* Equal space */
}

.form-group.half-width {
    flex: 0 0 48%;
}

.exp-row {
    display: flex;
    gap: 5px;
}

.exp-row input {
    flex: 1; /* Each takes equal space */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.95em;
    box-sizing: border-box;
    text-align: center; /* Center placeholder text */
}

.exp-row input::placeholder {
    text-align: center;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.95em;
    box-sizing: border-box;
}
#coupon-code-section {
  margin-top: 15px;
  display: none; /* Hidden by default */
}

#coupon-code-section.visible {
  display: block; /* Show when necessary */
}
/* ============================================
   CONSENT SECTION
============================================= */
.opt-out {
    background-color: #dc3545; /* Red */
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}

.opt-out:hover {
    background-color: #c82333;
}

/* ============================================
   TERMS AND CONDITIONS SECTION
============================================= */
.terms-section {
    margin-top: 15px;
    background: #f9fafc;
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 5px;
    font-size: 0.8em;
    line-height: 1.5; /* Ensure good readability for multi-line text */
}

.terms-section p {
    margin-bottom: 10px;
    color: #555;
}

.terms-section a {
    color: #007bff;
    text-decoration: none;
}

.terms-section label {
    font-size: 1em;
}

.terms-section a:hover {
    text-decoration: underline;
}

/* Flex container for checkbox and text */
.terms-row {
    display: flex;
    align-items: flex-start; /* Align checkbox to the top */
    gap: 10px; /* Add space between the checkbox and text */
    margin: 10px 0; /* Optional: Space between rows */
}

/* Checkbox container */
.checkbox-container {
    display: flex;
    justify-content: center;
    align-items: center; /* Center checkbox and text vertically */
    margin-top: 2px; /* Fine-tune spacing if necessary */
}

/* Styled Checkbox */
.checkbox-container input[type="checkbox"] {
    appearance: checkbox; /* Ensure it renders as a native checkbox */
    -webkit-appearance: checkbox; /* Safari-specific */
    width: 16px; /* Set explicit size for consistent behavior */
    height: 16px;
    margin: 0; /* Remove default margin */
    cursor: pointer; /* Pointer cursor for interaction */
    position: relative; /* Ensure proper stacking context */
    z-index: 1; /* Prevent overlapping issues */
}

/* Optional: Add a label style for alignment */
.checkbox-container label {
    margin-left: 10px; /* Space between checkbox and label text */
    font-size: 0.9em; /* Adjust for readability */
    cursor: pointer; /* Clicking the label toggles the checkbox */
}

.terms-text a {
    color: #007bff; /* Link color */
    text-decoration: none; /* No underline by default */
}

.terms-text a:hover {
    text-decoration: underline; /* Add underline on hover */
}
/* Collapsible Section */
.terms-section .collapse {
    display: none;
}

.terms-section .collapse.open {
    display: inline;
}

/* Scoped Read More/Less Button */
.read-more-btn {
    display: inline-block;
    background: #f1f1f1;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px 10px;
    color: #007bff;
    cursor: pointer;
    font-size: 0.85em;
    margin-top: 5px;
    text-align: center;
}

.read-more-btn:hover {
    background: #e6e6e6;
    border-color: #bbb;
    color: #0056b3;
}

/* ============================================
   DASHBOARD STYLES
============================================= */
.select-box {
    appearance: auto; /* Ensure default dropdown behavior */
    -webkit-appearance: menulist; /* For Safari */
    -moz-appearance: menulist; /* For Firefox */
    width: auto;
    min-width: 150px;
    max-width: 300px;
    padding: 5px;
    font-size: 0.9rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    box-sizing: border-box;
}

.select-box:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 3px rgba(0, 123, 255, 0.5);
}
.select-box option {
    padding: 5px; /* Padding inside dropdown options */
    font-size: 0.9em; /* Match font size */
}

.alert-section {
    margin: 15px 0;
    text-align: center;
}

.success-message {
    color: #28a745;
    background: #e6f9eb;
    border: 1px solid #28a745;
    padding: 8px;
    border-radius: 5px;
    margin-bottom: 10px;
}
/* TABLE STYLES */
.data-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    font-size: 0.95em;
    text-align: left;
}

.data-table thead {
    background-color: #007bff;
    color: white;
}

.data-table th, .data-table td {
    border: 1px solid #ddd;
    padding: 10px;
}

.data-table tbody tr:nth-child(even) {
    background-color: #f9fafc;
}

.data-table tbody tr:hover {
    background-color: #f1f1f1;
}

/* CARD ACTION BUTTONS */
.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.action-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 5px 10px;
    font-size: 0.85em;
    border-radius: 4px;
    cursor: pointer;
}

.action-btn:hover {
    background-color: #5a6268;
}

/* STATUS SENT */
.status-sent {
    color: #28a745;
    font-weight: bold;
    text-align: center;
}
.enrolled-table tbody tr {
    background-color: #e6f9eb; /* Light green background */
}

.enrolled-table tbody tr:hover {
    background-color: #d4f5db; /* Slightly darker green on hover */
}
/* Tabs */
.tabs {
    display: flex;
    align-items: center; /* Align items vertically */
    margin: 20px 20px 0;
}

#showAllClientsSpan {
    display: none; /* Hide by default */
    text-align: right;
	margin-left: 30px;
}

#showAllClientsSpan label {
    display: inline-flex;
    align-items: center; /* Align checkbox and text vertically */
}

.tab-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 5px 5px 0 0;
    margin: 0 2px;
    transition: background-color 0.3s ease;
	font-weight: bold;
}

.tab-btn:hover {
    background-color: #0056b3;
}

.tab-btn.active {
    background-color: #0056b3;
    padding-top: 12px; /* Increase top padding for added height */
    padding-bottom: 8px; /* Decrease bottom padding to maintain text alignment */
    position: relative;
    top: 2px; /* Slight adjustment to position */
}


/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}
.paid {
	background-color: #FCC728;
	color: black;
}
.paid:hover {
	background-color: #006879;
	color: white;
}
.paid.active {
	background-color: #006879;
	color: white;
}
.header-with-checkbox {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-with-checkbox h2 {
  margin: 0;
}

.header-with-checkbox label {
  margin-left: 10px;
  font-size: 14px;
  cursor: pointer;
}

/* ============================================
   DASHBOARD PAGE SCOPED STYLES
============================================= */
.dashboard-page .container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto; /* Adds small margin on the top and bottom */
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    overflow-x: auto; /* Prevents horizontal overflow issues */
}
/* General Button Styles */
.dashboard-page .cta-button {
    background-color: #007bff; /* Default blue for the button */
    color: white;
    border: none;
    padding: 6px 12px;
    font-size: 0.9em;
    border-radius: 4px;
    cursor: pointer;
}

.dashboard-page .cta-button:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

/* Sent Button Style */
.dashboard-page .cta-button.completed-btn {
    background-color: #007bff; /* Subtle gray for sent state */
    color: white;
    border: none;
    cursor: pointer;
}

.dashboard-page .cta-button.completed-btn:hover {
    background-color: #c82333; /* Darker gray on hover */
}

/* Warning State for Resend */
.dashboard-page .cta-button.warning-btn {
    background-color: #dc3545; /* Red for warning */
    color: white;
    border: none;
    cursor: pointer;
}

.dashboard-page .cta-button.warning-btn:hover {
    background-color: #c82333; /* Darker red on hover */
}

/* Loading Button Style */
.dashboard-page .cta-button.gradient-loading {
    background: linear-gradient(90deg, #007bff, #0056b3, #007bff);
    background-size: 200% 100%;
    animation: gradientShift 2s infinite;
    color: white;
    cursor: not-allowed;
}

/* Scoped Error Message for Dashboard */
.dashboard-page .error-message {
    color: #dc3545;
    background-color: #fde8e8;
    border: 1px solid #dc3545;
    padding: 5px;
    border-radius: 4px;
    margin-top: 5px;
    text-align: center;
}

/* Scoped Success Message for Dashboard */
.dashboard-page .success-message {
    color: #28a745;
    background-color: #e6f9eb;
    border: 1px solid #28a745;
    padding: 5px;
    border-radius: 4px;
    margin-top: 5px;
    text-align: center;
}
.dashboard-page .copy-text {
    cursor: pointer;
    color: #007bff;
    text-decoration: underline;
    display: inline-block;
    transition: color 0.2s ease;
}

.dashboard-page .copy-text:hover {
    color: #0056b3;
}

/* Temporary 'Copied!' Feedback */
.dashboard-page .copy-text.copied {
    color: #28a745;
    font-weight: bold;
    text-decoration: none;
}

/* CARD ACTION BUTTONS */
.dashboard-page .card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
/* Ensure card info remains hidden */
.dashboard-page .card-actions button {
    margin-right: 5px;
}
/* Search Bar Styles */
.search-container {
    margin: 20px 0;
    text-align: center;
}

#search-input {
    width: 80%;
    max-width: 500px;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    outline: none;
    transition: border-color 0.3s ease;
}

#search-input:focus {
    border-color: #007bff;
}
/* Ensure both tables look good when shown together */
.tab-content.active {
    display: block;
}

/* ============================================
   CONDITIONAL BUTTON SPACING
============================================= */
/* Stacked Button Groups */
.dashboard-page td div {
    margin-bottom: 10px;
}

/* Grouped Buttons for CC Details */
.dashboard-page .action-btn {
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 5px;
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 6px 10px;
    font-size: 0.85em;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
}

.dashboard-page .action-btn:hover {
    background-color: #5a6268;
}

/* Hide empty cells completely */
.dashboard-page td:empty {
    display: none;
}

/* Copied State */
.dashboard-page .action-btn.copied {
    background-color: #28a745;
    color: white;
    font-weight: bold;
}

/* Masked Password Button */
.dashboard-page .masked-btn {
    background-color: #6c757d;
    font-family: 'monospace';
    color: white;
}

.dashboard-page .masked-btn:hover {
    background-color: #5a6268;
}

/* Temporary 'Copied!' Feedback */
.dashboard-page .masked-btn.copied {
    background-color: #28a745;
    color: white;
}
/* Optional Tooltip Customization */
button[title] {
    position: relative;
}

button[title]:hover::after {
    content: attr(title);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px 8px;
    font-size: 0.85em;
    border-radius: 4px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}
/* Sent Button Style */
.completed-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 6px 12px;
    font-size: 0.9em;
    border-radius: 4px;
    cursor: pointer;
}

.completed-btn:hover {
    background-color: #218838; /* Darker green on hover */
}

/* ============================================
   SUCCESS & ERROR MESSAGES
============================================= */
.success {
    color: green;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.error {
    color: red;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.warning {
    color: #856404;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}
/* Highlight Invalid Inputs */
.input-error {
    border: 1px solid #dc3545;
    background-color: #fff5f5;
}

/* Inline Error Messages */
.error-message {
    color: #dc3545;
    font-size: 0.85em;
    margin-top: 2px;
    display: block;
}
.copy-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.copy-container input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.9em;
    background-color: #f9f9f9;
}

.copy-btn {
    padding: 8px 12px;
    font-size: 0.9em;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.copy-btn:hover {
    background-color: #0056b3;
}

.copy-feedback {
    font-size: 0.85em;
    color: #28a745;
    margin-left: 10px;
    visibility: hidden;
}

/* ============================================
   RESPONSIVE DESIGN
============================================= */
@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }

    form {
        width: 95%;
        padding: 15px;
    }

    table {
        font-size: 0.8rem;
    }

    table th, table td {
        padding: 8px;
    }

    table button {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.2rem;
    }

    form {
        padding: 10px;
    }

    form input {
        width: calc(100% - 10px);
        padding: 6px;
    }
	
    form label {
        font-size: 0.8rem;
    }

    form button {
        font-size: 0.9rem;
    }

    table th, table td {
        padding: 6px;
        font-size: 0.7rem;
    }

    table button {
        font-size: 0.7rem;
    }
}

/* ============================================
   SALES DASHBOARD
============================================= */
.qr-container {
    margin: 20px auto;
    text-align: center;
}

.qr-code {
    max-width: 300px;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.copy-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px auto;
    justify-content: center;
}

.copy-btn {
    padding: 8px 12px;
    border-radius: 5px;
    border: none;
    background-color: #007bff;
    color: white;
    cursor: pointer;
}

.copy-btn:hover {
    background-color: #0056b3;
}

.copy-feedback {
    font-size: 0.9em;
    color: green;
    margin-left: 10px;
}


/* ============================================
   ANIMATIONS
============================================= */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Keyframes for Gradient Animation */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    flex-direction: column; /* Stack spinner and message vertically */
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
    text-align: center; /* Center-align text */
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px; /* Add space below the spinner */
}

.loading-message {
    font-size: 16px;
    color: #ffffff;
    font-family: Arial, sans-serif;
    margin-top: 10px;
}

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