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;
}

:root {
    --rcc-green: #1f3d2b;
    --rcc-gold: #b08d3c;
    --rcc-light: #f7f7f4;
    --rcc-border: #d8d8d2;
}

body {
    background-color: var(--rcc-light);
}

.rcc-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 12px;
}

.rcc-card {
    background: #ffffff;
    border: 1px solid var(--rcc-border);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    overflow: hidden;
}

.rcc-card-header {
    background-color: var(--rcc-green);
    color: white;
    padding: 18px 22px;
}

.rcc-card-body {
    padding: 22px;
}

.rcc-title {
    color: var(--rcc-green);
    font-weight: 700;
}

.rcc-subtitle {
    color: #666;
    font-size: 1.5rem;
}

.rcc-field {
    border: 1px solid var(--rcc-border);
    border-radius: 10px;
    padding: 14px;
    background-color: #fff;
    margin-bottom: 16px;
}

.rcc-field label {
    font-weight: 600;
    color: var(--rcc-green);
    margin-bottom: 6px;
}

.rcc-player-card {
    border: 1px solid var(--rcc-border);
    border-radius: 12px;
    padding: 18px;
    background: white;
    height: 100%;
}

.rcc-player-name {
    color: var(--rcc-green);
    font-weight: 700;
    margin-bottom: 8px;
}

.rcc-detail-row {
    border-top: 1px solid #eee;
    padding: 8px 0;
}

.rcc-detail-label {
    font-weight: 600;
    color: #555;
}

.rcc-participant-detail {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.35;
    font-weight: 500;
}

.rcc-participant-detail a {
    color: #444;
    text-decoration: none;
}

.rcc-participant-detail a:hover {
    color: #1f3d2b;
    text-decoration: underline;
}

.btn-primary {
    background-color: var(--rcc-green);
    border-color: var(--rcc-green);
}

    .btn-primary:hover {
        background-color: #14291d;
        border-color: #14291d;
    }

.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid #cfcfc8;
    padding: 10px 12px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--rcc-gold);
    box-shadow: 0 0 0 0.2rem rgba(176,141,60,0.2);
}

/* ===========================================================
   RCC Status Badges
   =========================================================== */
.rcc-badge-complete {
    display: inline-block;
    padding: .45rem .75rem;
    border-radius: .4rem;
    background-color: #FFD700; /* Bright Gold */
    color: #000;
    font-weight: 700;
    border: 2px solid #000;
    white-space: nowrap;
}

.rcc-badge-partial {
    display: inline-block;
    padding: .45rem .75rem;
    border-radius: .4rem;
    background-color: #87CEFA; /* Light Sky Blue */
    color: #000;
    font-weight: 700;
    border: 2px solid #000;
    white-space: nowrap;
}

.rcc-badge-pending {
    display: inline-block;
    padding: .45rem .75rem;
    border-radius: .4rem;
    background-color: #E0E0E0;
    color: #000;
    font-weight: 700;
    border: 2px solid #777;
    white-space: nowrap;
}


/* ===========================================================
   RCC Check-In Status Badges
   =========================================================== */
.rcc-checkin-status {
    display: inline-block;
    min-width: 120px;
    padding: .5rem .75rem;
    border-radius: .5rem;
    font-weight: 800;
    text-align: center;
    border: 2px solid #000;
    color: #000;
    line-height: 1.15;
}

.rcc-checkin-icons {
    display: block;
    font-size: 1.25rem;
    letter-spacing: .15rem;
    margin-bottom: .15rem;
}

.rcc-checkin-label {
    display: block;
    font-size: .9rem;
}

.rcc-checkin-complete {
    background-color: #FFD700;
}

.rcc-checkin-partial {
    background-color: #87CEFA;
}

.rcc-checkin-pending {
    background-color: #E0E0E0;
    border-color: #777;
}

/* ===========================================================
   Mission Grid
   =========================================================== */
.rcc-mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 14px;
}

.rcc-mission-card {
    background: #ffffff;
    border: 2px solid var(--rcc-border);
    border-radius: 14px;
    padding: 16px 12px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.rcc-mission-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--rcc-green);
    line-height: 1.1;
}

.rcc-mission-label {
    font-size: .9rem;
    font-weight: 700;
    color: #333;
    margin-top: 4px;
}

.rcc-mission-card-highlight {
    border-color: #000;
    background-color: #FFD700;
}

.rcc-mission-card-highlight .rcc-mission-number,
.rcc-mission-card-highlight .rcc-mission-label {
    color: #000;
}

/* ===========================================================
   Admin Module Dashboard
   =========================================================== */
.rcc-admin-module {
    height: 100%;
    background-color: #ffffff;
    border: 2px solid #d5d5d5;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.rcc-admin-module-header {
    background-color: #173f2a;
    color: #ffffff;
    padding: 14px 18px;
}

.rcc-admin-module-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.rcc-admin-module-description {
    margin-top: 4px;
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #f0f0f0;
}

.rcc-admin-module-body {
    padding: 18px;
}

.rcc-admin-module-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 12px;
}

.rcc-admin-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 10px 14px;
    border-radius: 8px;
    background-color: #173f2a;
    color: #ffffff;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border: 2px solid #173f2a;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.rcc-admin-link:hover {
    background-color: #ffffff;
    color: #173f2a;
    transform: translateY(-1px);
}

.rcc-admin-link-secondary {
    background-color: #ffffff;
    color: #173f2a;
}

.rcc-admin-link-secondary:hover {
    background-color: #173f2a;
    color: #ffffff;
}

.rcc-admin-link-disabled {
    background-color: #eeeeee;
    color: #777777;
    border-color: #cccccc;
    cursor: not-allowed;
    pointer-events: none;
}

.rcc-admin-status-card {
    height: 100%;
    padding: 14px;
    border: 2px solid #d5d5d5;
    border-radius: 10px;
    background-color: #ffffff;
    text-align: center;
}

.rcc-admin-status-number {
    font-size: 1.9rem;
    line-height: 1.1;
    font-weight: 800;
    color: #173f2a;
}

.rcc-admin-status-label {
    margin-top: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #333333;
}

@media (max-width: 767px) {
    .rcc-admin-module-links {
        grid-template-columns: 1fr;
    }
}

/* ===========================================================
   RCC Shared Site Header
   =========================================================== */
.rcc-site-header {
    background-color: #173f2a;
    border-bottom: 4px solid #d6b85a;
    margin-bottom: 28px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.rcc-site-header-content {
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 10px 0;
}

.rcc-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    background-color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.rcc-site-logo {
    display: block;
    width: auto;
    height: 70px;
    max-width: 170px;
    object-fit: contain;
}

.rcc-site-title {
    color: #ffffff;
    line-height: 1.15;
}

.rcc-site-title-main {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.rcc-site-title-sub {
    margin-top: 5px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #f1f1f1;
}

/* ===========================================================
   Invitational Settings
   =========================================================== */
.rcc-settings-option {
    height: 100%;
    padding: 16px;
    background-color: #f8f8f8;
    border: 2px solid #d7d7d7;
    border-radius: 10px;
}

.rcc-settings-option .form-check {
    margin-bottom: 8px;
}

.rcc-settings-option .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.1rem;
}

.rcc-settings-option .form-check-label {
    margin-left: 5px;
    color: #173f2a;
}

.rcc-settings-help {
    margin-left: 2rem;
    color: #444444;
    font-size: 0.92rem;
    line-height: 1.4;
}

/* ==========================================================
   Validation Summary
   ========================================================== */
.rcc-validation-summary {
    margin-bottom: 24px;
    padding: 18px 20px;
    background: #fdecec;
    border: 2px solid #d9534f;
    border-radius: 8px;
}

.rcc-validation-title {
    color: #b52b27;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.rcc-validation-summary ul {
    margin: 0;
    padding-left: 22px;
}

.rcc-validation-summary li {
    color: #b52b27;
    margin-bottom: 6px;
    font-weight: 500;
}

/* ==========================================================
   Success Message
   ========================================================== */
.rcc-success-message {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
    padding: 18px 20px;
    background-color: #eef8ee;
    border: 2px solid #2f6f3e;
    border-radius: 8px;
    color: #173f2a;
}

.rcc-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #173f2a;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1;
}

.rcc-success-content {
    flex: 1;
    min-width: 0;
}

.rcc-success-title {
    margin-bottom: 4px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #173f2a;
}

.rcc-success-text {
    font-size: 1rem;
    line-height: 1.45;
    color: #234b2d;
}

/* ==========================================================
   Participant Invitational Results
   ========================================================== */
.rcc-champion-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background-color: #f5f1df;
    border: 3px solid #d6b85a;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.rcc-champion-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background-color: #173f2a;
    color: #d6b85a;
    font-size: 2rem;
    font-weight: 800;
}

.rcc-champion-content {
    flex: 1;
    min-width: 0;
}

.rcc-champion-label {
    color: #173f2a;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rcc-champion-team {
    margin-top: 3px;
    color: #173f2a;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.3;
}

.rcc-champion-detail {
    margin-top: 4px;
    color: #444444;
    font-size: 1rem;
}

.rcc-result-highlight {
    height: 100%;
    padding: 17px;
    background-color: #ffffff;
    border: 2px solid #d5d5d5;
    border-radius: 10px;
}

.rcc-result-highlight-title {
    margin-bottom: 7px;
    color: #173f2a;
    font-size: 1rem;
    font-weight: 800;
}

.rcc-result-highlight-team {
    color: #222222;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
}

.rcc-flight-results-title {
    margin-bottom: 14px;
    padding-bottom: 8px;
    color: #173f2a;
    font-size: 1.35rem;
    font-weight: 800;
    border-bottom: 3px solid #d6b85a;
}

@media (max-width: 575px) {
    .rcc-champion-card {
        align-items: flex-start;
        padding: 18px;
    }

    .rcc-champion-icon {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .rcc-champion-team {
        font-size: 1.2rem;
    }
}

/* ===========================================================
   Media
   =========================================================== */
@media (max-width: 575px) {
    .rcc-site-header-content {
        min-height: 76px;
        gap: 12px;
    }

    .rcc-site-logo {
        height: 54px;
        max-width: 125px;
    }

    .rcc-site-title-main {
        font-size: 1.2rem;
    }

    .rcc-site-title-sub {
        font-size: 0.82rem;
    }
}
