:root {
    /* Color Palette - Vibrant yet readable */
    --bg-color: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --card-bg: rgba(30, 41, 59, 0.7);
    --card-border: rgba(255, 255, 255, 0.1);
    
    --primary: #8b5cf6; /* Violet */
    --primary-glow: rgba(139, 92, 246, 0.4);
    --secondary: #3b82f6; /* Blue */
    --accent: #f43f5e; /* Rose */
    
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.15);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.15);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.15);

    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

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

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(at 0% 0%, rgba(139, 92, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(59, 130, 246, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3 {
    line-height: 1.2;
}

h2 {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 2rem;
    letter-spacing: 0.5px;
}

.hero-title {
    color: #e2e8f0;
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 3rem 1.5rem 2.5rem;
    text-align: center;
    overflow: hidden;
}

.hero-banner {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 3.5rem 2rem;
    border-radius: 24px;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
}

.hero-bg-graphic {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Smaller tilt, natural aspect ratio, scaled down */
    transform: translate(-50%, -50%) rotate(-5deg);
    width: 100%;
    max-width: 450px;
    height: auto;
    z-index: 0;
    opacity: 0.15;
    pointer-events: none;
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.4));
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-top: 0.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.decorative-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.6;
}

.circle-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: -100px;
    left: -100px;
    animation: float 8s ease-in-out infinite alternate;
}

.circle-2 {
    width: 250px;
    height: 250px;
    background: var(--secondary);
    bottom: -50px;
    right: -50px;
    animation: float 10s ease-in-out infinite alternate-reverse;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(30px) scale(1.1); }
}

/* Layout Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Card Styles */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    padding: 1.5rem 2.5rem;
    border-bottom: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
}

.flex-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.card-body {
    padding: 1.5rem 2.5rem;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--card-border);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.sync-status {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: 0.75rem;
    opacity: 0.8;
}

/* Meeting Section Specifics */
.announcement {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.meeting-details {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    background: rgba(0,0,0,0.2);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.detail-item .icon {
    font-size: 1.8rem;
    background: rgba(255,255,255,0.05);
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
}

.text-group {
    display: flex;
    flex-direction: column;
}

.text-group strong {
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.text-group span {
    font-size: 1.6rem;
    font-weight: 600;
}

/* Table Styles */
.table-container {
    margin-top: 2rem;
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--card-border);
}

.book-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.book-table th, .book-table td {
    padding: 1.2rem 1.5rem;
    text-align: left;
}

.book-table th {
    background: rgba(0,0,0,0.3);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: sticky;
    top: 0;
}

.book-table tbody tr {
    border-top: 1px solid var(--card-border);
    transition: background 0.2s ease;
}

.book-table tbody tr:hover {
    background: rgba(255,255,255,0.03);
}

.center-col {
    text-align: center !important;
}

.book-cell {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.book-cover {
    width: 60px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    background-color: rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.book-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--card-border), rgba(255,255,255,0.05));
}

.book-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.book-title {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
}

.book-author {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
    margin-top: 0.2rem;
    letter-spacing: 0.5px;
}

.number-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.status-pill {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-high {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-med {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-low {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

a.status-link {
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

a.status-link:hover {
    transform: translateY(-3px);
    filter: brightness(1.35);
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.8),
        0 0 14px 3px rgba(255, 255, 255, 0.2),
        0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 1rem;
    margin-top: 3rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.heart {
    color: var(--accent);
    display: inline-block;
    animation: pump 1.5s infinite;
}

@keyframes pump {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Forms & Buttons */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.8rem 2.2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    filter: brightness(1.25);
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.85),
        0 0 20px 6px rgba(139, 92, 246, 0.7),
        0 12px 30px rgba(59, 130, 246, 0.5);
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--primary-glow);
}

.suggestion-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-group input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1rem;
    color: white;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.4);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    margin-top: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.honeypot-group {
    display: none;
}

.form-message {
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    margin-top: 0.5rem;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.form-message.hidden {
    display: none;
    opacity: 0;
}

.form-message.success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-message.error {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .gradient-text { font-size: 2.5rem; }
    .card-header, .card-body { padding: 1.5rem; }
    .meeting-details { flex-direction: column; gap: 1rem; }
}
