:root {
    --primary: #FF6B6B;     /* Vibrant Coral */
    --secondary: #4ECDC4;   /* Teal */
    --accent: #FFE66D;      /* Yellow */
    --dark: #292F36;        /* Dark Grey */
    --light: #F7FFF7;       /* Off White */
    --card-bg: #FFFFFF;
    --font-main: 'Poppins', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--light);
    color: var(--dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary), #FF8E53);
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.1);
}

.highlight {
    background-color: var(--accent);
    color: var(--dark);
    padding: 0 10px;
    border-radius: 8px;
    transform: rotate(-2deg);
    display: inline-block;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.card.empty {
    border: 2px dashed #ccc;
    background-color: #fafafa;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.card.empty:hover {
    border-color: var(--secondary);
    background-color: #f0fffe;
}

.card.booked {
    border-left: 8px solid var(--secondary);
}

.card-date {
    font-weight: 700;
    font-size: 1.1rem;
    color: #888;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.theme-display {
    text-align: center;
    margin: 1rem 0;
}

.theme-emoji {
    font-size: 4rem;
    display: block;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.theme-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.host-name {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.host-name span {
    font-weight: 600;
    color: var(--primary);
}

.card-action {
    margin-top: auto;
}

.add-btn {
    font-size: 3rem;
    color: #ccc;
    background: none;
    border: none;
    transition: color 0.3s;
}

.card.empty:hover .add-btn {
    color: var(--secondary);
}

.empty-text {
    margin-top: 10px;
    font-weight: 600;
    color: #aaa;
}

.rsvp-count {
    background: #eee;
    padding: 8px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}

.rsvp-count:hover {
    background: #e0e0e0;
}

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

.hidden {
    display: none;
}

.modal-content {
    background-color: white;
    padding: 2.5rem;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.bounce-in {
    animation: bounceIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #aaa;
}

.close-btn:hover { color: var(--dark); }

/* Forms */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

label {
    font-weight: 600;
    font-size: 0.9rem;
}

input, select {
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border 0.2s;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--secondary);
}

.btn-primary, .btn-secondary {
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: transform 0.1s;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

.btn-primary:active, .btn-secondary:active {
    transform: scale(0.98);
}

/* Guest List inside Modal */
.guest-list-container {
    margin-top: 2rem;
    border-top: 2px dashed #eee;
    padding-top: 1rem;
}

.guest-list-container h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #666;
}

#currentGuestList {
    list-style: none;
    max-height: 150px;
    overflow-y: auto;
}

#currentGuestList li {
    background: #f9f9f9;
    padding: 8px 12px;
    margin-bottom: 6px;
    border-radius: 6px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

#currentGuestList li::before {
    content: '😋';
    margin-right: 8px;
}

footer {
    margin-top: auto;
    text-align: center;
    padding: 2rem;
    color: #888;
    font-size: 0.9rem;
}