/**
 * Wedding Registration Styles
 * Theme: Mint, Blue, Green
 */

:root {
    /* Primary Colors */
    --color-primary: #4fd1c5;
    --color-primary-light: #81e6d9;
    --color-primary-dark: #319795;

    /* Secondary Colors */
    --color-secondary: #63b3ed;
    --color-secondary-light: #90cdf4;
    --color-secondary-dark: #3182ce;

    /* Accent Colors */
    --color-accent: #48bb78;
    --color-accent-light: #68d391;
    --color-accent-dark: #38a169;

    /* Neutral Colors */
    --color-background: #f7fafc;
    --color-surface: #ffffff;
    --color-text-primary: #2d3748;
    --color-text-secondary: #4a5568;
    --color-text-light: #718096;
    --color-border: #e2e8f0;

    /* Status Colors */
    --color-success: #48bb78;
    --color-error: #f56565;
    --color-warning: #ed8936;
    --color-info: #4299e1;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --gradient-accent: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--gradient-primary);
    min-height: 100vh;
    color: var(--color-text-primary);
    line-height: 1.6;
    padding: var(--spacing-lg);
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
}

/* Card */
.card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-2xl);
    margin-bottom: var(--spacing-lg);
    animation: slideUp 0.5s ease;
}

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

/* Header */
.header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.header h1 {
    font-size: 2.5rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
}

.header .subtitle {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
}

.header .date {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-top: var(--spacing-xs);
}

/* Token Input Section */
.token-section {
    text-align: center;
}

.token-section h2 {
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
}

.token-section p {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
}

/* Form Styles */
.form-group {
    margin-bottom: var(--spacing-lg);
}

label {
    display: block;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79, 209, 197, 0.1);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

/* Checkbox Styles */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.checkbox-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    background: var(--color-background);
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    transition: all var(--transition-base);
    cursor: pointer;
}

.checkbox-item:hover {
    background: rgba(79, 209, 197, 0.05);
    border-color: var(--color-primary-light);
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: var(--spacing-md);
    cursor: pointer;
    accent-color: var(--color-primary);
}

.checkbox-item label {
    margin: 0;
    cursor: pointer;
    flex: 1;
}

/* Button Styles */
.button {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--gradient-accent);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    text-decoration: none;
    text-align: center;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.button:active {
    transform: translateY(0);
}

.button-full {
    width: 100%;
}

.button-secondary {
    background: var(--color-text-light);
}

/* Steps Indicator */
.steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--spacing-2xl);
    gap: var(--spacing-md);
}

.step {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-border);
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all var(--transition-base);
}

.step.active .step-number {
    background: var(--gradient-accent);
    color: white;
    box-shadow: var(--shadow-md);
}

.step.completed .step-number {
    background: var(--color-success);
    color: white;
}

.step-text {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.step-divider {
    width: 40px;
    height: 2px;
    background: var(--color-border);
}

/* Alert Messages */
.alert {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    border-left: 4px solid;
}

.alert-success {
    background: rgba(72, 187, 120, 0.1);
    border-color: var(--color-success);
    color: var(--color-success);
}

.alert-error {
    background: rgba(245, 101, 101, 0.1);
    border-color: var(--color-error);
    color: var(--color-error);
}

.alert-info {
    background: rgba(66, 153, 225, 0.1);
    border-color: var(--color-info);
    color: var(--color-info);
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Dashboard Styles */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.stat-card {
    background: var(--gradient-accent);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    color: white;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--color-background);
}

th {
    text-align: left;
    padding: var(--spacing-md);
    font-weight: 600;
    color: var(--color-text-primary);
    border-bottom: 2px solid var(--color-border);
}

td {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
}

tr:hover {
    background: rgba(79, 209, 197, 0.05);
}

/* Badge */
.badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(72, 187, 120, 0.2);
    color: var(--color-success);
}

.badge-error {
    background: rgba(245, 101, 101, 0.2);
    color: var(--color-error);
}

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

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .card {
        padding: var(--spacing-lg);
    }

    .steps {
        flex-direction: column;
    }

    .step-divider {
        width: 2px;
        height: 30px;
    }

    .dashboard-header {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: var(--spacing-sm);
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    .card {
        box-shadow: none;
        page-break-inside: avoid;
    }

    .button {
        display: none;
    }
}
