html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.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;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5I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I2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Product Card Styles */
.product-card {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.product-card .card-title {
    height: 3em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card .card-text {
    height: 3em;
    overflow: hidden;
}

/* Horizontal Layout Styles */
.page-horizontal {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Dark theme background */
[data-bs-theme="dark"] .page-horizontal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

[data-bs-theme="dark"] .main-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e9ecef;
}

[data-bs-theme="dark"] .container {
    background-color: transparent;
}

[data-bs-theme="dark"] .content {
    background-color: transparent;
    color: #e9ecef;
}

[data-bs-theme="dark"] footer {
    background-color: #0d1117;
    border-top-color: #30363d !important;
    color: #8b949e;
}

[data-bs-theme="dark"] footer a {
    color: #8b949e;
}

[data-bs-theme="dark"] footer a:hover {
    color: #58a6ff;
}

.main-content {
    flex: 1;
}

/* Wizard Theme Colors */
:root {
    --wizard-purple: #5e35b1;
    --wizard-deep-purple: #4527a0;
    --wizard-gold: #ffd700;
    --wizard-light-purple: #7e57c2;
    --wizard-dark: #2c1654;
}

/* Custom Navbar Styling */
.wizard-navbar {
    background: linear-gradient(90deg, #967cc4 0%, var(--wizard-purple) 50%, var(--wizard-deep-purple) 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0.75rem 0;
    border-bottom: 3px solid var(--wizard-gold);
}

.wizard-navbar .navbar-brand {
    color: var(--wizard-gold) !important;
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.wizard-navbar .navbar-brand:hover {
    transform: scale(1.05);
}

.wizard-navbar .navbar-brand img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Navigation Links */
.wizard-navbar .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 0.375rem;
    margin: 0 0.25rem;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    display: flex !important;
    align-items: center !important;
    line-height: 1 !important;
    height: auto !important;
    min-height: 38px !important;
}

.wizard-navbar .nav-link i {
    display: inline-flex;
    align-items: center;
    margin-right: 0.5rem;
}

.wizard-navbar .nav-link span {
    display: inline-flex;
    align-items: center;
}

.wizard-navbar .nav-link:hover {
    background-color: rgba(255, 215, 0, 0.15);
    color: var(--wizard-gold) !important;
}

.wizard-navbar .nav-link.active {
    background-color: rgba(255, 215, 0, 0.2);
    color: var(--wizard-gold) !important;
    font-weight: 600;
}

/* Logout button styling */
.wizard-navbar button.nav-link {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    display: inline-block;
}

.wizard-navbar button.nav-link:hover {
    background-color: rgba(244, 67, 54, 0.2);
    color: #ffcdd2 !important;
}

/* Register button special styling */
.wizard-navbar .btn-register {
    background: linear-gradient(135deg, var(--wizard-gold) 0%, #ffed4e 100%);
    color: var(--wizard-dark) !important;
    font-weight: 600;
    border-radius: 2rem;
    padding: 0.5rem 1.5rem !important;
    border: 2px solid transparent;
}

.wizard-navbar .btn-register:hover {
    background: var(--wizard-gold);
    color: var(--wizard-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.4);
}

/* Cart badge */
.wizard-navbar .badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.5rem;
}

.wizard-navbar .dropdown-toggle {
    display: flex !important;
    align-items: center !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.0rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    line-height: 1 !important;
    min-height: 38px !important;
}

#eventsDropdown i,
#eventsDropdown span,
#rentalsDropdown i,
#rentalsDropdown span {
    font-size: 1.0rem; /* Adjust as needed */
}

.wizard-navbar .dropdown-menu .dropdown-item {    
    color: #2c1654; 
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.wizard-navbar .dropdown-menu .dropdown-item:hover {
    background-color: #4527a0; /* Slightly lighter on hover */
    color: #ffffff;
}

.wizard-navbar .dropdown-menu .dropdown-item.active {
    color: #ffffff;
    background-color: #5e35b1;
    font-weight: 600;
}

/* Dark mode dropdown styles */
[data-bs-theme="dark"] .wizard-navbar .dropdown-menu {
    background-color: #2c1654; /* Dark purple background for dropdown */
    border-color: rgba(255, 215, 0, 0.3);
}

[data-bs-theme="dark"] .wizard-navbar .dropdown-menu .dropdown-item {
    color: #e0e0e0; /* Light gray for dark mode */
    background-color: transparent;
}

[data-bs-theme="dark"] .wizard-navbar .dropdown-menu .dropdown-item:hover {
    background-color: #5e35b1; /* Purple on hover */
    color: #ffffff;
}

[data-bs-theme="dark"] .wizard-navbar .dropdown-menu .dropdown-item.active {
    color: #ffffff;
    background-color: #7e57c2; /* Lighter purple for active in dark mode */
    font-weight: 600;
}

/* Content spacing */
.content {
    padding-top: 2rem;
}

/* User greeting styling */
.wizard-navbar .user-greeting {
    color: var(--wizard-gold) !important;
    font-weight: 600;
    white-space: nowrap;
}

/* Desktop: Three-column grid layout for perfect centering */
@media (min-width: 992px) {
    .wizard-navbar .container-fluid {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 2rem;
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .wizard-navbar .navbar-brand {
        grid-column: 1;
        justify-self: start;
    }

    .wizard-navbar .navbar-toggler {
        display: none;
    }

    .wizard-navbar .navbar-collapse {
        display: flex;
        align-items: center;
    }

    .wizard-navbar .navbar-collapse.nav-center {
        grid-column: 2;
        justify-content: center;
    }

    .wizard-navbar .navbar-collapse.nav-auth {
        grid-column: 3;
        justify-content: flex-end;
    }

    .wizard-navbar .navbar-nav {
        margin-bottom: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
    }

    .wizard-navbar .nav-item {
        display: flex !important;
        align-items: center !important;
        margin-bottom: 0 !important;
    }
}

/* Responsive navbar collapse */
@media (max-width: 991.98px) {
    .wizard-navbar .navbar-collapse {
        background: linear-gradient(135deg, rgba(69, 39, 160, 0.98) 0%, rgba(94, 53, 177, 0.98) 100%);
        padding: 1.5rem;
        border-radius: 0.5rem;
        margin-top: 1rem;
        border: 2px solid rgba(255, 215, 0, 0.3);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .wizard-navbar .nav-link {
        padding: 0.75rem 1rem;
        margin: 0.25rem 0;
    }

    .wizard-navbar .btn-register {
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }
}

/* Primary buttons - match theme */
.btn-primary {
    background: linear-gradient(135deg, var(--wizard-purple) 0%, var(--wizard-deep-purple) 100%);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--wizard-deep-purple) 0%, var(--wizard-dark) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(94, 53, 177, 0.4);
}