/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Prompt:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #4E2A84;
    /* SCB Purple */
    --accent-color: #F3C623;
    /* SCB Gold/Yellow */
    --accent-hover: #D4A017;
    /* Darker Gold */
    --bg-color: #F5F3FF;
    /* Very Light Purple Tint */
    --card-bg: #FFFFFF;
    --text-color: #333333;
    --text-muted: #666666;
    --border-color: #E2E8F0;
    --accent-gradient: linear-gradient(135deg, #F3C623 0%, #FFD700 100%);
    /* Gold Gradient */
    --avatar-gradient: linear-gradient(135deg, #4E2A84 0%, #7038A0 100%);
    /* Purple Gradient */
    --shadow-sm: 0 4px 6px -1px rgba(78, 42, 132, 0.1), 0 2px 4px -1px rgba(78, 42, 132, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(78, 42, 132, 0.1), 0 4px 6px -2px rgba(78, 42, 132, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(78, 42, 132, 0.1), 0 8px 10px -6px rgba(78, 42, 132, 0.05);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Prompt', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

button,
input,
textarea,
select {
    font-family: 'Prompt', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-font {
    font-family: 'Playfair Display', serif;
}

/* App Container */
.app-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--bg-color);
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.05);
}

.app-container h1,
.app-container h2,
.app-container h3,
.app-container h4,
.app-container h5,
.app-container h6 {
    font-family: 'Prompt', sans-serif;
}

/* Header */
.app-header {
    background: linear-gradient(135deg, #4E2A84 0%, #30135d 100%);
    padding: 1.5rem 1.25rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: none;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    box-shadow: 0 10px 30px rgba(78, 42, 132, 0.2);
    margin-bottom: 1rem;
}

.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.header-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.app-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.12);
}

/* Search */
.search-container {
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    background: #fff;
    transition: all 0.3s;
    border: none;
    margin-top: 0.5rem;
}

.search-container:focus-within {
    box-shadow: 0 12px 24px rgba(243, 198, 35, 0.25);
    transform: translateY(-2px);
}

.search-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    /* padding-left increased for icon */
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    background: transparent;
    outline: none;
    color: var(--text-color);
    font-family: 'Prompt', sans-serif;
}

.search-input::placeholder {
    color: #94A3B8;
}

.search-icon {
    position: absolute;
    left: 16px;
    /* Move to left */
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.1rem;
    opacity: 0.7;
    pointer-events: none;
}

/* Buttons */
.btn-new-customer {
    background-color: var(--primary-color);
    color: #fff;
    /* White icon on Purple button */
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(76, 29, 149, 0.4);
    z-index: 1000;
}

.btn-new-customer.fab {
    position: fixed;
    bottom: 90px;
    /* Moved up to avoid nav bar */
    right: 24px;
    z-index: 999;
    /* Ensure it's above content but below modals (usually 1000+) */
}

.btn-new-customer:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 8px 24px rgba(78, 42, 132, 0.5);
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-new-customer i {
    font-size: 1.5rem;
}

/* Customer List */
.customer-list {
    padding: 1rem;
    position: relative;
    min-height: 300px;
}

/* Pull to Refresh */
.pull-to-refresh {
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: top 0.2s;
    z-index: 10;
}

.pull-to-refresh.visible {
    top: 10px;
}

.pull-to-refresh .spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(78, 42, 132, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.customer-card {
    background: var(--card-bg);
    border: 1px solid white;
    border-radius: 20px;
    padding: 0;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

@media (hover: hover) {
    .customer-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
        border-color: var(--accent-color);
    }
}

.card-content {
    padding: 1.5rem;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

/* Avatar styling */
.customer-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--avatar-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 4px 6px -1px rgba(102, 126, 234, 0.25);
    font-family: 'Prompt', sans-serif;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-info {
    flex: 1;
    min-width: 0;
}

.customer-nickname {
    font-family: 'Prompt', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
}

.customer-fullname {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
}

.status-badge.success {
    background-color: #f0fdf4;
    color: #15803d;
    border: 1px solid #dcfce7;
}

.card-body {
    background-color: #f8fafc;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 8px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-row .icon {
    color: #94a3b8;
    margin-top: 3px;
    width: 16px;
    text-align: center;
}

.info-row .text {
    flex: 1;
    line-height: 1.4;
}

.card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}



.name-icon {
    font-size: 0.7em;
    color: var(--accent-color);
}

.customer-fullname {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 400;
}

.customer-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #F1F5F9;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-color);
    border: 1px solid transparent;
    transition: all 0.2s;
}

.contact-chip:hover {
    border-color: var(--accent-color);
    background-color: #fff;
}

.contact-chip i {
    font-size: 0.8em;
    color: var(--accent-color);
}

.contact-chip.muted {
    background-color: transparent;
    color: var(--text-muted);
    padding-left: 0;
}

.customer-address {
    font-size: 0.85rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 6px;
}

.customer-address::before {
    content: '\f3c5';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--text-muted);
    font-size: 0.8em;
}

/* Action buttons */
.customer-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s;
}

.customer-card:hover .customer-actions {
    opacity: 1;
}



/* Action Buttons (Global) */
.mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.action-btn {
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Prompt', sans-serif;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
}

@media (hover: hover) {
    .action-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
}

.action-btn.measure {
    background: linear-gradient(135deg, var(--accent-color) 0%, #B08D45 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(197, 160, 89, 0.3);
}

.action-btn.measure:hover {
    box-shadow: 0 6px 15px rgba(197, 160, 89, 0.4);
}

.action-btn.profile {
    background-color: #fff;
    color: var(--primary-color);
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.action-btn.profile:hover {
    border-color: var(--primary-color);
    background-color: #f8fafc;
}

.action-btn i {
    font-size: 1em;
}

@media (max-width: 768px) {
    .customer-actions {
        opacity: 1;
    }
}

.icon-btn {
    background: #fff;
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-muted);
    box-shadow: var(--shadow-sm);
}

.icon-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.icon-btn.call {
    color: var(--primary-color);
}

.icon-btn.call:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.icon-btn.danger:hover {
    background-color: #ef4444;
    border-color: #ef4444;
}

/* Detail View */
.customer-detail-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    margin: 0 auto;
    border: 4px solid #fff;
    box-shadow: var(--shadow-lg);
    background: #f8fafc;
}

.customer-detail-avatar img,
.customer-detail-avatar .avatar-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f5f9;
    font-size: 3rem;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-around;
    padding: 12px 0 24px;
    /* Extra padding for iOS Home bar */
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    gap: 4px;
    transition: all 0.2s;
    width: 60px;
}

.nav-item i {
    font-size: 1.4rem;
    margin-bottom: 2px;
    transition: all 0.2s;
}

.nav-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-item.active i {
    color: var(--primary-color);
    transform: translateY(-2px);
    filter: drop-shadow(0 4px 6px rgba(78, 42, 132, 0.2));
}

/* Adjust main container to not be hidden by nav */
.app-container {
    padding-bottom: 80px;
}

.avatar-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.7);
    /* Primary color with opacity */
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    padding: 6px 0;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.customer-detail-avatar:hover .avatar-overlay {
    opacity: 1;
}

/* BP (BottomPanel) Styles - Luxury Theme */
.bp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    /* Dark navy overlay */
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

.bp-overlay.active {
    opacity: 1;
    visibility: visible;
}

.bp-sheet {
    background-color: #fff;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
    max-height: 92vh;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
}

.bp-overlay.active .bp-sheet {
    transform: translateY(0);
}

.bp-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-radius: 24px 24px 0 0;
}

.bp-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    font-family: 'Prompt', sans-serif;
    color: var(--primary-color);
}

.bp-close-btn {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0;
    transition: all 0.2s;
}

.bp-close-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.bp-content {
    overflow-y: auto;
    padding: 1.5rem;
    flex: 1;
}

body.bp-open {
    overflow: hidden;
}

/* Forms - Clean & Minimal */
.uni-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.uni-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.uni-upload-box {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    background: #f8fafc;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.uni-upload-box:hover {
    border-color: var(--accent-color);
    background: #fff;
    color: var(--primary-color);
}

.uni-upload-box i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.uni-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Prompt', sans-serif;
    transition: all 0.2s;
    background-color: #f8fafc;
}

.uni-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

.uni-input::placeholder {
    color: #cbd5e1;
}

/* Readonly/Disabled Input Style */
.uni-input:read-only,
.uni-input:disabled {
    background-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    border-color: transparent;
}

.uni-form__actions {
    margin-top: 2rem;
}

/* Global Button System - Luxury */
.btn-new-customer {
    background: linear-gradient(135deg, var(--accent-color) 0%, #B08D45 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Prompt', sans-serif;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-new-customer:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.4);
}

.btn-new-customer i {
    font-size: 0.9em;
}

/* Search Bar Polish */
.search-bar {
    position: relative;
    margin-bottom: 20px;
}

.search-bar input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: #fff;
    font-size: 1rem;
    font-family: 'Prompt', sans-serif;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.search-bar input:focus {
    outline: none;
    background: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.search-bar input:focus+.search-icon {
    color: var(--accent-color);
}

/* Primary & Ghost Buttons (Standardized) */
.uni-primary-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e293b 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.02em;
    font-family: 'Prompt', sans-serif;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.uni-primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.3);
}

.uni-ghost-btn {
    width: 100%;
    padding: 12px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    border-radius: 12px;
    font-weight: 600;
    font-family: 'Prompt', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.uni-ghost-btn:hover {
    border-color: var(--primary-color);
    background-color: #f8fafc;
    color: var(--primary-color);
}

.uni-form__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Status Dots */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

.status-green {
    background-color: #10b981;
}

.status-orange {
    background-color: #f59e0b;
}

.status-gray {
    background-color: #94a3b8;
}

.status-blue {
    background-color: #3b82f6;
}

/* Measurement Card */
.measure-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.measure-card:hover {
    border-color: var(--accent-color);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.measure-icon-wrap {
    position: relative;
    font-size: 1.25rem;
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f5f9;
    border-radius: 8px;
}

.measure-status {
    position: absolute;
    top: -2px;
    right: -2px;
}

.measure-text {
    flex: 1;
}

.measure-note {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
}

.measure-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Measurement Grid & Cards */
.measure-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.measure-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
}

.measure-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: #f8fafc;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.measure-text {
    flex: 1;
    min-width: 0;
}

.measure-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.measure-value-lg {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Prompt', sans-serif;
}

/* SweetAlert Customization - Luxury */
/* SweetAlert Customization - Luxury */
div:where(.swal2-container) {
    padding: 20px !important;
    /* Ensure generic padding */
}

div:where(.swal2-container) div:where(.swal2-popup) {
    border-radius: 20px !important;


    padding: 1.5em !important;
    font-family: 'Prompt',
        sans-serif !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    font-size: 0.9rem !important;
    /* Slightly smaller base font for mobile */
}

/* Fix iOS safe area overlapping */
@supports (-webkit-touch-callout: none) {
    div:where(.swal2-container) {
        padding-top: max(20px, env(safe-area-inset-top)) !important;
        padding-bottom: max(20px, env(safe-area-inset-bottom)) !important;
    }
}

div:where(.swal2-container) h2:where(.swal2-title) {
    font-family: 'Prompt', sans-serif !important;
    font-weight: 700 !important;
    color: var(--primary-color) !important;
    font-size: 1.5em !important;
}

.swal-uni__confirm {
    background: var(--primary-color) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 12px 32px !important;
    font-family: 'Prompt', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2) !important;
    transition: all 0.2s !important;
    letter-spacing: 0.02em !important;
    margin: 0 8px !important;
}

.swal-uni__confirm:hover {
    opacity: 0.9 !important;
    transform: translateY(-1px) !important;
}

.swal-uni__cancel {
    background: #f1f5f9 !important;
    color: var(--primary-color) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 14px !important;
    padding: 12px 32px !important;
    font-family: 'Prompt', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    margin: 0 8px !important;
}

.swal-uni__cancel:hover {
    background: #e2e8f0 !important;
}

/* Utility Classes */
.p-4 {
    padding: 1.5rem !important;
}