/* Maven Pro Font */
@import url('https://fonts.googleapis.com/css2?family=Maven+Pro:wght@400;500;600;700;800;900&display=swap');

* {
    box-sizing: border-box;
}

body {
    background-color: #EFECE7;
    min-height: 100%;
    font-family: 'Maven Pro', sans-serif;
    margin: 0;
    padding: 0;
}

/* Header */
header {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .logo img {
    height: 50px;
    width: auto;
}

/* Desktop nav */
.main-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-nav a {
    color: #221F25;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
    font-size: 16px;
}

.main-nav a:hover {
    color: #0D86D1;
}

.main-nav .nav-logout {
    color: #E52B2C;
}

.main-nav .nav-login-btn {
    height: 40px;
    font-size: 15px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    background: #0D86D1;
    font-weight: 700;
    margin-left: 20px;
}

/* Hamburger button — hidden on desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: #221F25;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

header .user-info {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Footer */
footer {
    background-color: #221F25;
    color: #ffffff;
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
}

footer a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 10px;
    font-size: 14px;
}

footer a:hover {
    color: #0D86D1;
    text-decoration: underline;
}

/* Main content */
#content {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Box component */
.box {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 40px;
}

/* Intro section */
.intro {
    background-color: rgba(13, 134, 209, 0.2);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
}

.intro.start {
    background-color: #000000;
    color: #ffffff;
}

.intro .title {
    font-size: 65px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 20px;
}

.intro p {
    font-size: 20px;
    font-weight: 500;
}

/* Buttons */
.btn-primary {
    background-color: #0D86D1;
    border-color: #0D86D1;
    color: #ffffff;
    height: 60px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 10px;
    padding: 0 30px;
}

.btn-primary:hover {
    background-color: #0a6aad;
    border-color: #0a6aad;
}

.btn-secondary {
    background-color: #ffffff;
    border-color: #0D86D1;
    color: #0D86D1;
    height: 60px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 10px;
    padding: 0 30px;
}

.btn-secondary:hover {
    background-color: #0D86D1;
    color: #ffffff;
}

.btn-success {
    background-color: #90B914;
    border-color: #90B914;
    color: #ffffff;
    border-radius: 10px;
    font-weight: 600;
}

.btn-success:hover {
    background-color: #7a9e11;
    border-color: #7a9e11;
}

.btn-danger {
    background-color: #E52B2C;
    border-color: #E52B2C;
    color: #ffffff;
    border-radius: 10px;
    font-weight: 600;
}

.btn-warning {
    background-color: #F9CC00;
    border-color: #F9CC00;
    color: #221F25;
    border-radius: 10px;
    font-weight: 600;
}

.btn-info {
    background-color: #0D86D1;
    border-color: #0D86D1;
    color: #ffffff;
    border-radius: 10px;
    font-weight: 600;
}

.btn-outline-primary {
    border-color: #0D86D1;
    color: #0D86D1;
    border-radius: 10px;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: #0D86D1;
    color: #ffffff;
}

/* Decision buttons */
.decision-btn {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.decision-btn .btn {
    flex: 1;
    min-width: 120px;
    height: 60px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 10px;
}

/* Form elements */
.form-control {
    border: 1px solid rgba(34, 31, 37, 0.3);
    border-radius: 10px;
    height: 50px;
    font-size: 16px;
    font-family: 'Maven Pro', sans-serif;
    padding: 10px 15px;
    width: 100%;
}

.form-control:focus {
    border-color: #0D86D1;
    box-shadow: 0 0 0 3px rgba(13, 134, 209, 0.2);
    outline: none;
}

textarea.form-control {
    height: auto;
    min-height: 120px;
}

.form-label {
    font-weight: 600;
    font-size: 16px;
    color: #221F25;
    margin-bottom: 5px;
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-check-label {
    font-weight: 500;
    font-size: 16px;
}

/* Tables */
.table-custom {
    width: 100%;
    border-collapse: collapse;
}

.table-custom th {
    background-color: #0D86D1;
    color: #ffffff;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}

.table-custom td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(34, 31, 37, 0.1);
    vertical-align: middle;
}

.table-custom tr:hover td {
    background-color: rgba(13, 134, 209, 0.05);
}

/* Badge / decision indicators */
.badge-decision {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.badge-yes {
    background-color: #90B914;
    color: #fff;
}

.badge-no {
    background-color: #E52B2C;
    color: #fff;
}

.badge-maybe {
    background-color: #F9CC00;
    color: #221F25;
}

.badge-online {
    background-color: #0D86D1;
    color: #fff;
}

.badge-pending {
    background-color: #cccccc;
    color: #221F25;
}

/* Schedule card */
.schedule-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.schedule-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.schedule-card .card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.schedule-card .card-body {
    padding: 20px;
}

.schedule-card .card-title {
    font-size: 22px;
    font-weight: 700;
    color: #221F25;
    margin-bottom: 10px;
}

.schedule-card .card-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

/* Stats row */
.stats-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.stat-box {
    background: #ffffff;
    border-radius: 15px;
    padding: 15px 20px;
    text-align: center;
    flex: 1;
    min-width: 100px;
}

.stat-box .stat-number {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
}

.stat-box .stat-label {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin-top: 5px;
}

.stat-yes .stat-number {
    color: #90B914;
}

.stat-no .stat-number {
    color: #E52B2C;
}

.stat-maybe .stat-number {
    color: #F9CC00;
}

.stat-online .stat-number {
    color: #0D86D1;
}

.stat-pending .stat-number {
    color: #999;
}

/* Event info panel */
.event-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.event-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.event-info-item .icon {
    color: #0D86D1;
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.event-info-item .label {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-info-item .value {
    font-size: 16px;
    font-weight: 500;
    color: #221F25;
}

/* Page title */
.page-title {
    font-size: 42px;
    font-weight: 800;
    color: #221F25;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

/* Alert messages */
.alert {
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background-color: rgba(144, 185, 20, 0.15);
    border: 1px solid #90B914;
    color: #5a7a0a;
}

.alert-danger {
    background-color: rgba(229, 43, 44, 0.1);
    border: 1px solid #E52B2C;
    color: #c02020;
}

.alert-info {
    background-color: rgba(13, 134, 209, 0.1);
    border: 1px solid #0D86D1;
    color: #0a6aad;
}

.alert-warning {
    background-color: rgba(249, 204, 0, 0.15);
    border: 1px solid #F9CC00;
    color: #8a6e00;
}

/* Login page */
.login-box {
    max-width: 500px;
    margin: 60px auto;
    text-align: center;
}

.login-box .logo {
    margin-bottom: 40px;
}

.login-box .logo img {
    height: 80px;
}

.login-title {
    font-size: 36px;
    font-weight: 800;
    color: #221F25;
    margin-bottom: 10px;
}

.login-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
}

.btn-unidy {
    background-color: #221F25;
    color: #ffffff;
    border: none;
    height: 60px;
    width: 100%;
    font-size: 18px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.btn-unidy:hover {
    background-color: #0D86D1;
    color: #ffffff;
}

/* RSVP page */
.rsvp-container {
    max-width: 700px;
    margin: 0 auto;
}

.rsvp-event-image {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 20px;
    max-height: 300px;
    object-fit: cover;
}

.decision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.decision-card {
    border: 2px solid #ddd;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.decision-card:hover {
    border-color: #0D86D1;
    background-color: rgba(13, 134, 209, 0.05);
}

.decision-card.selected-yes {
    border-color: #90B914;
    background-color: rgba(144, 185, 20, 0.1);
}

.decision-card.selected-no {
    border-color: #E52B2C;
    background-color: rgba(229, 43, 44, 0.05);
}

.decision-card.selected-maybe {
    border-color: #F9CC00;
    background-color: rgba(249, 204, 0, 0.1);
}

.decision-card.selected-online {
    border-color: #0D86D1;
    background-color: rgba(13, 134, 209, 0.1);
}

.decision-card .decision-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.decision-card .decision-label {
    font-size: 20px;
    font-weight: 700;
}

/* Name tags for printing */
@media print {

    header,
    footer,
    nav,
    .no-print {
        display: none !important;
    }

    body {
        background: white;
    }

    .nametag {
        width: 9cm;
        height: 5cm;
        border: 2px solid #0D86D1;
        border-radius: 10px;
        padding: 15px;
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 10px;
        page-break-inside: avoid;
    }
}

/* Responsive — tablet and smaller */
@media (max-width: 768px) {
    header {
        height: 64px;
    }

    header .logo img {
        height: 40px;
    }

    /* Show hamburger, hide desktop nav */
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: #ffffff;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
        flex-direction: column;
        padding: 8px 0 16px;
        margin: 0;
        gap: 0;
        z-index: 99;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        margin-left: 0;
        padding: 14px 24px;
        font-size: 17px;
        border-bottom: 1px solid #f0f0f0;
    }

    .main-nav a:last-child {
        border-bottom: none;
    }

    .main-nav .nav-login-btn {
        margin: 12px 20px 0;
        padding: 0 20px;
        justify-content: center;
        height: 48px;
        font-size: 16px;
        border-radius: 10px;
    }
}

/* Responsive — mobile */
@media (max-width: 576px) {
    .intro .title {
        font-size: 36px;
    }

    .intro p {
        font-size: 16px;
    }

    .page-title {
        font-size: 28px;
    }

    .decision-grid {
        grid-template-columns: 1fr;
    }

    #content {
        padding: 24px 16px;
    }
}

/* Utility */
.text-primary {
    color: #0D86D1 !important;
}

.text-success {
    color: #90B914 !important;
}

.text-danger {
    color: #E52B2C !important;
}

.text-warning {
    color: #F9CC00 !important;
}

.text-dark {
    color: #221F25 !important;
}

.text-muted {
    color: #666 !important;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 5px;
}

.mb-2 {
    margin-bottom: 10px;
}

.mb-3 {
    margin-bottom: 15px;
}

.mb-4 {
    margin-bottom: 20px;
}

.mb-5 {
    margin-bottom: 30px;
}

.mt-3 {
    margin-top: 15px;
}

.mt-4 {
    margin-top: 20px;
}

.mt-5 {
    margin-top: 30px;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 10px;
}

.gap-3 {
    gap: 15px;
}

.w-100 {
    width: 100%;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.col-12 {
    width: 100%;
    padding: 0 10px;
}

.col-md-8 {
    width: 66.666%;
    padding: 0 10px;
}

.col-md-6 {
    width: 50%;
    padding: 0 10px;
}

.col-md-4 {
    width: 33.333%;
    padding: 0 10px;
}

.col-md-3 {
    width: 25%;
    padding: 0 10px;
}

@media (max-width: 768px) {

    .col-md-8,
    .col-md-6,
    .col-md-4,
    .col-md-3 {
        width: 100%;
    }
}

/* Contingent bar */
.contingent-bar {
    background: #eee;
    border-radius: 10px;
    height: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.contingent-bar-fill {
    height: 100%;
    background: #0D86D1;
    border-radius: 10px;
    transition: width 0.3s;
}

/* Copy link box */
.copy-link {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 10px 15px;
}

.copy-link input {
    border: none;
    background: transparent;
    flex: 1;
    font-size: 14px;
    outline: none;
}

/* Intern styles (for logged-in admin area) */
.box {
    margin-bottom: 20px !important;
}