/* Swizzle Events - Custom Styles */

/* Color Variables */
:root {
    --color-coral: #F5A962;
    --color-pink: #E88AB4;
    --color-purple: #9B8AC4;
    --color-navy: #1E2A4A;
    --color-yellow: #F5E06D;
    --color-light-gray: #F8FAFC;
}

/* Primary Gradient */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--color-coral) 0%, var(--color-pink) 50%, var(--color-purple) 100%);
}

.bg-gradient-primary-hover:hover {
    background: linear-gradient(135deg, #e69a55 0%, #d97aa3 50%, #8a79b3 100%);
}

/* Text Colors */
.text-navy {
    color: var(--color-navy);
}

.text-coral {
    color: var(--color-coral);
}

.text-pink {
    color: var(--color-pink);
}

.text-purple {
    color: var(--color-purple);
}

/* Border Colors */
.border-coral {
    border-color: var(--color-coral);
}

.border-pink {
    border-color: var(--color-pink);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--color-coral) 0%, var(--color-pink) 50%, var(--color-purple) 100%);
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e69a55 0%, #d97aa3 50%, #8a79b3 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 138, 180, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--color-navy);
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 2px solid var(--color-navy);
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--color-navy);
    color: white;
}

.btn-danger {
    background: #EF4444;
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-danger:hover {
    background: #DC2626;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #E5E7EB;
}

.card-body {
    padding: 1.5rem;
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-success {
    background: #D1FAE5;
    color: #065F46;
}

.badge-warning {
    background: #FEF3C7;
    color: #92400E;
}

.badge-danger {
    background: #FEE2E2;
    color: #991B1B;
}

.badge-info {
    background: #DBEAFE;
    color: #1E40AF;
}

.badge-gray {
    background: #F3F4F6;
    color: #374151;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: white;
    border-right: 1px solid #E5E7EB;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 40;
    transition: transform 0.3s ease;
}

.sidebar-hidden {
    transform: translateX(-100%);
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #6B7280;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    margin: 0.25rem 0.75rem;
}

.sidebar-link:hover {
    background: var(--color-light-gray);
    color: var(--color-navy);
}

.sidebar-link.active {
    background: linear-gradient(135deg, rgba(245, 169, 98, 0.1) 0%, rgba(232, 138, 180, 0.1) 50%, rgba(155, 138, 196, 0.1) 100%);
    color: var(--color-pink);
}

.sidebar-link svg {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
}

/* Main Content */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
    background: var(--color-light-gray);
}

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }
}

/* Form Styles */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-pink);
    box-shadow: 0 0 0 3px rgba(232, 138, 180, 0.2);
}

.form-input.error {
    border-color: #EF4444;
}

.form-error {
    color: #EF4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

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

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

.table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6B7280;
    background: #F9FAFB;
    border-bottom: 1px solid #E5E7EB;
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid #E5E7EB;
    font-size: 0.875rem;
    color: var(--color-navy);
}

.table tr:hover {
    background: #F9FAFB;
}

/* Check-in Status Dots */
.status-dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.checked {
    background: #10B981;
}

.status-dot.pending {
    background: #D1D5DB;
}

/* Check-in Table Cells */
.table th.text-center,
.table td.text-center {
    text-align: center;
}

.table td .flex.flex-col {
    min-height: 50px;
}

/* Check-in Points Table */
.checkin-table {
    width: 100%;
    table-layout: fixed;
}

.checkin-table th,
.checkin-table td {
    text-align: center;
    vertical-align: middle;
}

.checkin-table th:nth-child(2),
.checkin-table td:nth-child(2) {
    text-align: left;
}

.checkin-table td:first-child {
    vertical-align: middle;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

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

.modal {
    background: white;
    border-radius: 1rem;
    max-width: 32rem;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 1.5rem;
}

.tab {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6B7280;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab:hover {
    color: var(--color-navy);
}

.tab.active {
    color: var(--color-pink);
    border-bottom-color: var(--color-pink);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
    min-width: 12rem;
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transition: all 0.2s ease;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    color: #374151;
    transition: background 0.2s ease;
}

.dropdown-item:hover {
    background: #F3F4F6;
}

/* QR Code Container */
.qr-container {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    display: inline-block;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Powered by Footer */
.powered-by {
    text-align: center;
    padding: 1rem;
    font-size: 0.75rem;
    color: #9CA3AF;
}

.powered-by a {
    color: var(--color-pink);
    font-weight: 500;
}

/* Stats Card */
.stat-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #E5E7EB;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-navy);
}

.stat-label {
    font-size: 0.875rem;
    color: #6B7280;
    margin-top: 0.25rem;
}

/* Check-in Button (Mobile) */
.checkin-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 0.75rem;
    min-height: 56px;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 60;
    transform: translateY(1rem);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success {
    background: #10B981;
    color: white;
}

.toast-error {
    background: #EF4444;
    color: white;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pagination-btn {
    padding: 0.5rem 0.75rem;
    border: 1px solid #E5E7EB;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: #374151;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    background: #F3F4F6;
}

.pagination-btn.active {
    background: var(--color-pink);
    border-color: var(--color-pink);
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.empty-state-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    color: #D1D5DB;
}

.empty-state-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
}

.empty-state-text {
    color: #6B7280;
    font-size: 0.875rem;
}
