:root {
    /* Light Mode Colors */
    --primary-color: #0056b3; /* Darker blue for buttons/accents */
    --secondary-color: #007bff; /* Lighter blue for links/highlights */
    --background-color: #f4f7f6; /* Light background */
    --text-color: #333; /* Dark text */
    --header-bg: #ffffff; /* White header */
    --footer-bg: #333; /* Dark footer */
    --footer-text: #f4f7f6; /* Light footer text */
    --card-bg: #ffffff; /* White cards */
    --border-color: #ddd; /* Light border */
    --input-bg: #fff;
    --input-border: #ccc;
    --modal-bg: #fff;
    --modal-border: #eee;
}

.dark-mode {
    /* Dark Mode Colors */
    --primary-color: #4CAF50; /* Green for buttons/accents */
    --secondary-color: #66bb6a; /* Lighter green */
    --background-color: #2c2c2c; /* Dark background */
    --text-color: #ffffff; /* Light text */
    --header-bg: #000000; /* Darker header */
    --footer-bg: #1a1a1a; /* Darker footer */
    --footer-text: #f4f7f6; /* Light footer text */
    --card-bg: #3a3a3a; /* Darker cards */
    --border-color: #555; /* Dark border */
    --input-bg: #444;
    --input-border: #666;
    --modal-bg: #3a3a3a;
    --modal-border: #555;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: background-color 0.3s, color 0.3s;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header and Navigation
   FIX: Make header full-width background and use inner nav as centered container.
   - header is the full-width bar (background-color applies edge-to-edge)
   - nav is the centered max-width container that holds .logo and .nav-actions/.nav-links
*/
header {
    background-color: var(--header-bg);
    color: var(--text-color);
    /* Make header background span full width */
    width: 100%;
    margin: 0; /* remove auto centering on header itself */
    padding: 0; /* we'll control vertical padding inside nav for tighter control */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: center; /* center the inner nav container */
    align-items: center;
    box-sizing: border-box;
}

/* centered container inside header */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;          /* stretch to header width but constrained by max-width */
    max-width: 1200px;    /* control inner content width */
    margin: 0 auto;       /* center within header */
    padding: 0.75rem 20px; /* vertical spacing and horizontal padding */
}

/* Logo */
.logo img {
    height: 120px; /* reasonable doubled size (changed from 60px -> 120px) */
    width: auto;
    display: block;
}

/* Right side actions container (for Admin Login / Apply for Jobs / Book a Cleaning) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 20px;
}

/* Navigation links (optional main links) */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-links li {
    /* remove large left-margin and use gap for spacing */
    margin: 0;
}

/* Buttons/links styling shared */
.nav-links a, .nav-links button, .nav-actions a, .nav-actions button {
    color: var(--text-color);
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    white-space: nowrap; /* Prevent wrapping for buttons/links */
    border: none;
    background: none;
    cursor: pointer;
}

.nav-links a:hover, .nav-links button:hover, .nav-actions a:hover, .nav-actions button:hover {
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
}

/* Specific action/button styles */
.admin-login-btn, #admin-logout-btn {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 8px 14px;
}

#apply-jobs-btn, #book-cleaning-btn {
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 8px 14px;
}

/* Settings icon/button */
.settings-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.3s;
}

.settings-btn:hover {
    color: var(--primary-color);
}

/* Main Content Sections */
main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

section {
    padding: 60px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

section:last-of-type {
    border-bottom: none;
}

h1, h2, h3 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
}

/* Hero Section */
.hero {
    background: url('https://i.ibb.co/W4BRqkYy/unnamed.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--secondary-color);
    text-decoration: none;
}

/* About Us Section */
.about-us {
    text-align: center;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    text-align: left;
}

.about-history, .about-points {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.about-points .point {
    margin-bottom: 20px;
}

.about-points h4 {
    color: var(--secondary-color);
    margin-bottom: 5px;
}

/* Services Section */
.our-services {
    text-align: center;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.service-item img {
    max-width: 100%;
    height: 200px; /* Fixed height for images */
    object-fit: cover; /* Crop images to fit */
    border-radius: 5px;
    margin-bottom: 15px;
}

.service-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.service-item p {
    font-size: 0.95rem;
    margin-bottom: 15px;
}

/* Servicing Areas */
.servicing-areas ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.servicing-areas li {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Contact Us */
.contact-us {
    text-align: center;
}

.contact-us p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.contact-us form {
    max-width: 600px;
    margin: 30px auto;
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--input-border);
    border-radius: 5px;
    background-color: var(--input-bg);
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

#form-message, #login-message, #appointment-message, #application-message, #comment-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Public Appointments Section */
.public-appointments {
    text-align: center;
}

/* NEW: Responsive Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio (height / width * 100) */
    height: 0;
    overflow: hidden;
    max-width: 800px; /* Limit max width for larger screens */
    margin: 30px auto; /* Center the video and add some margin */
    border-radius: 8px; /* Match other elements */
    box-shadow: 0 4px 8px rgba(0,0,0,0.05); /* Match other elements */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none; /* Remove default iframe border */
}

/* NEW: Styles for public appointments table - Desktop / Tablet (default) */
#appointments-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden; /* Ensures rounded corners apply to children */
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    display: table !important; /* restore real table on larger screens */
}

#appointments-table th, #appointments-table td {
    border: 1px solid var(--border-color);
    padding: 12px;
    text-align: left;
    vertical-align: middle;
    display: table-cell !important;
}

/* Table header bar color changed to blue and text to white */
#appointments-table th {
    background-color: #007bff !important;
    color: #000000 !important;
    font-weight: bold;
}

/* --- CHANGED: Make rows of #appointments-table use explicit row color and black text only (does not affect other tables) --- */
#appointments-table,
#appointments-table tbody td {
    color: var(--text-color); /* ✅ adapts to light/dark */
}

/* Set explicit row background color for this table only */
#appointments-table tbody tr {
    background-color: #ffffff !important; /* rows will be white */
}

/* Override previous even-row background setting for this table only */
#appointments-table tbody tr:nth-child(even) {
    background-color: #ffffff !important; /* keep even rows same color */
}

/* Hover state for this table only */
#appointments-table tbody tr:hover {
    background-color: #ffffff !important;
}

/* END CHANGED SECTION */

#appointments-table tbody tr:nth-child(even) {
    background-color: var(--background-color);
}

#appointments-table tbody tr:hover {
    background-color: var(--border-color);
}

/* NEW: Star Rating System */
.star-rating {
    display: inline-block;
    font-size: 2.5rem; /* Larger stars */
    color: #ccc; /* Default star color */
    cursor: pointer;
    margin-bottom: 20px;
}

.star-rating .star {
    display: inline-block;
    transition: color 0.2s;
}

.star-rating .star:hover,
.star-rating .star.hovered {
    color: gold; /* Hover color */
}

.star-rating .star.selected {
    color: gold; /* Selected color */
}

/* NEW: Comment Section */
.comment-section {
    text-align: center;
}

.comment-form {
    max-width: 600px;
    margin: 30px auto;
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    text-align: left;
}

#comment-list {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.comment-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: left;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.comment-item h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.comment-item p {
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.comment-item .comment-meta {
    font-size: 0.85rem;
    color: #777;
    margin-top: 10px;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* Admin Section Specific Styles */
.admin-section {
    padding: 60px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.admin-section:last-of-type {
    border-bottom: none;
}

/* ADMIN: Force black text only for admin "View Appointments" section (affects headers/cells/rows only) */
#admin-dashboard #view-appointments-section table,
#admin-dashboard #view-appointments-section table th,
#admin-dashboard #view-appointments-section table td {
    color: #000 !important;
}

.dashboard-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Styles for Add Client, View Clients, Add Pics/Videos buttons */
#addClientNavBtn,
#viewClientsNavBtn,
#mediaNavBtn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

#addClientNavBtn:hover,
#viewClientsNavBtn:hover,
#mediaNavBtn:hover {
    background-color: var(--secondary-color);
    text-decoration: none;
}

.dashboard-content {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

/* Generic table styles (applies to other tables outside #appointments-table) */
table {
  border-collapse: collapse !important;
  width: 100% !important;
  display: table !important; /* ensure tables render as tables on larger screens */
}

table th, 
table td {
  border: 1px solid #ccc !important;
  padding: 8px 12px !important;
  text-align: left !important;
  vertical-align: middle !important;
  display: table-cell !important;
}

/* Change generic table header bar to blue and text to white */
table th {
  background-color: #0056b3 !important;
  color: #fff !important;
  font-weight: bold !important;
}

table tr:nth-child(even) {
  background-color: #fafafa !important;
}

/* Specific buttons and controls */
.delete-btn {
    background-color: #dc3545;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.delete-btn:hover {
    background-color: #c82333;
}

/* Client list styling (Moved from admin.html <style> block) */
#clientList {
    list-style: none;
    padding: 0;
}
#clientList li {
    background-color: var(--card-bg); /* Use card-bg for consistency */
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
    padding: 15px; /* Slightly more padding */
    border-radius: 8px; /* Match other cards */
    display: flex;
    flex-wrap: wrap; /* Allow details to wrap on smaller screens */
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Add subtle shadow */
}

.client-details {
    flex-grow: 1; /* Allow details to take up available space */
    display: grid; /* Use grid for internal column layout */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Two columns, responsive */
    gap: 10px 20px; /* Gap between rows and columns */
    margin-right: 20px; /* Space between details and button */
}

.client-details p {
    margin: 0; /* Remove default paragraph margin */
    font-size: 0.95em;
}

.client-details p strong {
    color: var(--primary-color); /* Highlight labels */
}

#clientList li button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 15px; /* Slightly larger button */
    border-radius: 5px; /* Match other buttons */
    cursor: pointer;
    font-size: 0.9em;
    flex-shrink: 0; /* Prevent button from shrinking */
}
#clientList li button:hover {
    background-color: #c82333;
}

/* Dark mode adjustments for client list */
body.dark-mode #clientList li {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}
body.dark-mode #clientList li button {
    background-color: #a00;
}
body.dark-mode #clientList li button:hover {
    background-color: #c00;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sit on top */
    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.6); /* Black w/ opacity */
    padding-top: 60px;
}

.modal-content {
    background-color: var(--modal-bg);
    margin: 5% auto; /* 15% from the top and centered */
    padding: 30px;
    border: 1px solid var(--modal-border);
    border-radius: 10px;
    width: 80%; /* Could be more responsive */
    max-width: 600px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    color: var(--text-color);
}

.close-button {
    color: var(--text-color);
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item label {
    font-size: 1.1rem;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* General adjustments for smaller screens */
    main {
        margin: 10px auto; /* Slightly less margin on mobile */
        padding: 0 15px; /* Slightly less padding on mobile */
    }
    section {
        padding: 40px 0; /* Slightly less vertical padding on mobile */
        margin-bottom: 15px;
    }

    /* Header and Navigation */
    nav {
        flex-direction: column;
        align-items: stretch; /* make nav children full-width stacking */
        gap: 10px;
        padding: 0.5rem 16px;
    }

    .logo img {
        height: 80px; /* Reduced logo size for mobile */
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        margin-top: 0;
        align-items: center;
        gap: 10px;
    }

    .nav-actions {
        width: 100%;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .nav-links li {
        margin: 0;
    }

    /* Hero Section */
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    /* About Us Section */
    .about-content {
        flex-direction: column;
    }

    /* Services Section */
    .service-grid {
        grid-template-columns: 1fr;
    }

    /* Star Rating */
    .star-rating {
        font-size: 2rem; /* Slightly smaller stars for mobile */
    }

    /* Comment List */
    #comment-list {
        grid-template-columns: 1fr; /* Stack comments vertically on small screens */
        gap: 15px; /* Slightly smaller gap */
    }

    /* Admin Dashboard Navigation */
    .dashboard-nav {
        flex-direction: column;
    }

    /* Responsive adjustments for client list */
    #clientList li {
        flex-direction: column; /* Stack details and button vertically */
        align-items: flex-start;
    }
    .client-details {
        width: 100%; /* Take full width */
        margin-right: 0;
        margin-bottom: 15px; /* Space between details and button */
        grid-template-columns: 1fr; /* Stack details vertically */
    }
    #clientList li button {
        width: 100%; /* Full width button */
    }

    /* Table responsiveness for smaller screens - applied only inside this media query */
    table, thead, tbody, th, td, tr {
        display: block; /* stack on mobile only */
    }

    table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    table tr {
        border: 1px solid var(--border-color);
        margin-bottom: 15px;
        border-radius: 8px;
        background-color: var(--card-bg);
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        padding: 10px;
    }

    table td {
        border: none;
        border-bottom: 1px solid var(--border-color);
        position: relative;
        padding-left: 50%;
        text-align: right;
        display: block; /* allow stacked view on mobile */
    }

    table td:last-child {
        border-bottom: none;
    }

    table td:before {
        position: absolute;
        top: 12px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: var(--primary-color);
    }

    /* Data labels for appointment table - FIXED to match thead: Date, Time, Service, Client */
    table#appointments-table td:nth-of-type(1):before { content: "Date:"; }
    table#appointments-table td:nth-of-type(2):before { content: "Time:"; }
    table#appointments-table td:nth-of-type(3):before { content: "Service:"; }
    table#appointments-table td:nth-of-type(4):before { content: "Client:"; }

    /* Data labels for admin appointment table */
    table#admin-appointments-table td:nth-of-type(1):before { content: "Client Name:"; }
    table#admin-appointments-table td:nth-of-type(2):before { content: "Contact:"; }
    table#admin-appointments-table td:nth-of-type(3):before { content: "Service:"; }
    table#admin-appointments-table td:nth-of-type(4):before { content: "Date:"; }
    table#admin-appointments-table td:nth-of-type(5):before { content: "Time:"; }
    table#admin-appointments-table td:nth-of-type(6):before { content: "Notes:"; }
    table#admin-appointments-table td:nth-of-type(7):before { content: "Actions:"; }

    /* Data labels for complaints table */
    table#complaints-table td:nth-of-type(1):before { content: "Type:"; }
    table#complaints-table td:nth-of-type(2):before { content: "Sender Name:"; }
    table#complaints-table td:nth-of-type(3):before { content: "Email:"; }
    table#complaints-table td:nth-of-type(4):before { content: "Phone:"; }
    table#complaints-table td:nth-of-type(5):before { content: "Message:"; }
    table#complaints-table td:nth-of-type(6):before { content: "Date:"; }

    /* Data labels for job applications table */
    table#applications-table td:nth-of-type(1):before { content: "Name:"; }
    table#applications-table td:nth-of-type(2):before { content: "Experience:"; }
    table#applications-table td:nth-of-type(3):before { content: "Address:"; }
    table#applications-table td:nth-of-type(4):before { content: "Phone:"; }
    table#applications-table td:nth-of-type(5):before { content: "Email:"; }
    table#applications-table td:nth-of-type(6):before { content: "Motivation:"; }
    table#applications-table td:nth-of-type(7):before { content: "Date:"; }
    table#applications-table td:nth-of-type(8):before { content: "Actions:"; }
}

/* --- Print Styles for Admin Appointments --- */
@media print {
    /* Hide elements that should not be printed */
    body > *:not(#admin-dashboard), /* Hide everything outside admin-dashboard */
    #admin-dashboard > *:not(#view-appointments-section), /* Hide other dashboard sections */
    .dashboard-nav, /* Hide dashboard navigation buttons */
    .btn, /* Hide all general buttons */
    .delete-btn, /* Hide delete buttons in the table */
    #admin-logout-btn, /* Hide logout button */
    #settings-btn, /* Hide settings button */
    header, /* Hide the main header */
    footer, /* Hide the main footer */
    #print-appointments-btn /* Hide the print button itself when printing */
    {
        display: none !important;
    }

    /* Ensure the admin dashboard and appointments section are visible and take full width */
    #admin-dashboard,
    #view-appointments-section {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        position: static !important; /* Override any fixed/absolute positioning */
    }

    /* Basic table styling for print */
    #appointments-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 20px;
    }

    #appointments-table th,
    #appointments-table td {
        border: 1px solid #ccc;
        padding: 8px;
        text-align: left;
        font-size: 10pt; /* Adjust font size for print */
    }

    /* Keep header bar blue and text white on print */
    #appointments-table th {
        background-color: #0056b3;
        color: #fff;
    }

    /* Ensure text is black for readability on print (except header which we've set to white on blue) */
    body, #appointments-table {
        color: #000 !important;
        background-color: #fff !important;
    }
}
