﻿html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

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;
}

code {
    color: #c02d76;
}

/* Validation */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

/* Blazor error */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    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,...your existing base64...) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

/* Loading spinner */
.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");
    }

/* Layout */
.main-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-body {
    flex: 1;
    padding-bottom: 70px; /* For footer space */
}

/* Footer / Bottom Nav */
.app-footer {
    height: 60px;
    background-color: #fff;
}

.nav-bar {
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: stretch; /* Ensure children stretch full height */
}

.nav-item {
    flex: 1;
    text-align: center;
    padding: 6px 0;
    font-size: 0.8rem;
    color: #333;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

    .nav-item img {
        margin-bottom: 2px;
    }

.nav-active {
    background-color: #ffc107; /* Yellow */
    height: 100%;
    color: #000;
}


.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 0;
    height: 60px;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 0.75rem;
    text-decoration: none;
    background-color: white;
    color: #666;
    transition: background-color 0.3s ease;
    border: none;
    outline: none;
}

.nav-active {
    background-color: #f5b800; /* Yellow */
    color: black !important;
    font-weight: bold;
}





.nav-label {
    font-size: 0.75rem;
    margin-top: 2px;
}

/* Button Colors */
.bg-purple {
    background-color: #4B2E83;
}

.text-purple {
    color: #4B2E83;
}

.btn-purple {
    background-color: #4B2E83;
    color: white;
    border: none;
}

    .btn-purple:hover {
        background-color: #3a2368;
    }

.btn-outline-purple {
    color: #4B2E83;
    border: 1px solid #4B2E83;
    background: white;
}

    .btn-outline-purple:hover {
        background-color: #4B2E83;
        color: white;
    }

/* Blur Effect for Rejected/Hidden Images */
.blurred-image {
    filter: blur(12px) !important;
    -webkit-filter: blur(12px) !important;
    transition: filter 0.3s ease;
    cursor: not-allowed;
}

    .blurred-image:hover {
        filter: none;
    }
.btn-accent {
    background-color: #0071c1;
    color: white;
    border: none;
    padding: 8px 20px;
    font-weight: 500;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

    .btn-accent:hover {
        background-color: #005999;
    }

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4B2E83; /* Purple */
    border-radius: 50%;
    width: 36px;
    height: 36px;
    animation: spin 0.8s linear infinite;
    margin: auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
/* Make the active tab blue with white text, and add a smooth transition */
.nav-tabs .nav-link.active {
    background-color: #0d6efd; /* Bootstrap’s “primary” blue */
    color: #fff !important;
    border-color: #0d6efd #0d6efd #fff;
    transition: background-color 0.2s ease;
}

/* Optional: subtly darken on hover */
.nav-tabs .nav-link:not(.active):hover {
    background-color: #e7f1ff;
      color:             #4B2E83 !important;
}

/* Keep the inactive tabs transparent with just a bottom border */
.nav-tabs {
    border-bottom: none;
}

    .nav-tabs .nav-link {
        border: 1px solid transparent;
        border-bottom: 3px solid transparent;
    }

        .nav-tabs .nav-item.show .nav-link,
        .nav-tabs .nav-link.active {
            border-bottom-color: #0d6efd;
        }

/* 1) nuke the old bullet-proof padding on the footer */
.app-footer {
    padding: 0;
}

    /* 2) make each nav-item stretch, and give it its own vertical padding */
    .app-footer .nav-bar .nav-item {
        flex: 1; /* spread evenly across the row */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0.5rem 0; /* bump this up/down to taste */
        text-decoration: none;
        color: inherit;
    }

        /* 3) fill the entire height when active */
        .app-footer .nav-bar .nav-item.nav-active {
            background-color: #FFC107; /* or your brand’s “active” color */
        }
/* keep primary buttons white-on-hover */
.btn-primary:hover,
.btn-primary:focus {
    background-color: #1861ac; /* darken to match your border */
    border-color: #145a9e;
    color: #fff;
}

/* keep outline-secondary buttons white-on-hover, too */
.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background-color: #6c757d; /* Bootstrap secondary */
    border-color: #6c757d;
    color: #fff;
}
/* Ensure btn-purple text stays white on hover/focus */
.btn-purple:hover,
.btn-purple:focus {
    background-color: #3a2368; /* your darker purple */
    color: #fff !important; /* force white text */
    border-color: #3a2368; /* keep borders consistent if any */
    text-decoration: none; /* in case it’s an <a> */
}
.preview-uploader {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2px;
    background: rgba(255,255,255,0.8);
    text-align: center;
}

    .preview-uploader small {
        display: block;
        font-size: 0.75rem;
        color: #0d6efd; /* bootstrap primary */
    }


.preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1rem;
}

.preview-item {
    position: relative;
    width: 150px;
    height: 150px;
}

.preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: .25rem;
}

.preview-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(255,255,255,0.8);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.preview-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
/* 1) Remove the default nav-tabs border */
.nav-tabs {
  border-bottom: none;
  /* Optional: center or space-between */
  /* justify-content: center; */
}

/* 2) Make all tabs flat and remove their default borders */
.nav-tabs .nav-link {
  background: transparent;
  color: #6f42c1;             /* your purple */
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;           /* square corners */
  padding: .75rem 1rem;
  font-weight: 500;
}

/* 3) Active tab gets the “raised” look */
.nav-tabs .nav-link.active {
  background-color: #fff;     /* match page background */
  color: #6f42c1;
  border-left: 1px solid #dee2e6;
  border-right: 1px solid #dee2e6;
  border-top: 1px solid #dee2e6;
  border-bottom: 2px solid #6f42c1;
  margin-bottom: -1px;        /* hide bottom border to blend into content */
}

/* 4) Hover state for non-active tabs */
.nav-tabs .nav-link:not(.active):hover {
  background-color: #f8f9fa;
  border-bottom-color: #6f42c1;
  color: #50307e;
}

/* 5) Optional: style the container below tabs */
.tab-content {
  border: 1px solid #dee2e6;
  padding: 1rem;
  background-color: #fff;
  border-top: none;
}
.qr-card {
    padding: 10px; /* 50px of “border” space */
    border: 1px solid #ccc; /* light grey outline */
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
}

.logo-small {
    width: 250px; /* or whatever final width you want */
    height: auto; /* let height scale automatically */
    aspect-ratio: 4 / 1; /* optional, maintain your logo’s ratio */
    background-image: url('/images/pix4events_logo_small.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 auto; /* center the block */
    display: block;
}

.logo-mid {
    width: 500px; /* or whatever final width you want */
    height: auto; /* let height scale automatically */
    aspect-ratio: 4 / 1; /* optional, maintain your logo’s ratio */
    background-image: url('/images/pix4events_logo_mid.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 auto; /* center the block */
    display: block;
}
@media print {
    .logo-mid {
        -webkit-print-color-adjust: exact; /* Safari/Chrome */
        print-color-adjust: exact;
        background-color: white;
    }
}
.nav-tabs .nav-link.active {
    background-color: dodgerblue; /* or white, whichever you prefer */
    color: #fff !important;
}
/* ========== app-alert styling ========== */

/* Make the logo 125px tall, auto width */
#appAlert .app-alert-logo {
    height: 64px;
    width: auto;
    object-fit: contain;
}

/* Tweak header vertical padding if needed */
#appAlert .modal-header {
    padding: 0.75rem 1rem;
}

/* Center the body text pill underneath */
#appAlert .modal-body {
    text-align: center;
}

    /* Keep the warning-style pill */
    #appAlert .modal-body #appAlertMessage {
        background-color: #fd7e14;
        color: #fff;
        padding: 0.4rem 1rem;
        border-radius: 0.25rem;
        display: inline-block;
        margin: 0;
    }



.settings-tabs {
    border-bottom: 2px solid #dee2e6;
    flex-wrap: nowrap;
    overflow-x: auto;
}

    .settings-tabs .nav-link {
        font-size: 1rem;
        color: #495057;
        padding: 0.75rem 1rem;
        white-space: nowrap;
        border: none;
        border-radius: 0.5rem 0.5rem 0 0;
        transition: color 0.3s ease, background-color 0.3s ease;
    }

        .settings-tabs .nav-link.active {
            color: #fff;
            background-color: #6f42c1;
            font-weight: 600;
        }

        .settings-tabs .nav-link:hover {
            color: #6f42c1;
            background-color: #f8f9fa;
        }

.tab-content {
    border: 1px solid #dee2e6;
    border-radius: 0 0.5rem 0.5rem 0.5rem;
    min-height: 300px;
}

@media (max-width: 767px) {
    .settings-tabs {
        flex-direction: column;
        align-items: stretch;
        overflow-x: hidden;
    }

        .settings-tabs .nav-link {
            border-radius: 0.5rem;
            margin-bottom: 0.25rem;
        }

    .tab-content {
        border-radius: 0.5rem;
    }
}
