/* Exact Screenshot Dashboard Design */

/* Utility classes */
.d-none {
    display: none !important;
}

.supabase-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background: #ffffff;
    min-height: 600px;
}

/* Lucide Icon Styling */
.lucide-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    color: #6b7280;
}

.lucide-icon-small {
    width: 14px;
    height: 14px;
    margin-right: 6px;
    color: #6b7280;
}

.tab-icon {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    color: #6b7280;
}

/* Mobile Login Form Styles - Matches Screenshot Design */
.mobile-login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 40px 20px;
    text-align: center;
    background: #ffffff;
}

.login-step {
    width: 100%;
}

.login-title {
    font-size: 24px;
    font-weight: 600;
    color: #333333;
    margin: 0 0 40px 0;
    text-align: left;
}

/* Phone Input Section */
.phone-input-container {
    margin-bottom: 30px;
}

.phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 2px solid #d1d5db;
    border-radius: 12px;
    padding: 5px 10px;
    background: white;
    transition: border-color 0.2s ease;
}

.phone-input-wrapper:focus-within {
    border-color: #d47122;
}

.country-flag {
    display: flex;
    align-items: center;
    margin-right: 12px;
    padding-right: 12px;
    border-right: 1px solid #e5e7eb;
}

.flag-icon {
    width: 24px;
    height: 18px;
    margin-right: 8px;
}

.country-code {
    font-size: 16px;
    font-weight: 500;
    color: #374151;
}

.phone-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #374151;
    background: transparent;
    padding-left:5px !important;
    border:0px solid #fff!important;
}

.phone-input::placeholder {
    color: #9ca3af;
}

/* Continue Button */
.continue-btn {
    width: 100%;
    padding: 18px;
    background: #d47122;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.continue-btn:hover {
    background: #c5661e;
}

.continue-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* OTP Section */
.otp-description {
    color: #6b7280;
    font-size: 16px;
    margin: 0 0 40px 0;
    text-align: left;
    line-height: 1.5;
}

.otp-inputs-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 30px;
}

.otp-digit {
    width: 60px;
    height: 60px;
    border: 2px solid #d1d5db;
    border-radius: 12px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #374151;
    background: white;
    transition: border-color 0.2s ease;
}

.otp-digit:focus {
    outline: none;
    border-color: #d47122;
}

.otp-digit.filled {
    border-color: #d47122;
    background: #fef7f0;
}

/* Resend Section */
.resend-container {
    text-align: center;
}

.resend-btn {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.resend-btn:hover {
    color: #374151;
}

.resend-btn:disabled {
    color: #9ca3af;
    cursor: not-allowed;
    text-decoration: none;
}

/* Message Styles */
.message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.message.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.message.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.message.info {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
}

/* 3-Column Dashboard Layout */
.dashboard-layout {
    display: grid;
    grid-template-columns: 380px 280px 1fr;
    height: 100vh;
    gap: 0;
}

/* Column 1: Client Profile */
.dashboard-column-1 {
    background: #ffffff;
    padding: 40px 30px;
    border-right: 1px solid #e5e7eb;
    overflow-y: auto;
}

.client-profile-card {
    text-align: center;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #cc742459;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 600;
    color: #cc7424;
    margin: 0 auto 30px;
}

.profile-name {
    font-size: 32px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.2;
}

.profile-phone {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 15px;
    letter-spacing: 0.025em;
}

.profile-actions {
    display: flex;
    gap: 15px;
    margin: 15px 0px;
    justify-content: center; /* centers items horizontally */
    align-items: center;
}

.btn-edit {
    flex: 1;
    padding: 12px 20px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-edit:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.btn-add-review {
    flex: 1;
    padding: 12px 20px;
    background: #7c3aed;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add-review:hover {
    background: #6d28d9;
}

.profile-dob, .profile-created {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #6b7280;
    font-size: 16px;
    justify-content: center; /* centers items horizontally */
    align-items: center;
}

.dob-icon, .created-icon {
    font-size: 16px;
    margin-right: 12px;
}

/* Lucide icons in profile section */
.profile-dob .lucide-icon,
.profile-created .lucide-icon {
    width: 16px;
    height: 16px;
    margin-right: 12px;
    color: #6b7280;
}

.dob-text {
    color: #3b82f6;
    cursor: pointer;
}

.dob-text:hover {
    text-decoration: underline;
}

/* Book appointment button in profile section */
.profile-booking {
    
}

.booking-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px;
    background: #cc7424;
    border: 1px solid #cc7424;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    margin-bottom: 15px;
}

.booking-btn:hover {
    background: #cc742494;
    border-color: #cc7424;
    color: #000;
    text-decoration: none;
}

.booking-btn .lucide-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    color: #fff;
}
.booking-btn:hover .lucide-icon {
     color: #000;
}

.booking-text {
    font-size: 16px;
    font-weight: 500;
}

/* Logout button in profile section */
.profile-logout {
    margin-top: 0;
    display: block !important;
    visibility: visible !important;
}

.logout-btn {
    display: flex !important;
    align-items: center;
    width: 100%;
    padding: 10px;
    background: #f9fafb;
    border: 1px solid #9ca3af;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #000000 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 48px;
}

.logout-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.logout-btn .lucide-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    color: #000000;
}

.logout-text {
    font-size: 16px;
    font-weight: 500;
}

.profile-review {
    text-align: left;
    margin-top: 40px;
}

.review-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 15px;
}

.review-content {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    font-size: 16px;
    color: #6b7280;
    line-height: 1.5;
    min-height: 100px;
}

/* Column 2: Tab Navigation */
.dashboard-column-2 {
    background: #ffffff;
    padding: 40px 0 40px 30px;
    border-right: 0px solid #e5e7eb;
}

.tab-navigation {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tab-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    font-weight: 500;
    color: #6b7280;
    background: #ffffff;
    border: 1px solid #d1d5db;
}

.tab-item:hover {
    background: #f9fafb;
    color: #374151;
}

.tab-item.active {
    background: #f3f4f6;
    color: #111827;
    border-color: #d1d5db;
}

.tab-icon {
    font-size: 18px;
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

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

/* Column 3: Content Area */
.dashboard-column-3 {
    background: #ffffff;
    padding: 40px;
    overflow-y: auto;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.section-title {
    font-size: 26px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 30px 0;
    line-height: 1.1;
}

.content-list {
    margin-top: 20px;
}

/* Appointment Items */
.appointment-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    transition: box-shadow 0.2s ease;
}

.appointment-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.appointment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.appointment-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.appointment-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: lowercase;
    background: #e0e7ff;
    color: #7c3aed;
}

.appointment-datetime {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 20px;
}

/* Multiple Services Layout */
.appointment-services-list {
    margin-bottom: 20px;
}

.appointment-service-item {
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.appointment-service-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.service-name {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    text-transform: capitalize;
}

.service-price {
    font-size: 18px;
    font-weight: 700;
    color: #059669;
}

.service-details {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #6b7280;
    font-size: 14px;
}

.service-time, .service-staff {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Appointment Total */
.appointment-total {
    border-top: 2px solid #e5e7eb;
    padding-top: 16px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-label {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.total-amount {
    font-size: 20px;
    font-weight: 700;
    color: #059669;
}

/* Legacy simple service support */
.appointment-service-simple {
    margin-bottom: 20px;
}

.service-header-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.service-name-simple {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
    line-height: 1.3;
}

.service-price-simple {
    font-size: 20px;
    font-weight: 700;
    color: #059669;
    text-align: right;
    line-height: 1.2;
}

.service-details-simple {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #6b7280;
    font-size: 14px;
    margin-top: 8px;
}

.service-time-simple, .service-staff-simple {
    display: flex;
    align-items: center;
    gap: 6px;
}

.service-time-simple span, .service-staff-simple span {
    font-size: 14px;
}

.appointment-actions {
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.btn-view-sale {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display:none;
}

.btn-view-sale:hover {
    background: #f9fafb;
    text-decoration: none;
}

/* Sale Items */
.sale-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    transition: box-shadow 0.2s ease;
}

.sale-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.sale-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.sale-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.sale-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: #d1fae5;
    color: #065f46;
}

.sale-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
}

.sale-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.sale-location, .sale-payment {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
}

.sale-services {
    margin-bottom: 20px;
}

.services-header {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px 0;
}

.sale-service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f9fafb;
}

.sale-service-item:last-child {
    border-bottom: none;
}

.sale-service-name {
    font-size: 16px;
    color: #111827;
    text-transform: capitalize;
}

.sale-service-price {
    font-size: 16px;
    font-weight: 600;
    color: #059669;
}

/* Sale Breakdown */
.sale-breakdown {
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
    margin-bottom: 16px;
}

.breakdown-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.breakdown-line:last-child {
    margin-bottom: 0;
}

.breakdown-label {
    color: #6b7280;
}

.breakdown-amount {
    font-weight: 600;
    color: #111827;
}

.breakdown-line.discount .breakdown-amount {
    color: #dc2626;
}

.sale-total {
    border-top: 2px solid #e5e7eb;
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sale-total-label {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.sale-total-amount {
    font-size: 20px;
    font-weight: 700;
    color: #059669;
}

/* Product Items */
.product-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    transition: box-shadow 0.2s ease;
}

.product-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

.product-name {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.product-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: #d1fae5;
    color: #065f46;
}

.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-code, .product-date, .product-location, .product-payment {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
}

.product-pricing {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-quantity, .product-unit-price, .product-discount, .product-total {
    font-size: 14px;
}

.product-quantity {
    color: #6b7280;
}

.product-unit-price {
    color: #6b7280;
}

.product-discount {
    color: #dc2626;
    font-weight: 600;
}

.product-total {
    font-size: 16px;
    font-weight: 700;
    color: #059669;
}

.product-description {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

/* Voucher Card Styles */
.voucher-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    transition: box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.voucher-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.voucher-value {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}

.voucher-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.voucher-status.status-active {
    background: #d1fae5;
    color: #065f46;
}

.voucher-status.status-partial {
    background: #fef3c7;
    color: #92400e;
}

.voucher-status.status-used {
    background: #f3f4f6;
    color: #6b7280;
}

.voucher-details {
    margin-bottom: 24px;
}

.voucher-date, .voucher-code, .voucher-balance {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #6b7280;
    font-size: 14px;
}

.voucher-date .icon, .voucher-code .icon, .voucher-balance .icon {
    width: 16px;
    height: 16px;
    color: #9ca3af;
}

.balance-amount {
    font-weight: 600;
    color: #059669;
    font-size: 16px;
}

.voucher-used-amount {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.voucher-actions {
    display: flex;
    gap: 12px;
}

.btn-view-sale, .btn-view-activity {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-view-sale:hover, .btn-view-activity:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.btn-view-sale .icon, .btn-view-activity .icon {
    width: 16px;
    height: 16px;
}

/* Legacy voucher styles for backward compatibility */
.voucher-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    transition: box-shadow 0.2s ease;
}

.voucher-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.voucher-amount {
    font-size: 24px;
    font-weight: 700;
    color: #059669;
}

.voucher-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.voucher-name, .voucher-code, .voucher-date, .voucher-expiry {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
}

.voucher-name {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.icon-sm {
    width: 14px;
    height: 14px;
    color: #6b7280;
}

.voucher-amounts {
    text-align: right;
}

.voucher-original, .voucher-used, .voucher-remaining {
    margin-bottom: 8px;
    font-size: 14px;
}

.voucher-original {
    color: #6b7280;
}

.voucher-used {
    color: #dc2626;
}

.voucher-remaining {
    font-size: 16px;
    font-weight: 600;
    color: #059669;
}

/* Voucher Activity Modal */
.voucher-activity-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.voucher-activity-modal.show {
    opacity: 1;
    visibility: visible;
}

.voucher-activity-modal.hiding {
    opacity: 0;
    visibility: hidden;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header {
    padding: 24px 24px 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
}

.modal-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    color: #6b7280;
    transition: background-color 0.2s ease;
}

.modal-close:hover {
    background: #f3f4f6;
}

.modal-body {
    padding: 24px;
}

/* Voucher Activity Card */
.voucher-activity-card {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    color: white;
    position: relative;
    overflow: hidden;
}

.voucher-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.lushways-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #fbbf24;
    letter-spacing: 2px;
}

.logo-icon {
    width: 24px;
    height: 24px;
    color: #fbbf24;
}

.voucher-card-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.customer-name {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.voucher-code-display {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
}

.voucher-code-display .code {
    font-family: monospace;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    color: white;
}

.copy-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.copy-btn:hover {
    color: white;
}

.voucher-amounts-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
}

.amount-section {
    text-align: center;
}

.amount-value {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.voucher-status-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* Activity Section */
.activity-section {
    margin-top: 24px;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 16px;
}

.activity-title h3 {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.activity-subtitle {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.activity-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.export-pdf-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.export-pdf-btn:hover {
    background: #2563eb;
}

.activity-stats {
    display: flex;
    align-items: center;
    gap: 12px;
}

.transaction-count {
    font-size: 14px;
    color: #6b7280;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.status-active {
    background: #d1fae5;
    color: #065f46;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.activity-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.activity-amount {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.activity-date {
    font-size: 14px;
    color: #6b7280;
}

.view-sale-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-sale-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* Membership Items */
.membership-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    transition: box-shadow 0.2s ease;
}

.membership-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

.membership-name {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.membership-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.membership-status.status-active {
    background: #d1fae5;
    color: #065f46;
}

.membership-status.status-new {
    background: #dbeafe;
    color: #1e40af;
}

.membership-status.status-expired {
    background: #f3f4f6;
    color: #6b7280;
}

.membership-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
    margin-bottom: 16px;
}

.membership-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.membership-type, .membership-service, .membership-date, .membership-expiry {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
}

.membership-type {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.membership-sessions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sessions-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.sessions-progress {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #059669;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.sessions-text {
    font-size: 14px;
    color: #6b7280;
}

.sessions-remaining {
    font-size: 14px;
    font-weight: 600;
    color: #059669;
}

.membership-price {
    font-size: 20px;
    font-weight: 700;
    color: #059669;
    text-align: right;
}

/* Loading and Empty States */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    font-size: 16px;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #6b7280;
}

.empty-state h3 {
    margin: 0 0 10px 0;
    color: #374151;
    font-size: 20px;
    font-weight: 600;
}

.empty-state p {
    margin: 0;
    font-size: 16px;
}

/* Message States */
.message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 14px;
}

.message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.message.error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}
.appointment-header:hover, .sale-item:hover, .product-item:hover, .voucher-item:hover, .membership-item:hover{
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);

}
.voucherbalance{
    font-size: 10px;
    margin-left: 5px;
    background: #f3f4f6;
    padding: 5px;
    border-radius: 10px;
    color: #9333ea;
}
/* Responsive Design */
@media (max-width: 1200px) {
    .dashboard-layout {
        grid-template-columns: 300px 220px 1fr;
    }
    
    .dashboard-column-1 {
        padding: 30px 20px;
    }
    
    .dashboard-column-3 {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .supabase-dashboard{
        margin: -15px;
    }
    .dashboard-layout {
        grid-template-columns: 1fr;
        height: auto;
        display:block;
    }
    
    .dashboard-column-1 {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding: 0px;
    }
    profile-avatar {
    width: 80px;
    height: 80px;
    }
    .profile-name {
    font-size: 32px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.2;
    }
    .profile-phone {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 0px;
    letter-spacing: 0.025em;
}
.profile-dob, .profile-created {
    display: block;
    align-items: center;
    margin-bottom: 15px;
    color: #6b7280;
    font-size: 16px;
}
    
    .dashboard-column-2 {
        border-right: none;
        border-bottom: 0px solid #e5e7eb;
        padding: 10px;
    }
    
    .dashboard-column-2 {
    background: #ffffff;
    padding: 20px 10px;
    border-right: 1px solid #e5e7eb;
}

.dashboard-column-3 {
        padding: 0px 20px;
    }
    .tab-navigation {
        flex-direction: row;
        overflow-x: auto;
        gap: 4px;
    }
    
    .tab-item {
        white-space: nowrap;
        padding:10px;
        justify-content: center;
        background: #fff;
        border: 1px solid #e5e7eb;
    }
    .tab-item.active{
        background: #f3f4f6;
    color: #111827;
    border-color: #d1d5db;
        
    }
    
        .section-title {
    font-size: 23px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 20px 0;
    line-height: 1.1;
}

 .tab-navigation.fixed {
    position: fixed;
    top: var(--header-height, 0px);
    left: 0;
    right: 0;
    z-index: 99;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  .content-list {
    overflow-y: auto;
    max-height: 400px;
    padding: 10px;
  }
  .voucher-amount {
    font-size: 16px;
    font-weight: 700;
    color: #059669;
}

.latepoint-w .os-form-group.os-form-phonefield-group .lp_iti__selected-flag {
    padding: 14px 4px 12px 10px!important;
}

    
}
/* Sale actions */
.sale-actions {
    display: flex;
    justify-content: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}
.fallback-icon{
    font-size:10px;
}
.latepoint .lp_iti__selected-flag, .latepoint-admin .lp_iti__selected-flag{
    padding: 14px 6px 12px 0;
}
.latepoint-w .os-form-group.os-form-phonefield-group:not(.os-form-group-simple).has-value .lp_iti__selected-flag
Specificity: (0,6,0)
 {
    padding-top: 15px;
    padding-bottom: 15px;
}
.latepoint-w .os-form-group.os-form-phonefield-group:not(.os-form-group-simple).has-value input.os-form-control.os-mask-phone {
    padding-left: 0 !important;
    padding-top: 15px !important;
}
.latepoint .lp_iti__selected-flag, .latepoint-admin .lp_iti__selected-flag{
    padding: 12px 6px 12px 0;
}
.latepoint-w .os-form-group.os-form-phonefield-group .lp_iti__selected-flag {
    padding: 12px 4px 12px 10px!important;
}
