@media (max-width: 600px) {
    .navbar, .navbar-links, .nav-btn-group { display: none !important; }
    .mobile-nav-cta { display: block !important; padding: 10px; background: transparent; text-align: center; }
    .guest-cards {
        display: flex !important;
    }
}
@media (max-width: 600px) {
    .filter-collapse-toggle, .filter-collapse-btn, .filter-bar, .filter-bar.open, .filter-btn, .filter-btn.collapsed {
        display: none !important;
    }
    .guest-cards {
        .guest-cards {
            display: flex;
            flex-direction: column;
            gap: 20px;
            margin-top: 18px;
            padding: 0 6px;
        }
        margin-top: 0;
    }
    .search-bar {
        flex-direction: column;
        align-items: center;
        margin-bottom: 18px;
    }
    #phone-search {
        width: 95vw;
        max-width: 420px;
        font-size: 1.35em;
        padding: 18px 14px;
        border-radius: 16px;
        .guest-card .status {
            position: absolute;
            top: 12px;
            left: 12px;
            font-size: 0.95em;
        }
        .guest-card .card-row {
            margin-bottom: 7px;
            display: flex;
            gap: 8px;
            align-items: center;
        }
        .guest-card .card-label {
            font-weight: bold;
            color: #1a237e;
            min-width: 80px;
        }
        .guest-card .card-value {
            color: #333;
        }
        .guest-card .arrived-dropdown {
            margin-right: 8px;
        }
        .guest-card .action-btn {
            margin-top: 10px;
            width: 100%;
        }
        .guest-card.arrived {
            background: #e0ffe0;
        }
        .guest-card .highlight {
            background: transparent !important;
            padding: 0;
        }
        font-size: 1.12em;
    }
    .guest-card .card-label {
        font-weight: bold;
        color: #1a237e;
        min-width: 90px;
        font-size: 1em;
    }
    .guest-card .card-value {
        color: #333;
        font-size: 1em;
        word-break: break-word;
    }
    .guest-card .arrived-dropdown {
        margin-right: 8px;
        font-size: 1em;
        padding: 7px 12px;
    }
    .guest-card .action-btn {
        margin-top: 22px;
        width: 100%;
        font-size: 1.18em;
        background: #43a047;
        color: #fff;
        border-radius: 10px;
        padding: 16px 0;
        font-weight: bold;
        border: none;
        box-shadow: 0 2px 8px rgba(67,160,71,0.10);
        transition: background 0.2s;
    }
    .guest-card .action-btn:disabled {
        background: #aaa;
        color: #fff;
    }
    .guest-card.arrived {
        background: #e0ffe0;
        border-color: #43a047;
    }
    .guest-card.card-warning {
        background: #ffffff !important;
        border-color: #ffffff !important;
    }
    .compact-card.arrived {
        background: #e0ffe0 !important;
        border-color: #4caf50 !important;
    }
}
@media (max-width: 600px) {
    .filter-bar {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
        margin-bottom: 10px;
    }
    .filter-btn {
        font-size: 1.08em;
        padding: 10px 18px;
        border-radius: 10px;
        min-width: 90px;
    }
    .filter-btn.collapsed {
        background: #e0e0e0;
        color: #1a237e;
        opacity: 0.7;
    }
    .guest-cards {
        margin-top: 0;
    }
    .search-bar {
        flex-direction: column;
        align-items: center;
        margin-bottom: 18px;
    }
    #phone-search {
        width: 90vw;
        max-width: 400px;
        font-size: 1.25em;
        padding: 16px 12px;
        border-radius: 12px;
        border: 2px solid #1a237e;
        box-shadow: 0 2px 8px rgba(20,34,87,0.10);
        margin-bottom: 10px;
        text-align: center;
    }
}
@media (max-width: 600px) {
    .guest-card {
        position: relative;
    }
    .guest-card .status-btn {
        position: absolute;
        top: 14px;
        right: 14px;
        background: #ff6a6a;
        color: #fff;
        border: none;
        border-radius: 18px;
        padding: 6px 18px;
        font-size: 0.95em;
        font-weight: bold;
        box-shadow: 0 1px 4px rgba(255,106,106,0.08);
        z-index: 2;
    }
    .guest-card.arrived .status-btn {
        background: #4caf50;
    }
    .guest-card .card-row {
        margin-bottom: 14px;
        display: flex;
        gap: 10px;
        align-items: center;
        font-size: 1.08em;
    }
    .guest-card .card-label {
        font-weight: bold;
        color: #1a237e;
        min-width: 90px;
        font-size: 1em;
    }
    .guest-card .card-value {
        color: #333;
        font-size: 1em;
        word-break: break-word;
    }
    .guest-card .arrived-dropdown {
        margin-right: 8px;
        font-size: 1em;
        padding: 7px 12px;
    }
    .guest-card .action-btn {
        margin-top: 18px;
        width: 100%;
        font-size: 1.15em;
        background: #43a047;
        color: #fff;
        border-radius: 8px;
        padding: 14px 0;
        font-weight: bold;
        border: none;
        box-shadow: 0 1px 4px rgba(67,160,71,0.08);
        transition: background 0.2s;
    }
    .guest-card .action-btn:disabled {
        background: #aaa;
        color: #fff;
    }
    .guest-card.arrived {
        background: #e0ffe0;
        border-color: #43a047;
    }
    .guest-card.card-warning {
        background: #ffffff !important;
        border-color: #ffffff !important;
    }
}
@media (max-width: 600px) {
    .nav-btn-group {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin: 18px auto 0 auto;
        align-items: center;
        width: 100%;
        max-width: 400px;
    }
    .nav-btn-group .nav-btn {
        width: 100%;
        font-size: 1.15em;
        padding: 14px 0;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(20,34,87,0.10);
        margin: 0;
    }
}
@media (max-width: 600px) {
    .guest-cards {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-top: 18px;
        padding: 0 6px;
    }
    .guest-card {
        background: #fff;
        border-radius: 18px;
        box-shadow: 0 2px 8px rgba(20,34,87,0.10);
        border: 1.5px solid #e0e0e0;
        padding: 22px 14px 18px 14px;
        display: flex;
        flex-direction: column;
        font-size: 1.15em;
        position: relative;
        min-width: 0;
    }
    .guest-card .status {
        position: absolute;
        top: 12px;
        left: 12px;
        font-size: 1em;
        font-weight: bold;
    }
    .guest-card .card-row {
        margin-bottom: 12px;
        display: flex;
        gap: 10px;
        align-items: center;
    }
    .guest-card .card-label {
        font-weight: bold;
        color: #1a237e;
        min-width: 90px;
        font-size: 1em;
    }
    .guest-card .card-value {
        color: #333;
        font-size: 1em;
    }
    .guest-card .arrived-dropdown {
        margin-right: 8px;
        font-size: 1em;
        padding: 7px 12px;
    }
    .guest-card .action-btn {
        margin-top: 14px;
        width: 100%;
        font-size: 1.15em;
        background: #43a047;
        color: #fff;
        border-radius: 8px;
        padding: 12px 0;
        font-weight: bold;
        border: none;
        box-shadow: 0 1px 4px rgba(67,160,71,0.08);
        transition: background 0.2s;
    }
    .guest-card .action-btn:disabled {
        background: #aaa;
        color: #fff;
    }
    .guest-card.arrived {
        background: #e0ffe0;
        border-color: #43a047;
    }
    .guest-card.card-warning {
        background: #ffffff !important;
        border-color: #ffffff !important;
    }
    .guest-card .highlight { background: transparent !important; padding: 0; }
}
.guest-cards {
    display: none;
}
@media (max-width: 600px) {
    .table-box {
        overflow-x: auto;
        width: 100vw;
        padding-bottom: 10px;
    }
    table {
        min-width: 700px;
        font-size: 1.08em;
    }
    th, td {
        padding: 10px 4px;
        font-size: 1em;
    }
    .guest-cards {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-top: 10px;
    }
    .guest-card {
        background: #fff;
        border-radius: 18px;
        box-shadow: 0 2px 8px rgba(20,34,87,0.10);
        padding: 18px 14px;
        display: flex;
        flex-direction: column;
        font-size: 1em;
        position: relative;
    }
    .guest-card .status {
        position: absolute;
        top: 12px;
        left: 12px;
        font-size: 0.95em;
    }
    .guest-card .card-row {
        margin-bottom: 7px;
        display: flex;
        gap: 8px;
        align-items: center;
    }
    .guest-card .card-label {
           font-weight: bold;
           color: #1a237e;
           min-width: 80px;
           display: inline;
           visibility: visible;
           opacity: 1;
    }
    .guest-card .card-value {
           color: #333;
           display: inline;
           visibility: visible;
           opacity: 1;
           word-break: break-word;
    }
    .guest-card .arrived-dropdown {
        margin-right: 8px;
    }
    .guest-card .action-btn {
        margin-top: 10px;
        width: 100%;
    }
    .guest-card.arrived {
        background: #e0ffe0;
    }
    /* removed highlight styling */
}
@media (max-width: 600px) {
    /* Hide table, show guest cards */
    .table-box table {
        display: none;
    }
    .guest-cards {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-top: 10px;
    }
    .guest-card {
        background: #fff;
        border-radius: 18px;
        box-shadow: 0 2px 8px rgba(20,34,87,0.10);
        padding: 18px 14px;
        display: flex;
        flex-direction: column;
        font-size: 1em;
        position: relative;
    }
    .guest-card .status {
        position: absolute;
        top: 12px;
        left: 12px;
        font-size: 0.95em;
    }
    .guest-card .card-row {
        margin-bottom: 7px;
        display: flex;
        gap: 8px;
        align-items: center;
    }
    .guest-card .card-label {
        font-weight: bold;
        color: #1a237e;
        min-width: 80px;
    }
    .guest-card .card-value {
        color: #333;
    }
    .guest-card .arrived-dropdown {
        margin-right: 8px;
    }
    .guest-card .action-btn {
        margin-top: 10px;
        width: 100%;
    }
    .guest-card.arrived {
        background: #e0ffe0;
    }
    .guest-card .highlight { background: transparent !important; padding: 0; }
}
@media (max-width: 900px) {
    .main-box {
        padding: 10px;
        margin: 10px;
    }
    .navbar {
        padding: 0 10px;
        height: 56px;
    }
    .navbar-brand {
        font-size: 1.2em;
    }
    .navbar-links {
        gap: 8px;
    }
    .search-bar {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    .filter-bar {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    table {
        font-size: 0.95em;
    }
    th, td {
        padding: 8px 4px;
    }
}

@media (max-width: 600px) {
    .main-box {
        padding: 2px;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 8px 2px;
    }
    .navbar-links {
        flex-direction: column;
        gap: 4px;
        width: 100%;
        align-items: center;
    }
    .nav-btn {
        width: 100%;
        padding: 10px 0;
        font-size: 1em;
    }
    .search-bar {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    .filter-bar {
        flex-direction: column;
        gap: 6px;
        align-items: center;
    }
    .table-box {
        overflow-x: auto;
    }
    table {
        font-size: 0.9em;
        min-width: 600px;
    }
    th, td {
        padding: 6px 2px;
    }
    .arrived-dropdown {
        font-size: 0.95em;
        padding: 5px 8px;
    }
}
.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    justify-content: center;
}
.filter-btn {
    background: #1a237e;
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: background 0.2s, color 0.2s;
}
.filter-btn.active, .filter-btn:focus {
    background: #fff;
    color: #1a237e;
    outline: none;
}
.filter-btn:hover {
    background: #fff;
    color: #1a237e;
}

.arrived-dropdown {
    padding: 7px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 1em;
    background: #f9f9f9;
    color: #333;
    transition: border 0.2s;
}
.arrived-dropdown:focus {
    border-color: #ff6a6a;
    outline: none;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #142257;
    padding: 0 40px;
    height: 64px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 0;
}
.navbar-brand {
    color: #fff;
    font-size: 1.7em;
    font-weight: bold;
    letter-spacing: 1px;
}
.navbar-links {
    display: flex;
    gap: 18px;
}
.nav-btn {
    background: #1a237e;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    cursor: pointer;
}
.nav-btn:hover, .nav-btn.active {
    background: #fff;
    color: #1a237e;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #bcff03 0%, #5310ef 100%);
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(20,34,87,0.13);
    cursor: pointer;
    margin-right: 8px;
    z-index: 1001;
    transition: box-shadow 0.2s, background 0.2s;
}
.hamburger-menu:hover, .hamburger-menu.open {
    box-shadow: 0 4px 16px rgba(20,34,87,0.18);
    background: linear-gradient(135deg, #5310ef 0%, #bcff03 100%);
}
.hamburger-menu span {
    display: block;
    width: 28px;
    height: 4px;
    background: #fff;
    margin: 6px 0;
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
    transition: 0.3s;
}
.hamburger-menu.open span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
.hamburger-menu.open span:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.open span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 0;
    background: linear-gradient(135deg, #bcff03 0%, #5310ef 100%);
    box-shadow: -2px 0 16px rgba(20,34,87,0.13);
    border-radius: 0 0 0 32px;
    padding-top: 80px;
    z-index: 2000;
    flex-direction: column;
    align-items: flex-end;
    overflow-x: hidden;
    transition: width 0.35s cubic-bezier(.77,0,.18,1), background 0.2s;
}
.mobile-nav.open {
    display: flex;
    width: 80vw;
    min-width: 220px;
    max-width: 340px;
}
.mobile-nav .nav-btn {
    display: block;
    width: 90%;
    text-align: right;
    margin: 0 18px 18px 0;
    font-size: 1.18em;
    padding: 16px 0;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(20,34,87,0.10);
    background: #fff;
    color: #1a237e;
    font-weight: bold;
    border: none;
    transition: background 0.2s, color 0.2s;
}
.mobile-nav .nav-btn:hover, .mobile-nav .nav-btn.active {
    background: #bcff03;
    color: #5310ef;
}
.mobile-nav::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(135deg, rgba(188,255,3,0.08) 0%, rgba(83,16,239,0.08) 100%);
    z-index: -1;
    border-radius: 0 0 0 32px;
}
@media (max-width: 900px) {
    /* Replace navbar with top CTA on mobile/tablet (all pages) */
    .navbar { display: none !important; }
    .navbar-links { display: none !important; }
    .hamburger-menu { display: none !important; }
    .mobile-nav, .mobile-nav.open { display: none !important; }
    .mobile-nav-cta { display: block; padding: 10px; background: transparent; text-align: center; }
    .mobile-cta-btn {
        display: inline-block;
        background: #1a237e;
        color: #fff;
        text-decoration: none;
        padding: 12px 18px;
        border-radius: 12px;
        font-size: 1.1em;
        box-shadow: 0 2px 8px rgba(0,0,0,0.12);
        font-weight: bold;
    }
}

@media (max-width: 900px) {
    .navbar-links .nav-btn { display: inline-flex !important; }
}

body {
    font-family: Arial, sans-serif;
    background: #0d133d;
    direction: rtl;
    margin: 0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Hide mobile CTA by default (desktop/tablet large screens) */
.mobile-nav-cta { display: none; }
.mobile-nav-cta { display: none !important; }

.fab-all-guests {
    position: fixed;
    bottom: 18px;
    left: 18px;
    background: #1a237e;
    color: #fff;
    padding: 12px 16px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 1500;
}
@media (min-width: 601px) {
    .fab-all-guests { display: none; }
}

@media (max-width: 600px) {
    .table-box { margin: 0 auto; }
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    background:
        radial-gradient(white 1px, transparent 1px) 0 0,
        radial-gradient(white 1px, transparent 1px) 50px 50px,
        radial-gradient(white 1px, transparent 1px) 100px 100px,
        radial-gradient(white 1px, transparent 1px) 150px 150px,
        radial-gradient(white 1px, transparent 1px) 200px 200px;
    background-size: 200px 200px;
    background-color: #0d133d;
    opacity: 0.7;
}
.header {
    background: linear-gradient(90deg, #bcff03 0%, #5310ef 100%);
    color: #fff;
    padding: 30px 0 10px 0;
    text-align: right;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.header h1 {
    margin: 0 40px;
    font-size: 2.5em;
}
.main-box {
    max-width: 1200px;
    margin: 40px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 30px;
}
.search-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}
#phone-search {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 1.1em;
}
#add-guest-btn {
    background: #ff6a6a;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s;
}
#add-guest-btn:hover {
    background: #ffb347;
}
.table-box {
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
th, td {
    border: 1px solid #eee;
    padding: 12px 8px;
    text-align: center;
    font-size: 1em;
}
th {
    background: #f9f9f9;
    color: #333;
}
tr.arrived {
    background: #e0ffe0;
}
.status {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: bold;
    color: #fff;
    background: #ff6a6a;
}
.status.arrived {
    background: #4caf50;
}
.action-btn {
    background: #4caf50;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.2s;
}
.action-btn:disabled {
    background: #aaa;
    cursor: not-allowed;
}
.notes {
    font-size: 0.95em;
    color: #666;
}

/* saved feedback */
.flash-success-bg{ background:#e9fbea !important; transition: background .2s ease }
.saved-badge{ display:inline-block; margin-right:8px; padding:2px 8px; border-radius:12px; background:#2ecc71; color:#fff; font-weight:bold; font-size:0.85em }
.guest-card.flash-success {
    background: #e9fbea !important;
    border-color: #2ecc71 !important;
    box-shadow: 0 0 0 2px #2ecc7133 !important;
    transition: background .2s, border-color .2s, box-shadow .2s;
}

/* Group badge styling */
.group-badge {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
    color: #fff;
    padding: 12px 16px;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    font-size: 1.02em;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(26, 35, 126, 0.20);
    z-index: 2;
    white-space: nowrap;
    text-align: center;
    letter-spacing: 0.5px;
}

.group-badge.empty {
    background: linear-gradient(135deg, #9e9e9e 0%, #757575 100%);
    box-shadow: 0 2px 8px rgba(158, 158, 158, 0.25);
}

/* Adjust guest card for group badge */
@media (max-width: 600px) {
    .guest-card {
        position: relative;
        margin-top: 0;
        padding-top: 56px; /* space for the group header band */
        overflow: hidden; /* clip header to rounded corners */
    }
}

.card-status-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 6px;
}
.card-status-badge {
    display: inline-block;
    padding: 7px 22px;
    border-radius: 18px;
    font-size: 1.08em;
    font-weight: bold;
    background: #ff6a6a;
    color: #fff;
    box-shadow: 0 1px 4px rgba(255,106,106,0.08);
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.card-status-badge.arrived {
    background: #43a047;
}
