/* Base Resets & Global Typography */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Work Sans', sans-serif;
    background-color: #fcfbfa;
    color: #333333;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Keeps footer pinned to the bottom */
}
h1, h2, h3, .nav-logo { font-family: 'Playfair Display', serif; }

/* Sticky/Structured Layout Wrapper */
.content-wrapper { flex: 1; padding: 40px 20px; max-width: 1200px; width: 100%; margin: 0 auto; }

/* Navigation Bar Styles */
.main-nav { display: flex; justify-content: space-between; align-items: center; padding: 20px 40px; background: #ffffff; box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
.nav-logo a { font-size: 24px; text-decoration: none; color: #4a5568; font-weight: bold; }
.nav-links { display: flex; list-style: none; gap: 25px; }
.nav-links a { text-decoration: none; color: #718096; transition: color 0.2s; font-size: 15px; }
.nav-links a:hover { color: #2d3748; }
.nav-links .admin-link { background: #edf2f7; padding: 6px 12px; border-radius: 4px; color: #4a5568; }

/* Footer Structural Styles */
.main-footer { background-color: #1a202c; color: #a0aec0; padding: 30px 20px; text-align: center; font-size: 14px; margin-top: auto; }
.main-footer p { margin-bottom: 5px; }
.main-footer .copyright { color: #4a5568; font-size: 12px; }

/*RSVP system*/
/* RSVP Form Styles */
.rsvp-container { max-width: 600px; margin: 40px auto; background: white; padding: 40px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); text-align: center; }
.rsvp-container h2 { font-size: 32px; margin-bottom: 10px; color: #2d3748; }
.rsvp-container .subtitle { color: #718096; margin-bottom: 30px; }

.rsvp-form { text-align: left; }
.form-group { margin-bottom: 25px; display: flex; flex-direction: column; }
.form-group label { font-weight: 500; margin-bottom: 8px; color: #4a5568; font-size: 14px; }
.form-group input[type="text"], .form-group select, .form-group textarea { padding: 12px; border: 1px solid #e2e8f0; border-radius: 6px; font-family: inherit; font-size: 15px; background-color: #f7fafc; width: 100%; transition: border-color 0.2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #cbd5e0; background-color: #fff; }

.radio-group { display: flex; gap: 20px; margin-top: 5px; }
.radio-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 16px; color: #4a5568; }

.btn { display: inline-block; width: 100%; background: #4a5568; color: white; border: none; padding: 14px; font-size: 16px; font-weight: 500; border-radius: 6px; cursor: pointer; transition: background 0.2s; text-align: center; }
.btn:hover { background: #2d3748; }

/* Dynamic Display Utilities */
.d-none { display: none !important; }
.message { margin-top: 15px; font-size: 14px; font-weight: 500; text-align: center; }
.message.error { color: #e53e3e; }
.message.success { color: #38a169; background: #f0fff4; padding: 15px; border-radius: 6px; border: 1px solid #c6f6d5; font-size: 16px; }


/*ADMIN*/
/* Dashboard Workspace Layout */
.dashboard-grid { display: flex; flex-direction: column; gap: 30px; width: 100%; }
.dashboard-header h2 { font-size: 28px; color: #2d3748; margin-bottom: 5px; }
.dashboard-header p { color: #718096; margin: 0; }

/* Metrics Row Configuration */
.metrics-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.metric-card { background: #fff; padding: 24px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.02); border-left: 5px solid #cbd5e0; }
.metric-card h3 { font-size: 13px; text-transform: uppercase; color: #718096; margin: 0 0 10px 0; letter-spacing: 0.5px; }
.metric-card p { font-size: 32px; font-weight: bold; margin: 0; color: #2d3748; }

/* Status Color Themes */
.metric-card.cyan { border-left-color: #3182ce; }
.metric-card.green { border-left-color: #38a169; }
.metric-card.red { border-left-color: #e53e3e; }
.metric-card.orange { border-left-color: #dd6b20; }

/* Double Split Insight Layout Structure */
.insights-row { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; align-items: start; }
@media (max-width: 900px) { .insights-row { grid-template-columns: 1fr; } }

.insight-box { background: #fff; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.02); padding: 25px; }
.box-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 15px; }
.box-header h3, .insight-box h3 { font-size: 18px; margin: 0; color: #2d3748; }
#rosterSearch { padding: 8px 14px; border: 1px solid #e2e8f0; border-radius: 6px; width: 240px; font-size: 14px; }

/* Table Element Styling */
.table-wrapper { overflow-x: auto; max-height: 400px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 12px 16px; border-bottom: 1px solid #edf2f7; font-size: 14px; }
th { background: #f7fafc; color: #4a5568; font-weight: 600; position: sticky; top: 0; }

/* Label State Badges */
.badge { display: inline-block; padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: 500; }
.badge-attending { background: #f0fff4; color: #22543d; }
.badge-declined { background: #fff5f5; color: #742a2a; }
.badge-pending { background: #f7fafc; color: #4a5568; border: 1px solid #e2e8f0; }

/* Canvas Container */
.canvas-container { position: relative; height: 260px; width: 100%; margin-top: 15px; }


/*Admin Guest add*/
/* Guest Management Components Grid Layout */
.management-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 768px) { .management-row { grid-template-columns: 1fr; } }

.management-card { background: #fff; padding: 25px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.02); border: 1px solid #edf2f7; }
.management-card h3 { font-size: 16px; color: #2d3748; margin: 0; }

.form-group-inline { display: flex; gap: 10px; flex-wrap: wrap; }
.form-group-inline input { flex: 1; min-width: 120px; padding: 10px; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 14px; }

.btn-dashboard { background: #4a5568; color: white; border: none; padding: 10px 20px; border-radius: 6px; cursor: pointer; font-size: 14px; font-weight: 500; transition: background 0.2s; }
.btn-dashboard:hover { background: #2d3748; }

.file-dropzone { border: 2px dashed #cbd5e0; background: #f7fafc; padding: 20px; border-radius: 6px; text-align: center; color: #718096; font-size: 14px; transition: border-color 0.2s; }
.file-dropzone:hover { border-color: #4a5568; }
.file-dropzone input[type="file"] { display: none; }

#directorySearch { padding: 8px 14px; border: 1px solid #e2e8f0; border-radius: 6px; width: 250px; font-size: 14px; }


/*SEATING */
/* Seating Arrangements Layout Architecture */
.seating-container { width: 100%; margin: 20px auto; padding: 0 10px; }
.seating-header { text-align: center; margin-bottom: 40px; }
.seating-header h2 { font-size: 36px; color: #2d3748; margin-bottom: 8px; }
.seating-header p { color: #718096; margin-bottom: 25px; }
#seatingSearch { padding: 14px 24px; border: 1px solid #cbd5e0; border-radius: 30px; width: 100%; max-width: 420px; font-size: 16px; outline: none; transition: border-color 0.2s, box-shadow 0.2s; text-align: center; background: #ffffff; }
#seatingSearch:focus { border-color: #4a5568; box-shadow: 0 0 0 3px rgba(74, 85, 104, 0.1); }

/* The Grid Framework Layout */
.tables-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 25px; transition: all 0.3s ease; }
.no-tables { grid-column: 1 / -1; text-align: center; color: #a0aec0; padding: 40px; font-size: 16px; }

/* Table Component Cards */
.table-card { background: #ffffff; border: 1px solid #edf2f7; border-radius: 12px; padding: 25px; box-shadow: 0 4px 6px rgba(0,0,0,0.01); text-align: center; transition: transform 0.2s, box-shadow 0.2s, opacity 0.3s ease; position: relative; }
.table-badge { background: #4a5568; color: white; padding: 6px 18px; border-radius: 20px; display: inline-block; font-size: 14px; font-weight: 600; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.5px; }

.table-guest-list { list-style: none; padding: 0; margin: 0; text-align: left; }
.guest-item { padding: 6px 12px; font-size: 15px; color: #4a5568; border-radius: 6px; transition: background-color 0.2s, color 0.2s; }

/* Active Highlighting Filters */
.table-card.highlight-table { transform: scale(1.05); box-shadow: 0 12px 24px rgba(0,0,0,0.08); border-color: #4a5568; z-index: 10; }
.guest-item.highlight-guest { background-color: #feebc8; color: #c05621; font-weight: 600; }
