:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --background: #f3f4f6;
    --surface: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --error: #ef4444;
    --success: #10b981;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --radius: 0.75rem;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Auth Screen */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-height: 80vh;
}

.auth-box {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.auth-box h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.auth-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Social Buttons */
.social-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-family);
}

.social-btn:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

.google-icon {
    flex-shrink: 0;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.divider::before {
    margin-right: 0.5em;
}

.divider::after {
    margin-left: 0.5em;
}

.divider-small {
    margin: 1rem 0;
    border-top: 1px solid var(--border);
}

/* Auth Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input[type="email"],
input[type="password"],
input[type="tel"],
input[type="text"],
input[type="date"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s;
    font-family: var(--font-family);
}

input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.primary-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: var(--font-family);
}

.primary-btn:hover {
    background-color: var(--primary-hover);
}

.secondary-btn {
    background-color: white;
    color: var(--text-main);
    border: 1px solid var(--border);
    padding: 0.75rem;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-family);
}

.secondary-btn:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

.text-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.25rem;
    text-decoration: underline;
    font-family: var(--font-family);
}

.text-btn:hover {
    color: var(--text-main);
}

.toggle-link {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.toggle-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    margin-left: 0.25rem;
}

.toggle-link a:hover {
    text-decoration: underline;
}

.error-text {
    margin-top: 1rem;
    color: var(--error);
    font-size: 0.875rem;
    background: #fef2f2;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Phone Form */
#otpGroup {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* App Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

header h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-right: 0.5rem;
}

.add-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-family);
}

.add-btn:hover {
    background-color: var(--primary-hover);
}

.logout-btn {
    background: none;
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    font-family: var(--font-family);
}

.logout-btn:hover {
    background-color: #f9fafb;
}

/* Main Content & Grid */
.lists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.list-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.list-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.list-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.list-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.list-owner {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    display: block;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.badge.public {
    background-color: #ecfdf5;
    color: #059669;
}

.badge.private {
    background-color: #f3f4f6;
    color: #4b5563;
}

.empty-state,
.loading {
    text-align: center;
    padding: 4rem;
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50;
    backdrop-filter: blur(2px);
}

.modal {
    background: var(--surface);
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
}

.modal-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
}

/* Radio Cards */
.radio-group {
    display: flex;
    gap: 1rem;
}

.radio-label {
    flex: 1;
    cursor: pointer;
    position: relative;
}

.radio-label input {
    position: absolute;
    opacity: 0;
}

.radio-text {
    display: block;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.2s;
}

.radio-label input:checked+.radio-custom+.radio-text {
    border-color: var(--primary);
    background-color: #eef2ff;
    color: var(--primary);
}

.radio-text strong {
    display: block;
    margin-bottom: 0.25rem;
}

.sub-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

.radio-label input:checked+.radio-custom+.radio-text .sub-text {
    color: #6366f1;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 2rem;
}

/* Landing Page */
.list-landing {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-height: 60vh;
    display: flex;
    flex-direction: column;
}

.landing-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    font-size: 0.95rem;
}

.back-btn:hover {
    color: var(--primary);
}

.landing-content {
    padding: 3rem;
    flex: 1;
}

.landing-info {
    text-align: center;
    margin-bottom: 3rem;
}

.landing-info h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.meta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 1rem;
}

.meta-separator {
    opacity: 0.5;
}

.action-area {
    margin-top: 2rem;
}

.large-btn {
    font-size: 1.125rem;
    padding: 1rem 3rem;
    border-radius: 9999px;
}

.creator-section {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.count-badge {
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    vertical-align: middle;
}

.guests-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.guest-card {
    background: #f9fafb;
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 0.5rem;
}

.guest-name {
    font-weight: 600;
    display: block;
}

.guest-phone {
    font-size: 0.875rem;
    color: var(--text-muted);
}/* ... Previous styles ... */
/* Append these to the end of style.css */

/* Tabs */
.tabs-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.tab-btn:hover {
    background-color: #f3f4f6;
    color: var(--text-main);
}

.tab-btn.active {
    background-color: var(--primary);
    color: white;
}

/* List Card Actions */
.card-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s;
}

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

.icon-btn {
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.4rem;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

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

.icon-btn.delete:hover {
    color: var(--error);
    border-color: var(--error);
}

/* Empty Actions */
.empty-actions {
    text-align: center;
    margin-top: 1rem;
}/* ... Previous styles ... */
/* Append these to current style.css */

.large-modal {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.checkbox-group {
    display: flex;
    gap: 1.5rem;
    padding: 0.75rem;
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-weight: 400;
    cursor: pointer;
}

textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    resize: vertical;
}

/* Event Landing Page Styles */
.landing-hero {
    position: relative;
    height: 300px;
    background-color: #1a1a1a;
    /* fallback */
    background-size: cover;
    background-position: center;
    border-radius: var(--radius) var(--radius) 0 0;
}

.landing-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.hero-content {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    color: white;
    z-index: 10;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.event-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: var(--radius);
}

.meta-item label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.meta-item span {
    font-weight: 600;
    color: var(--text-main);
}

.event-description {
    margin-bottom: 2rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.perks-badge {
    background: #e0e7ff;
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-block;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}/* ... Previous styles ... */
/* Append these to current style.css */

/* Status Modal */
.status-modal {
    max-width: 400px;
    text-align: center;
    padding: 2rem;
}

.status-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Icons */
.status-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.status-icon.success {
    background-color: #ecfdf5;
    color: #059669;
}

.status-icon.success::after {
    content: '✓';
}

.status-icon.error {
    background-color: #fef2f2;
    color: #dc2626;
}

.status-icon.error::after {
    content: '!';
}

#statusTitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

#statusMessage {
    color: var(--text-muted);
}/* Update currently inside style.css */
/* Add these styles for the toggle */
.flyer-type-toggle {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.flyer-type-toggle label {
    font-weight: normal;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

#flyerUrlInputGroup input,
#editFlyerUrlInputGroup input {
    margin-top: 5px;
}