/* LGL Check-in App Styles */

#lgl-checkin-app {
    font-family: 'Inter', sans-serif;
    max-width: 800px;
    margin: 40px auto;
    background: #111111;
    /* Dark Background */
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    color: #eee;
}

#lgl-checkin-app h1 {
    text-align: center;
    color: #fff;
    margin-bottom: 30px;
    font-size: 2rem;
}

/* Controls */
.lgl-controls select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #444;
    background: #222;
    color: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
}

.lgl-event-dashboard {
    animation: fadeIn 0.4s ease-out;
}

.lgl-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #bbb;
}

/* Inputs & Search */
input[type="text"],
select {
    padding: 12px 15px;
    border: 1px solid #444;
    border-radius: 6px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    background: #222;
    color: #fff;
    outline: none;
    transition: all 0.2s ease;
}

input[type="text"]:focus,
select:focus {
    border-color: #d46300;
    box-shadow: 0 0 0 2px rgba(212, 99, 0, 0.2);
}

.lgl-search-bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

/* Guest List */
.lgl-guest-list {
    display: grid;
    gap: 12px;
}

/* Guest Card */
.lgl-guest-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-left: 8px solid #fddc62;
    /* Default Unknown */
    padding: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: transform 0.1s ease, background 0.2s ease, border-color 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.lgl-guest-card:active {
    transform: scale(0.98);
}

.lgl-guest-card:hover {
    border-color: #555;
}

.lgl-guest-card.status-yes {
    background: #d46300;
    border-color: #e57a1a;
    border-left-color: #ffffff;
}

.lgl-guest-card.status-no {
    background: #613704;
    border-color: #7a4606;
    border-left-color: #aaaaaa;
}

.lgl-guest-card.status-unknown {
    background: #fddc62;
    border-color: #eec941;
    border-left-color: #bfa530;
}

/* Typography inside cards */
.guest-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.4rem;
    color: #eee;
}

.guest-info p {
    margin: 0;
    color: #aaa;
    font-size: 1rem;
}

.lgl-guest-card.status-yes h3,
.lgl-guest-card.status-yes p {
    color: #fff;
}

.lgl-guest-card.status-no h3,
.lgl-guest-card.status-no p {
    color: #ddd;
}

.lgl-guest-card.status-unknown h3,
.lgl-guest-card.status-unknown p {
    color: #111;
}

.rsvp-tag {
    display: inline-block;
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 5px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.1);
}

.guest-status-indicator {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    color: inherit;
    min-width: 100px;
    text-align: center;
}

.lgl-guest-card.status-unknown .guest-status-indicator {
    color: #333;
    background: rgba(255, 255, 255, 0.4);
}

/* Modal */
.lgl-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.lgl-modal {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    animation: slideUp 0.3s ease-out;
}

.lgl-modal h3 {
    margin-top: 0;
    color: #d46300;
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

/* Buttons */
button {
    cursor: pointer;
    font-size: 1.15rem;
    /* Increased from 1rem */
    border: none;
    border-radius: 6px;
    transition: background 0.2s;
    font-weight: 600;
    padding: 14px 24px;
    /* More padding */
}

.btn-checkin {
    background: #d46300;
    color: white;
}

.btn-checkin:hover {
    background: #b55300;
}

.btn-cancel {
    background: #333;
    color: #ccc;
    width: 100%;
}

.btn-cancel:hover {
    background: #444;
    color: #fff;
}

.lgl-results-list {
    margin-top: 20px;
    max-height: 300px;
    overflow-y: auto;
    border-top: 1px solid #333;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #333;
    background: #252525;
    margin-top: 10px;
    border-radius: 6px;
}

.result-item span {
    color: #ddd;
    font-weight: 500;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}