/* Global Styles */
body {
    font-family: Arial, sans-serif;
    margin: 20px;
   /* background-color: #f4f4f4; /* Use a neutral light background color */
	background-color: #D3D3D3;
}

/* Container Styles */
.container {
    max-width: 1600px; /* Adjust this to control the width of the content */
    margin: 0 auto; /* This centers the container horizontally */
    background-color: #ffffff;
    padding: 20px; /* Padding for spacing */
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Heading Styles */
h1 {
    text-align: center;
    color: #333;
    font-size: 24px;
    margin-bottom: 15px;
}

h2 {
    text-align: center;
    color: #333;
    font-size: 18px;
	margin-top: 20px;
    margin-bottom: 10px;
}

/* Adjust table alignment */
/* Adjust table alignment */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 5px;
}

th, td {
    padding: 10px 15px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #007bff;
    color: #ffffff;
    font-size: 14px;
}

td {
    font-size: 14px;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

/* Button Styling */
.button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #0056b3;
}

/* Danger Button Styling */
.button-danger {
    background-color: #dc3545; /* Red background for danger */
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button-danger:hover {
    background-color: #c82333; /* Darker red for hover effect */
}

/* Ensure buttons inside modals inherit the correct styles */
.modal-content button.button-danger {
    background-color: #dc3545 !important; /* Force red background */
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    transition: background-color 0.3s !important;
}

.modal-content button.button-danger:hover {
    background-color: #b02a37 !important; /* Darker red on hover */
}



/* Form Container Styling */
.form-container {
    max-width: 800px; /* Limits the container width */
    margin: 20px auto;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    box-sizing: border-box; /* Ensures padding is included in the width */
    overflow: hidden; /* Prevents content overflow */
}

/* General Form Layout */
form {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping for fields */
    gap: 15px; /* Adds space between fields */
}

/* Form Labels */
form label {
    flex-basis: 100%; /* Forces labels to span the full width */
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
}

/* Input Fields */
form input[type="text"],
form input[type="date"],
form input[type="time"],
form input[type="datetime-local"],
form input[type="file"],
form input[type="url"],
form select,
form textarea {
    flex: 1 1 calc(50% - 10px); /* Fields take 50% width by default */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box; /* Ensures padding doesn't overflow */
    margin-bottom: 10px;
    max-width: 100%; /* Prevents input fields from exceeding their container */
    font-family: Arial, sans-serif; /* keeps textarea consistent */
}
form textarea {
    min-height: 110px;   /* makes it taller */
    resize: vertical;    /* or 'none' if you want to lock it */
}


/* Adjust for Full-Width Fields */
form input[type="text"].full-width,
form input[type="date"].full-width,
form select.full-width {
    flex: 1 1 100%; /* Full width for fields with the 'full-width' class */
}

/* Button Styling */
form input[type="submit"] {
    flex: 1 1 100%; /* Submit button spans full width */
    padding: 10px 15px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
}

form input[type="submit"]:hover {
    background-color: #218838;
}

/* Dropdown Styling */
form select {
    appearance: none; /* Removes native dropdown styling */
    background: #fff url('data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns%3D%22http%3A//www.w3.org/2000/svg%22 viewBox%3D%220 0 4 5%22%3E%3Cpath fill%3D%22%23ccc%22 d%3D%22M2 0L0 2h4zM0 3h4l-2 2z%22/%3E%3C/svg%3E') no-repeat right 10px center;
    background-size: 10px 10px; /* Dropdown arrow size */
    padding-right: 30px; /* Space for dropdown arrow */
}

/* Attachment Upload Styling */
form input[type="file"] {
    border: none;
    background-color: #f9f9f9;
    cursor: pointer;
}

/* Placeholder Styling */
form input::placeholder {
    color: #aaa;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 600px) {
    .form-container {
        padding: 10px; /* Reduce padding for smaller screens */
    }

    form {
        flex-direction: column; /* Stacks elements vertically */
    }

    form input[type="text"],
    form input[type="date"],
    form input[type="file"],
    form select {
        flex: 1 1 100%; /* Fields span full width on small screens */
        max-width: 100%; /* Ensures they stay within container */
    }
}


/* Alert Messages */
.alert {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.alert.success {
    background-color: #28a745;
    color: white;
}

.alert.error {
    background-color: #dc3545;
    color: white;
}

/* Limit form width for the addEvent page */
.add-event-form {
    max-width: 700px;
    margin: 0 auto;
}



/* Event container styling */
.event-container {
    background-color: #ffffff; /* Same as the form's background */
    padding: 20px; /* Padding for spacing */
    margin: 20px 0; /* Margin for spacing around */
    border-radius: 8px; /* Rounded corners to match the form */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Light shadow for depth */
    max-width: 900px; /* Limit width */
    margin: 0 auto; /* Center the container */
}

/* Event title styling */
.event-container h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

/* Paragraph styling for event details */
.event-container p {
    font-size: 16px;
    color: #555;
    margin: 8px 0;
}

.event-container p strong {
    color: #000; /* Make the labels for Start Date, Time, etc. darker */
}

/* Optional: Add more spacing between the title and the content */
.event-container p:first-of-type {
    margin-top: 15px;
}

/* Container for the heading and table */



.table-container {
    max-width: 900px; /* Ensure both heading and table share the same width */
    margin: 0 auto; /* Center the container */
    padding: 20px;
}

.table-heading {
    font-size: 20px;
    font-weight: bold;
    text-align: left;
    margin-bottom: 10px; /* Ensure some space between the heading and the table */
}

.event-staff-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.event-staff-table th, .event-staff-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: center;
}

.event-staff-table th {
    background-color: #007bff;
    color: #fff;
}


/* General Page Layout */
.content-container {
    max-width: 1600px !important; /* Adjust to make the container wider */
    width: 90% !important; /* Keep it responsive with a percentage width */
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
overflow: hidden;
}




/* Event Container */
.event-container {
    background-color: #ffffff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.event-header {
    margin-bottom: 15px;
}

.event-title-link {
    font-size: 1.4em;
    font-weight: bold;
    text-decoration: none;
    color: #007bff;
}

.event-title-link:hover {
    text-decoration: underline;
}

/* Event Details */
.event-details, .event-description {
    font-size: 0.95em;
    color: #555;
}

.event-details p, .event-description p {
    margin: 0 0 10px 0;
}

.table-heading {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

/* Event Table */
.event-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.event-table th, .event-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
    font-size: 0.95em;
}

.event-table th {
    background-color: #007bff;
    color: #ffffff;
}

.event-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.event-table tr:hover {
    background-color: #f1f1f1;
}



.tables-container {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap */
    gap: 20px;
}

.tables-container > div {
    flex: 1 1 calc(33.33% - 20px); /* Sections take up 48% of the container width */
    min-width: 300px;
    max-width: 100%;
    box-sizing: border-box;
}


.tables-container table {
    width: 100%;
    max-width: 100%; /* Prevent overflow */
    table-layout: fixed; /* Ensure even column distribution */
    word-wrap: break-word; /* Handle long content gracefully */
}

@media (max-width: 768px) {
    .tables-container {
        flex-direction: column;
    }
    .tables-container > div {
        flex: 1 1 100%;
    }
}







/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top of everything */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
}

/* Modal Content */
.modal-content {
    background-color: #ffffff; /* White background */
    margin: 10% auto; /* Centered modal with some top margin */
    padding: 20px; /* Consistent padding */
    border-radius: 8px; /* Rounded corners */
    max-width: 400px; /* Adjust width if necessary */
    width: 90%; /* Ensure it shrinks on smaller screens */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Consistent with other box shadows */
}

/* Modal Close Button */
.modal .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal .close:hover,
.modal .close:focus {
    color: #333;
    text-decoration: none;
}

/* Buttons inside the modal */
.modal button,
.modal input[type="submit"] {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    width: 100%; /* Make the submit button take the full width */
    box-sizing: border-box;
    margin-top: 12px;
}

.modal button:hover,
.modal input[type="submit"]:hover {
    background-color: #0056b3;
}

/* Form input fields inside the modal */
.modal-form input[type="text"],
.modal-form textarea,
.modal-form input[type="file"] {
    width: calc(100% - 10px); /* Full width for these input fields */
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box; /* Ensure padding does not cause overflow */
}

/* Adjust the date field width */
.modal-form input[type="date"] {
    width: calc(100% - 10px); /* Date field has slightly reduced width */
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

/* Label styling */
.modal-form label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}









/* Style for the floating submenu */
.floating-submenu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0 auto;
    background-color: #f4f4f4;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: fit-content; /* Dynamically adjust the width based on content */
    margin-top: 30px;
}

/* Heading for submenu */
.floating-submenu h3 {
    margin-bottom: 15px;
    font-size: 20px;
    color: #333;
}

/* Container for the buttons */
.button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

/* Button styles */
.button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #0056b3;
}

/* Responsive design for smaller screens */
@media (max-width: 600px) {
    .button-container {
        flex-direction: column; /* Stack buttons vertically on small screens */
    }
}






/* Styles for the menu container */
.menu-container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 20px 0;
    max-width: 100%;
    overflow-x: auto;
}

/* Menu table styling */
.menu-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    margin-top: 10px;
    font-family: Arial, sans-serif;
	
}

.menu-table th, .menu-table td {
    padding: 12px;
    border: 0px solid #ddd;
    font-size: 14px;
    text-align: center;
}

.menu-table th {
    background-color: #007bff;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
}

.menu-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.menu-table tr:hover {
   background-color: #f1f1f1; 
}

/* Styling for menu links */
.menu a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    display: inline-block;
    font-family: Arial, sans-serif;
    transition: color 0.3s, background-color 0.3s;
    border-radius: 4px;
}

.menu a:hover {
    color: #ffffff;
    background-color: #0056b3;
}

 .pagination {
            margin-top: 20px;
            text-align: center;
        }
        .pagination a {
            margin: 0 5px;
            text-decoration: none;
            color: #007bff;
        }
        .pagination a:hover {
            text-decoration: underline;
        }
		
		
		
/* === Global Card Component === */
.card {
    background: #ffffff;
    padding: 20px;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    max-width: 900px;
}

/* Section headers */
.card h3, .card h2, .card h4 {
    margin-bottom: 15px;
    color: #333;
}

/* === Tables as Responsive Cards === */
.responsive-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.responsive-table th,
.responsive-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

/* Convert tables to stacked cards on mobile */
@media (max-width: 700px) {
    .responsive-table thead {
        display: none;
    }

    .responsive-table tr {
        display: block;
        background: #fff;
        margin-bottom: 15px;
        border-radius: 6px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        padding: 10px;
    }

    .responsive-table td {
        display: flex;
        justify-content: space-between;
        padding: 8px 10px;
        border: none;
        border-bottom: 1px solid #eee;
    }

    .responsive-table td:last-child {
        border-bottom: none;
    }

    .responsive-table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #333;
    }
}

/* === Event Notes Cards (integrated with card system) === */
.event-note-card {
    background: #ffffff;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-left: 5px solid #007bff;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.event-note-meta {
    font-size: 13px;
    color: #666;
}

/* === Mobile Typography === */
@media (max-width: 700px) {
    .card {
        padding: 15px;
        margin: 15px;
    }
    h2 { font-size: 20px; }
    h3 { font-size: 18px; }
}


/* Event details: image right of details */
.event-details-row{
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.event-details-left{
  flex: 1 1 auto;
  min-width: 0;
}

.event-details-right{
  flex: 0 0 280px;     /* width of the whitespace column */
  max-width: 35%;
}

.event-details-right img{
  width: 100%;
  height: auto;
  max-height: 180px;   /* keeps it in the “white space” area */
  object-fit: contain; /* don’t crop the image */

  display: block;
}

/* Stack on smaller screens */
@media (max-width: 900px){
  .event-details-row{
    flex-direction: column;
  }
  .event-details-right{
    flex: 0 0 auto;
    max-width: 100%;
  }
  .event-details-right img{
    max-height: 260px;
  }
}


.invoice-info-card {
    margin: 12px 0 16px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    padding: 10px;
}

.invoice-info-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.invoice-info-pre {
    margin: 0;
    white-space: pre-wrap;
    font-size: 12px;
    line-height: 1.35;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 10px;
    max-height: 220px;
    overflow: auto;
}
