html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

#loadingDiv {
    position: absolute;
    top: 0;
    left: 0;
    margin: auto;
    width: 100%;
    height: 100%;
    background-color: #222222;
    z-index: 9999;
}

.fa-beat, .fa-bounce, .fa-fade, .fa-beat-fade, .fa-flip, .fa-pulse, .fa-shake, .fa-spin, .fa-spin-pulse {
    animation-duration: 2s;
    animation-iteration-count: infinite;
}

/* Dashboard styles moved from Views/Auth/Dashboard.cshtml */
.dashboard-wrapper {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    color: #fff;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.dashboard-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    backdrop-filter: blur(10px);
}

.role-badge.vendor {
    background: rgba(255, 215, 0, 0.3);
}

.header-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.header-stat {
    text-align: center;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.header-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    display: block;
}

.header-stat-label {
    font-size: 0.8rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-actions {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-gradient-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: #fff;
}

.btn-action {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #495057;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-action:hover {
    background: #fff;
    border-color: #667eea;
    color: #667eea;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title i {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.event-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
}
.event-card:is(.dark *) {
    --tw-bg-opacity: 1;
    color:black;
    background-color: rgb(39 49 66 / var(--tw-bg-opacity, 1));
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.event-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.25rem 1.5rem;
    color: #fff;
    position: relative;
}

.event-card-header.cohost {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.event-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.25);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.event-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    padding-right: 4rem;
}

.event-date {
    font-size: 0.9rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-card-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.event-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.event-stat:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgba(255, 255, 255, 0.15);
}

.event-stat {
    text-align: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.event-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
    display: block;
}

.event-stat-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
}

.event-stat.pending .event-stat-value {
    color: #f59e0b;
}

.event-code {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-family: monospace;
    color: #495057;
}

    .event-code:is(.dark *) {
        --tw-bg-opacity: 1;
        background-color: rgba(255, 255, 255, 0.15);
    }

.event-code i {
    color: #667eea;
}

.event-card-footer {
    padding: 1rem 1.5rem;
    background: #fafbfc;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

    .event-card-footer:is(.dark *) {
        --tw-bg-opacity: 1;
        background-color: rgb(39 49 66 / var(--tw-bg-opacity, 1));
    }

.btn-card {
    flex: 1;
    min-width: 80px;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-card-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
}

.btn-card-primary:hover {
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-card-secondary {
    background: #fff;
    color: #495057;
    border: 1px solid #e9ecef;
}
    .btn-card-secondary:is(.dark *) {
        --tw-bg-opacity: 1;
        background-color: rgba(255, 255, 255, 0.15);
        color:white;
    }

.btn-card-secondary:hover {
    background: #f8f9fa;
    color: #667eea;
    border-color: #667eea;
}

.empty-state {
    background: #fff;
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.empty-state-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.empty-state-icon i {
    font-size: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.empty-state h4 {
    color: #1a1a2e;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.upgrade-banner {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.upgrade-banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.upgrade-banner-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
}

.upgrade-banner h5 {
    color: #1a1a2e;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.upgrade-banner p {
    color: #6c757d;
    margin: 0;
    font-size: 0.9rem;
}

.cohost-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.alert-custom {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.5rem;
}

.alert-success-custom {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    color: #065f46;
}

.alert-danger-custom {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
    color: #991b1b;
}

@media (max-width: 768px) {
    .dashboard-header {
        padding: 1.5rem;
    }

    .dashboard-header h1 {
        font-size: 1.5rem;
    }

    .header-stats {
        gap: 1rem;
    }

    .header-stat {
        padding: 0.5rem 1rem;
    }

    .header-stat-value {
        font-size: 1.25rem;
    }

    .quick-actions {
        padding: 1rem;
    }

    .event-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .upgrade-banner {
        flex-direction: column;
        text-align: center;
    }

    .upgrade-banner-content {
        flex-direction: column;
    }
}

.dashboard-wrapper {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    color: #fff;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

    .dashboard-header h1 {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
    }

.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    backdrop-filter: blur(10px);
}

    .role-badge.vendor {
        background: rgba(255, 215, 0, 0.3);
    }

.header-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.header-stat {
    text-align: center;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.header-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    display: block;
}

.header-stat-label {
    font-size: 0.8rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-actions {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

    .quick-actions:is(.dark *) {
        --tw-bg-opacity: 1;
        background-color: rgb(39 49 66 / var(--tw-bg-opacity, 1));
    }

.btn-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

    .btn-gradient-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
        color: #fff;
    }

.btn-action {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #495057;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

    .btn-action:is(.dark *) {
        --tw-bg-opacity: 1;
        background-color: rgba(255, 255, 255, 0.15);
    }

    .btn-action:hover {
        background: #fff;
        border-color: #667eea;
        color: #667eea;
    }

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

    .section-title i {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

.event-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
}

    .event-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
        border-color: rgba(102, 126, 234, 0.3);
    }

.event-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.25rem 1.5rem;
    color: #fff;
    position: relative;
}

    .event-card-header.cohost {
        background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    }

.event-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.25);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.event-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    padding-right: 4rem;
}

.event-date {
    font-size: 0.9rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-card-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.event-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.event-stat {
    text-align: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.event-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
    display: block;
}

.event-stat-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
}

.event-stat.pending .event-stat-value {
    color: #f59e0b;
}

.event-code {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-family: monospace;
    color: #495057;
}

    .event-code i {
        color: #667eea;
    }

.event-card-footer {
    padding: 1rem 1.5rem;
    background: #fafbfc;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-card {
    flex: 1;
    min-width: 80px;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-card-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
}

    .btn-card-primary:hover {
        color: #fff;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    }

.btn-card-secondary {
    background: #fff;
    color: #495057;
    border: 1px solid #e9ecef;
}

    .btn-card-secondary:hover {
        background: #f8f9fa;
        color: #667eea;
        border-color: #667eea;
    }

.empty-state {
    background: #fff;
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.empty-state-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

    .empty-state-icon i {
        font-size: 3rem;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

.empty-state h4 {
    color: #1a1a2e;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.upgrade-banner {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.upgrade-banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.upgrade-banner-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
}

.upgrade-banner h5 {
    color: #1a1a2e;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.upgrade-banner p {
    color: #6c757d;
    margin: 0;
    font-size: 0.9rem;
}

.cohost-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.alert-custom {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.5rem;
}

.alert-success-custom {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    color: #065f46;
}

.alert-danger-custom {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
    color: #991b1b;
}

@@media (max-width: 768px) {
    .dashboard-header {
        padding: 1.5rem;
    }

        .dashboard-header h1 {
            font-size: 1.5rem;
        }

    .header-stats {
        gap: 1rem;
    }

    .header-stat {
        padding: 0.5rem 1rem;
    }

    .header-stat-value {
        font-size: 1.25rem;
    }

    .quick-actions {
        padding: 1rem;
    }

    .event-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .upgrade-banner {
        flex-direction: column;
        text-align: center;
    }

    .upgrade-banner-content {
        flex-direction: column;
    }
}
