/*
==================================
main.css
Stylesheet for Events For Employees
Last Updated: 2025-08-11
==================================
*/

/* --- 1. General & Typography --- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #FFFFFF;
    color: #212121;
}

h1, h2 {
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
}

.site-wrapper {
    position: relative;
    overflow-x: hidden;
}

/* --- 2. Navbar --- */
.nav-toggle {
    display: none;
}

.navbar {
    background: #FFFFFF;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    height: 80px;
    width: 100%;
    max-width: 1300px;
    padding: 0 24px;
}

.navbar-logo {
    color: #00539B;
    justify-self: start;
    cursor: pointer;
    font-size: 2rem;
    display: flex;
    align-items: center;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    text-align: center;
}

.nav-item {
    height: 80px;
}

.nav-link {
    color: #212121;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    height: 100%;
    border-bottom: 4px solid transparent;
    transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    box-sizing: border-box;
}

.nav-link:hover {
    color: #00539B;
    transform: translateY(-2px);
    border-bottom-color: #00539B;
}

/* This ensures the form container fills the space */
.logout-form {
    height: 100%;
    display: flex;
    align-items: center;
}

/* This makes the button look and act exactly like the other links */
.logout-form button.nav-link {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

/* This applies the correct hover effect */
.logout-form button.nav-link:hover {
    color: #00539B;
    border-bottom: 4px solid #00539B;
}

/* --- 3. Banner --- */
.banner-container {
    color: white;
    height: 50vh;
    position: relative;
    overflow: hidden;
    background-color: #212121;
}

.banner-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    animation: bannerFade 20s infinite;
    background-size: cover;
    background-position: center;
}

.banner-slide:nth-child(1) {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://source.unsplash.com/random/1600x900/?concert,crowd');
    animation-delay: 0s;
}
.banner-slide:nth-child(2) {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://source.unsplash.com/random/1600x900/?stadium,sports');
    animation-delay: 5s;
}
.banner-slide:nth-child(3) {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://source.unsplash.com/random/1600x900/?office,team');
    animation-delay: 10s;
}
.banner-slide:nth-child(4) {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://source.unsplash.com/random/1600x900/?technology,data');
    animation-delay: 15s;
}

@keyframes bannerFade {
    0%    { opacity: 0; }
    2.5%  { opacity: 1; }
    22.5% { opacity: 1; }
    25%   { opacity: 0; }
    100%  { opacity: 0; }
}

.banner-slide h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.banner-slide p {
    font-size: 1.5rem;
}

/* --- 4. Homepage Content & Pricing Sections --- */
.stats-container {
    display: flex;
    justify-content: space-around;
    padding: 4rem 2rem;
    background-color: #FFFFFF;
}

.stat-card {
    text-align: center;
    padding: 1rem;
}

.stat-card h2 {
    font-size: 3rem;
    color: #00539B;
    margin: 0;
}

.stat-card p {
    font-size: 1.2rem;
    color: #555;
    margin-top: 0.5rem;
}

.content-section {
    padding: 4rem 2rem;
}

.content-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #00539B;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

.alt-background {
    background-color: #f8f9fa;
}

.pricing-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pricing-tier {
    border: 1px solid #ddd;
    padding: 2rem;
    border-radius: 8px;
    flex-basis: 210px; /* UPDATED: Changed from 300px */
    background-color: #fff;
    position: relative;
    transition: transform 0.3s ease;
}

.pricing-tier:hover {
    transform: translateY(-10px);
}

.pricing-tier-popular {
    border: 2px solid #00539B;
}

.btn-pricing {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.8rem 2rem;
    background-color: #00539B;
    color: #fff;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none; /* Add this to normalize button appearance */
    text-decoration: none; /* Add this to normalize link appearance */
}

.btn-pricing:hover {
    background-color: #00427A;
}


/* --- 5. Detailed Features Page --- */
.feature-page-container {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
}

.subtitle {
    font-size: 1.2rem;
    color: #555;
    max-width: 600px;
    margin: -1rem auto 3rem auto;
}

.responsive-pricing-table {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0 auto;
}

.plan-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    flex: 1;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: relative;
    transition: transform 0.3s ease;
}

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

.plan-card.popular {
    border: 2px solid #00539B;
}

.plan-card .plan-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.plan-card.popular .plan-header {
    padding-top: 1.5rem;
}

.plan-card h3 {
    font-size: 1.8rem;
    margin: 0 0 0.5rem 0;
}

.plan-card .price {
    font-size: 1.5rem;
    color: #555;
    margin: 0;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.feature-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li.disabled {
    color: #aaa;
    text-decoration: line-through;
}

.popular-badge {
    background-color: #00539B;
    color: #fff;
    padding: 0.4rem 1rem;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    white-space: nowrap;
}


/* --- 6. Footer --- */
.footer {
    background-color: #212121;
    color: #FFFFFF;
    text-align: center;
    padding: 2rem 1rem;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-link {
    color: #FFFFFF;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #00539B;
}

.footer-link:not(:last-child)::after {
    content: '|';
    margin-left: 1rem;
    color: #555;
    pointer-events: none;
}

.footer-copyright {
    margin: 0;
    font-size: 0.9rem;
    color: #aaa;
}

.month-section {
    max-width: 1200px;
    margin: 0 auto 3rem auto; /* Add space between months */
    padding: 0 2rem;
}

.month-header {
    font-size: 2rem;
    color: #00539B;
    border-bottom: 2px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

/* --- 6. Password Criteria --- */

#password-criteria, #pass-match {
    font-size: 0.9em;
    margin-top: -0.5rem;
    padding-left: 0.5rem;
}

#password-criteria p, #pass-match {
    margin: 0.5rem 0;
    color: #888; /* Default color for criteria */
    transition: color 0.3s ease;
}

#password-criteria p.valid, #pass-match.valid {
    color: #28a745; /* Green color for valid criteria */
}

#password-criteria p.valid span::before, #pass-match.valid span::before {
    content: '✓'; /* The checkmark */
    margin-right: 8px;
    font-weight: bold;
}

/* --- 7. Admin Dashboard --- */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
}

.dashboard-card {
    background: #FFFFFF;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #212121; /* Ensure text color is correct */
}

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

.dashboard-icon {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 1rem;
}

.dashboard-card h3 {
    font-size: 1.5rem;
    color: #00539B;
    margin-bottom: 0.5rem;
}

.dashboard-card.disabled {
    background-color: #f8f9fa;
    color: #aaa;
    cursor: not-allowed;
}

.dashboard-card.disabled:hover {
    transform: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.dashboard-card.disabled h3 {
    color: #aaa;
}

.no-requests-message {
    text-align: center;
    padding: 3rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    max-width: 600px; /* Give it a max-width */
    margin: 0 auto; /* Center the box itself */
}

.form-field {
    margin-bottom: 1.5rem;
}

.form-field label {
    display: block; /* Ensures the label is on its own line */
    font-weight: bold;
    margin-bottom: 0.5rem; /* Space between label and input */
}

.form-field textarea,
.form-field input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box; /* Ensures padding doesn't break the width */
}

.form-field .help-text {
    display: block; /* Ensures help text is on its own line */
    margin-top: 0.5rem;
    font-size: 0.9em;
    color: #555;
}

/* --- Ticket Request Card Styles --- */
.request-list-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.request-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    border: 1px solid #ddd; /* The requested solid border */
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.request-email {
    margin: 0;
    font-weight: 500;
}

.request-actions {
    /* Uses the existing button styles .btn-approve and .btn-deny */
    display: flex;
    gap: 0.5rem;
}

/* --- Status Badge Styles --- */
.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    text-transform: uppercase;
}

.status-badge.approved {
    background-color: #d4edda; /* Light green */
    color: #155724; /* Dark green */
}

.status-badge.denied {
    background-color: #f8d7da; /* Light red */
    color: #721c24; /* Dark red */
}

.status-badge.pending {
    background-color: #fff3cd; /* Light yellow */
    color: #856404; /* Dark yellow */
}

/* --- 8. Calendar --- */

.calendar-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.fc-event-title {
    white-space: normal !important; /* The !important flag ensures this rule wins */
    overflow-wrap: break-word;
}

/* This rule adds a little more padding to the event for better spacing */
.fc-daygrid-event {
    padding: 2px 4px;
}

/* --- Login/Register Form Wrapper Styles --- */
.form-wrapper {
    max-width: 450px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
}

.form-wrapper h2 {
    margin-top: 0;
    font-size: 2rem;
}

.form-wrapper p {
    color: #555;
}

.form-errors {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    text-align: left;
}

.form-footer-link {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    font-size: 0.9em;
}

.form-footer-link a {
    color: #00539B;
    font-weight: bold;
}


/* --- General Form Styling --- */
.form-field {
    margin-bottom: 1.5rem;
}

.form-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* This rule now applies SHARED styles to all form elements */
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="password"],
.form-field input[type="number"],
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
}

/* This NEW, separate rule applies the custom arrow ONLY to select dropdowns */
.form-field select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23212121%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: 10px auto;
}

.form-field .help-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9em;
    color: #555;
}

/* Override browser autofill styles */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    border: 1px solid #ddd;
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: #212121 !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* --- Employee Event List Styles --- */
.event-grid {
    display: grid;
    /* Create a responsive grid of cards */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.event-card {
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden; /* Ensures the image corners are rounded */
    display: flex;
    flex-direction: column; /* Stack card content vertically */
}

.event-image {
    width: 100%;
    height: 180px;
    object-fit: cover; /* Ensures the image covers the area without distortion */
}

.event-info {
    padding: 1.5rem;
    flex-grow: 1; /* Allows this section to grow, pushing the button to the bottom */
}

.event-info h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.event-date {
    margin: 0;
    color: #555;
    font-size: 0.9em;
}

.event-user-requests {
    padding: 1.5rem;
    flex-grow: 1;
}

.event-user-requests h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.event-user-requests-item {
    margin: 0;
    color: #555;
    font-size: 0.9em;
}

.event-actions {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.btn-event-card {
    display: block;
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: #00539B;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-event-card:hover {
    background-color: #00427A; /* Darker PCL Blue */
}

/* Style for the disabled button state */
.btn-event-card[disabled] {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    width: 100%;
}

.btn-event-card.btn-disabled {
    background-color: #dc3545;
    color: #fff;
    cursor: not-allowed;
}

.month-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    padding: 0 2rem;
}

.month-header {
    font-size: 2rem;
    color: #00539B;
    margin: 0;
    text-align: center;
}

.month-nav-link {
    font-weight: bold;
    color: #00539B;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.month-nav-link:hover {
    background-color: #f0f0f0;
}

.cancel-link {
    display: block;
    padding: 0.8rem 1rem;
    background-color: #dc3545; /* A standard, clear red */
    color: #fff;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 0.5rem; /* ADDED: This creates space between the buttons */
}

.cancel-link:hover {
    background-color: #c82333; /* A slightly darker red for the hover effect */
    color: #fff; /* Keep the text white on hover */
}

/* --- Company Feed Styles --- */
.feed-container {
    max-width: 700px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.post-card {
    background: #FFFFFF;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.create-post-card {
    background-color: #f8f9fa;
}

.post-date {
    font-size: 0.9em;
    color: #555;
    margin-top: -10px;
}

.post-caption {
    font-size: 1.1em;
    line-height: 1.6;
}

.post-media {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 1rem;
}

/* --- Add these new rules at the bottom of the file --- */
.post-stats {
    font-size: 0.9em;
    color: #555;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 1rem;
}
.post-stats span {
    margin-right: 1rem;
}

.post-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.action-btn {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: #e0e0e0;
}

.like-btn.liked {
    background-color: #00539B; /* PCL Blue */
    color: #fff;
    border-color: #00539B;
}

.comments-section {
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.comment {
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}
.comment p {
    margin: 0.3rem 0;
}

.comment-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}
.comment-form input {
    flex-grow: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 0.5rem 1rem;
}
.comment-form button {
    background: #00539B;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 0.5rem 1.2rem;
    cursor: pointer;
}

.spinner {
    border: 4px solid #f3f3f3; /* Light grey */
    border-top: 4px solid #00539B; /* PCL Blue */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.post-trigger-card {
    background: #FFFFFF;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.post-trigger-input {
    background-color: #f0f2f5;
    border-radius: 20px;
    padding: 10px 15px;
    color: #65676b;
    cursor: pointer;
    transition: background-color 0.2s;
}

.post-trigger-input:hover {
    background-color: #e4e6e9;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-overlay.is-visible {
    display: flex; /* Shown with JavaScript */
}

.modal-content {
    background: #FFFFFF;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 500px;
    position: relative;
}

.modal-content h3 {
    text-align: center;
    margin-top: 0;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    background: #f0f2f5;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1.5rem;
    color: #65676b;
    cursor: pointer;
    line-height: 1;
}

.custom-file-buttons {
    display: flex;
    gap: 1rem;
    border: 1px solid #ddd;
    padding: 0.8rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.custom-file-button {
    font-weight: bold;
    color: #444;
    cursor: pointer;
}

/* --- Image Lightbox Styles --- */
.modal-overlay.lightbox {
    background-color: rgba(0, 0, 0, 0.85); /* Darker overlay for images */
}

#lightbox-image {
    display: block;
    /* Image will be as large as possible while fitting within the viewport */
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

/* Make the close button white to stand out on the dark background */
.modal-overlay.lightbox .close-button {
    color: #fff;
    background: transparent;
    font-size: 3rem;
    font-weight: lighter;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.invite-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
}

.invite-card {
    background: #FFFFFF;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.invite-card h3 {
    margin-top: 0;
    text-align: center;
}

.settings-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.settings-form-panel, .settings-preview-panel {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.preview-logo-img {
    height: 40px;
    width: auto;
}

/* static/css/main.css */
.ticket-request-form {
    display: flex;
    gap: 0.5rem;
}
.ticket-quantity-input {
    width: 60px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
}

/* --- Company Settings Page Styles --- */
.settings-container {
    max-width: 800px; /* Set a max-width for the content area */
    margin: 2rem auto;
    padding: 0 2rem;
}

.settings-panel {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 2rem; /* Space between the form and preview panels */
}

.settings-panel h3 {
    text-align: center;
    margin-top: 0;
}

/* This is the new grey container for the preview */
.preview-container {
    background-color: #f8f9fa; /* Slightly darker grey */
    border-radius: 8px;
    padding: 1.5rem;
}

.preview-navbar {
    display: flex; /* This aligns items on the same line */
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 1rem;
}

.preview-logo {
    font-weight: bold;
    font-size: 1.5rem;
}

.preview-logo-img {
    height: 30px; /* Adjust size as needed */
    width: auto;
}

.preview-link {
    font-weight: 500;
}

.preview-card {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem;
    text-align: center;
}

.preview-image {
    height: 80px;
    background-color: #e9ecef;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.preview-title {
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.preview-button {
    width: 100%;
    padding: 0.6rem;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: bold;
}

.pending-request-badge {
    background-color: #dc3545; /* Red */
    color: #fff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.8em;
    font-weight: bold;
    margin-left: 8px;
    display: inline-block;
    line-height: 1;
}

.seating-info-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.seating-info-content h1, .seating-info-content h2, .seating-info-content h3 {
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    margin-top: 1.5rem;
}
.seating-info-content p {
    line-height: 1.6;
    color: #555;
}
.seating-info-content .gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.seating-info-content .gallery a {
    flex: 1 1 200px; /* Grow and shrink, with a base width */
    max-width: 250px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.seating-info-content img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 0; /* Remove radius from img if container has it */
}
.seating-info-content blockquote {
    border-left: 4px solid #ccc;
    padding-left: 1rem;
    margin-left: 0;
    font-style: italic;
    color: #666;
}


/* On mobile, stack the cards */
@media screen and (max-width: 960px) {
    .invite-container {
        grid-template-columns: 1fr;
    }
}


@media screen and (max-width: 960px) {
    /* --- Navbar Mobile Styles --- */
    .nav-menu {
        display: flex;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        max-width: 350px;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        transition: transform 0.3s ease-in-out;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        transform: translateX(-100%);
        z-index: 998;
    }

    .nav-menu.is-open {
        transform: translateX(0);
    }

    .nav-item {
        height: auto;
    }

    .nav-link {
        text-align: center;
        color: #212121;
        display: flex;
        padding: 1rem;
        width: 100%;
        -webkit-tap-highlight-color: transparent; /* ADDED: This removes the grey box on tap */
    }

    .nav-link:hover {
        background-color: #f8f9fa;
        color: #00539B;
        border-bottom: none;
    }

    .navbar-logo {
        position: relative;
        z-index: 1001;
    }

    /* --- Hamburger Menu Icon Styles --- */
    .nav-toggle {
        display: block; /* This makes the button visible on mobile */
        position: absolute;
        top: 40px;
        right: 35px;
        transform: translateY(-50%);
        cursor: pointer;
        z-index: 1000;
        background: transparent;
        border: none;
        width: 25px;
        height: 20px;
    }

    .nav-toggle span,
    .nav-toggle span::before,
    .nav-toggle span::after {
        display: block;
        background-color: #212121;
        position: absolute;
        height: 2px;
        width: 25px;
        transition: all 0.3s ease-in-out;
    }

    .nav-toggle span::before,
    .nav-toggle span::after {
        content: '';
    }

    .nav-toggle span::before {
        top: -8px;
    }
    
    .nav-toggle span::after {
        top: 8px;
    }

    .nav-toggle.is-open span {
        background-color: transparent;
    }
    .nav-toggle.is-open span::before {
        transform: rotate(45deg);
        top: 0;
    }
    .nav-toggle.is-open span::after {
        transform: rotate(-45deg);
        top: 0;
    }
    
    /* --- Pricing Table Mobile Styles --- */
    .responsive-pricing-table {
        flex-direction: column;
    }
}

/* --- Announcement Dropdown Styles --- */
.announcement-dropdown {
    position: absolute;
    top: 60px; /* Adjust based on navbar height */
    right: 0;
    width: 320px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: none;
    z-index: 1000;
    overflow: hidden;
    text-align: left;
}

.announcement-dropdown.show {
    display: block;
}

.announcement-header {
    background-color: #f8f9fa;
    padding: 10px 15px;
    font-weight: bold;
    border-bottom: 1px solid #eee;
    color: #333;
}

.announcement-item-link {
    display: block;
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
    text-decoration: none;
}

.announcement-item-link:hover {
    background-color: #f8f9fa;
}

.announcement-row {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-size: 0.95rem;
    color: #212121;
}

.badge-new {
    background-color: #28a745;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 8px;
    font-weight: bold;
}

.announcement-brief {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.announcement-footer {
    padding: 10px 15px;
    background-color: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.announcement-footer a {
    font-size: 0.9rem;
    color: #00539B;
    font-weight: bold;
}
.announcement-footer a:hover {
    text-decoration: underline;
}

/* Mobile fix for dropdown */
@media screen and (max-width: 960px) {
    .announcement-dropdown {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        border-radius: 0;
    }
}
