.can-red,.can-hover-red:hover{color:#fff!important;background-color:rgb(211, 34, 42)!important}
.can-text-red,.can-hover-text-red:hover{color:rgb(211, 34, 42)!important}
.can-dust-wrap{background:url(../images/dust.png) fixed; width:100%;}
.iframe-container {
  overflow: hidden;
  padding-top: 129.41%;
  position: relative;
}
.can-pale-red {
    background-color: #fff1f2;
}
.bg-even {
    background-color: #f8fafc;
}
.tooltip-inner {
    font-size: 1.2em;
}
.collapsing {
  -webkit-transition: height 0.01s;
  -moz-transition: height 0.01s;
  -ms-transition: height 0.01s;
  -o-transition: height 0.01s;
  transition: height 0.01s;
}
.iframe-container iframe {
   border: 1;
   height: 100%;
   left: 0;
   position: absolute;
   top: 0;
   width: 100%;
}
.vertical-center {
  margin: 0;
  position: absolute;
  top: 50%;
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}
.navbar-dark .navbar-nav .nav-link,
.navbar-dark .navbar-toggler
 {
    color: rgba(255, 255, 255, 1);
}
.navbar-dark .navbar-nav .active {
    color: rgba(255, 255, 255, .7);
}
.navbar-dark .navbar-nav .nav-link:focus {
    color: rgba(0,0,0,1)
}
.navbar-dark .navbar-nav .nav-link:hover {
    color: rgba(0,0,0,.5);
}
@font-face {
    font-family: "Gotham Book";
    src: url("/static/fonts/Gotham-Book.woff") format("woff");
}
@font-face {
    font-family: "GothamBold";
    src: url("/static/fonts/Gotham-Bold.woff") format("woff");
}
body,h1,h2,h3,h4,h5,h6,table {
    font-family: "Gotham Book", "Gotham", Helvetica, Arial, sans-serif;
}

/* Premium Form Styling */
.form-card-premium {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-card-premium:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), 0 2px 5px rgba(0, 0, 0, 0.03) !important;
}

/* Form Controls */
.form-card-premium label, 
.form-card-premium .form-label {
    font-weight: 600;
    color: #334155;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

.form-card-premium .form-control,
.form-card-premium .form-select,
.form-card-premium input[type="text"],
.form-card-premium input[type="email"],
.form-card-premium input[type="password"],
.form-card-premium input[type="number"],
.form-card-premium textarea {
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    background-color: #f8fafc;
    color: #1e293b;
    transition: all 0.2s ease-in-out;
}

.form-card-premium .form-control:focus,
.form-card-premium .form-select:focus,
.form-card-premium input[type="text"]:focus,
.form-card-premium input[type="email"]:focus,
.form-card-premium input[type="password"]:focus,
.form-card-premium input[type="number"]:focus,
.form-card-premium textarea:focus {
    background-color: #ffffff;
    border-color: rgb(211, 34, 42);
    outline: none;
    box-shadow: 0 0 0 4px rgba(211, 34, 42, 0.15);
}

/* Custom checkbox / radio alignment */
.form-card-premium .form-check-input {
    border: 1.5px solid #cbd5e1;
    border-radius: 4px;
    margin-top: 0.3em;
    cursor: pointer;
}

.form-card-premium .form-check-input:checked {
    background-color: rgb(211, 34, 42);
    border-color: rgb(211, 34, 42);
}

.form-card-premium .form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(211, 34, 42, 0.15);
    border-color: rgb(211, 34, 42);
}

.form-card-premium .form-check-label {
    font-weight: 500;
    color: #475569;
    font-size: 0.92rem;
    cursor: pointer;
}

/* Help text and Error feedback styling */
.form-card-premium .help-block,
.form-card-premium .form-text {
    font-size: 0.8rem !important;
    color: #64748b !important;
    margin-top: 0.4rem;
}

.form-card-premium .invalid-feedback,
.form-card-premium .error-block,
.form-card-premium .text-danger {
    font-size: 0.85rem !important;
    font-weight: 500;
    margin-top: 0.4rem;
    color: #dc2626 !important;
}

/* Premium Buttons & Transitions */
.transition-btn {
    border-radius: 8px !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.9rem !important;
    padding: 0.75rem 1.5rem !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: none !important;
}

.transition-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 34, 42, 0.3) !important;
}

.transition-btn:active {
    transform: translateY(0);
}

.btn-secondary-premium {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
}

.btn-secondary-premium:hover {
    background-color: #e2e8f0 !important;
    color: #1e293b !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(148, 163, 184, 0.2) !important;
}

/* Premium Table Styling */
.table {
    --bs-table-bg: transparent;
    --bs-table-border-color: #e2e8f0;
    --bs-table-accent-bg: transparent;
    width: 100%;
    margin-bottom: 1.5rem;
    vertical-align: middle;
    border-collapse: separate;
    border-spacing: 0;
}

/* Rounded borders for tables */
.table:not(.comparison-table) {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.025);
}

.table th,
.table td {
    padding: 1rem 1.25rem;
    font-size: 0.925rem;
    color: #334155;
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s ease;
}

/* Table Header */
.table thead th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #cbd5e1;
    vertical-align: bottom;
}

/* Striped Rows */
.table-striped tbody tr:nth-of-type(odd) {
    --bs-table-accent-bg: rgba(248, 250, 252, 0.8);
}

/* Hover Rows */
.table-hover tbody tr:hover {
    --bs-table-accent-bg: rgba(241, 245, 249, 0.6);
}

.table-hover tbody tr:hover td {
    color: #0f172a;
}

/* Small Table variant */
.table-sm th,
.table-sm td {
    padding: 0.6rem 0.85rem;
    font-size: 0.875rem;
}

/* First/Last child border handling for rounded corners when border-collapse is separate */
.table tr:last-child td {
    border-bottom: none;
}

.table thead tr:first-child th:first-child,
.table tbody tr:first-child td:first-child {
    border-top-left-radius: 12px;
}

.table thead tr:first-child th:last-child,
.table tbody tr:first-child td:last-child {
    border-top-right-radius: 12px;
}

.table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

/* Elegant Links in tables */
.table td a {
    color: rgb(211, 34, 42);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease, text-decoration 0.15s ease;
}

.table td a:hover {
    color: rgb(150, 20, 26);
    text-decoration: underline;
}

/* Form fields inside table cells formatting */
.table td select,
.table td input {
    margin: 0 !important;
    padding: 0.375rem 0.75rem !important;
    border-radius: 6px !important;
    border: 1.5px solid #e2e8f0 !important;
    font-size: 0.875rem !important;
    max-width: 100% !important;
}

.table td select:focus,
.table td input:focus {
    border-color: rgb(211, 34, 42) !important;
    box-shadow: 0 0 0 3px rgba(211, 34, 42, 0.15) !important;
}

/* Polished Navigation Dropdowns */
.navbar .dropdown-menu {
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.12), 0 8px 12px -6px rgba(0, 0, 0, 0.08) !important;
    padding: 0.6rem !important;
    margin-top: 8px !important;
    transition: all 0.2s ease-in-out;
}

.navbar .dropdown-item {
    border-radius: 8px !important;
    padding: 0.5rem 1.25rem !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: #475569 !important;
    transition: all 0.2s ease !important;
}

.navbar .dropdown-item:hover, 
.navbar .dropdown-item:focus {
    background-color: #f8fafc !important;
    color: rgb(211, 34, 42) !important;
    transform: translateX(4px);
}

.navbar .dropdown-item.active, 
.navbar .dropdown-item:active {
    background-color: rgb(211, 34, 42) !important;
    color: #ffffff !important;
    transform: none !important;
}

/* Polished Year Preview Banner */
.year-preview-banner {
    margin-top: 56px;
    z-index: 1020;
    position: relative;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    color: #f8fafc !important;
    border-bottom: 4px solid rgb(211, 34, 42) !important;
    padding: 0.75rem 1rem !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
    font-size: 0.95rem;
    font-weight: 500;
}

.year-preview-banner strong {
    color: #ffffff;
}

.year-preview-banner .btn-return {
    background-color: rgb(211, 34, 42) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 0.35rem 1.2rem !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.year-preview-banner .btn-return:hover {
    background-color: rgb(180, 20, 26) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(211, 34, 42, 0.4) !important;
}

.year-preview-banner .btn-return:active {
    transform: translateY(0);
}

/* Premium Captain/Sample Live Preview Banner */
.live-preview-banner {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    border: 1px solid #bfdbfe !important;
    border-left: 6px solid #2563eb !important;
    border-radius: 12px !important;
    color: #1e40af !important;
    padding: 1.25rem !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    margin: 1.5rem auto 2.5rem auto !important;
    font-size: 0.95rem !important;
}

.live-preview-banner i {
    color: #2563eb !important;
    font-size: 1.4rem;
    animation: pulse-eye 2.5s infinite ease-in-out;
}

@keyframes pulse-eye {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.8; }
}

/* Premium Admin Custom Styling */
.admin-card-glass {
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    border-radius: 20px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.admin-card-glass:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06), 0 2px 5px rgba(0, 0, 0, 0.03) !important;
    transform: translateY(-2px);
}

.admin-badge-count {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 5px 10px !important;
    border-radius: 30px !important;
    border: 1px solid transparent !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.admin-badge-regs {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    border-color: #cbd5e1 !important;
}

.admin-badge-members {
    background-color: #ecfdf5 !important;
    color: #047857 !important;
    border-color: #a7f3d0 !important;
}

.admin-badge-donations {
    background-color: #f0fdf4 !important;
    color: #166534 !important;
    border-color: #bbf7d0 !important;
}

.admin-badge-jurors {
    background-color: #fdf2f8 !important;
    color: #9d174d !important;
    border-color: #fbcfe8 !important;
}

.admin-badge-tickets {
    background-color: #eff6ff !important;
    color: #1d4ed8 !important;
    border-color: #bfdbfe !important;
}

/* Tab controls */
.admin-tabs {
    background: rgba(15, 23, 42, 0.04);
    padding: 6px;
    border-radius: 50px;
    display: inline-flex;
    border: 1px solid rgba(15, 23, 42, 0.02);
}

.admin-tab-link {
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.01em;
    color: #64748b !important;
    border-radius: 50px !important;
    padding: 8px 24px !important;
    border: none !important;
    background: transparent !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.admin-tab-link:hover {
    color: #0f172a !important;
}

.admin-tab-link.active {
    background: #ffffff !important;
    color: rgb(211, 34, 42) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
}

/* Premium form and action improvements */
.admin-input {
    border-radius: 50px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    border: 1.5px solid #e2e8f0 !important;
    transition: all 0.2s ease-in-out !important;
    background-color: #ffffff !important;
}

.admin-input:focus {
    border-color: rgb(211, 34, 42) !important;
    box-shadow: 0 0 0 4px rgba(211, 34, 42, 0.12) !important;
}

.admin-select {
    border-radius: 50px !important;
    padding-left: 20px !important;
    padding-right: 35px !important;
    border: 1.5px solid #e2e8f0 !important;
    background-color: #ffffff !important;
    transition: all 0.2s ease-in-out !important;
}

.admin-select:focus {
    border-color: rgb(211, 34, 42) !important;
    box-shadow: 0 0 0 4px rgba(211, 34, 42, 0.12) !important;
}

/* Modern role tag badges */
.admin-role-badge {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    padding: 4px 10px !important;
    border-radius: 30px !important;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.admin-role-board {
    background-color: #fee2e2 !important;
    color: #b91c1c !important;
}

.admin-role-committee {
    background-color: #fef3c7 !important;
    color: #b45309 !important;
}

.admin-role-captain {
    background-color: #dbeafe !important;
    color: #1d4ed8 !important;
}

.admin-role-staff {
    background-color: #f3e8ff !important;
    color: #6b21a8 !important;
}

.admin-role-superuser {
    background-color: #fae8ff !important;
    color: #86198f !important;
}

/* Elegant Browse button */
.admin-btn-browse {
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    transition: all 0.2s ease-in-out !important;
}

.admin-btn-browse:hover:not(:disabled) {
    background-color: rgb(211, 34, 42) !important;
    color: #ffffff !important;
    border-color: rgb(211, 34, 42) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(211, 34, 42, 0.2) !important;
}

/* Custom interactive Radio & Switch alignments */
.admin-radio-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.admin-radio-wrapper .form-check-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin: 0 !important;
    border: 2px solid #cbd5e1 !important;
    transition: all 0.2s ease-in-out !important;
}

.admin-radio-wrapper .form-check-input:checked {
    background-color: rgb(211, 34, 42) !important;
    border-color: rgb(211, 34, 42) !important;
    box-shadow: 0 0 0 4px rgba(211, 34, 42, 0.12) !important;
}

/* Micro animations on focus */
.admin-row-hover:hover {
    background-color: rgba(241, 245, 249, 0.6) !important;
}