:root {
    --regal-gold: #d1b750;
    --regal-green: #50C878;
    --regal-red: #B22234;
    --regal-cream: #FFF8E1;
    --white: #FFFFFF;
    --error-red: #B22234;
    --success-green: #50C878;
    --warning-orange: #F9AF55;
    --black: #000000;
    /* New color variables */
    --regal-navy: #1a237e;
    --regal-burgundy: #800020;
    --regal-charcoal: #333333;
    --regal-dark-green: #1b5e20;
    --text-dark: #333333;
}
 /* General Styles */
 body {
    font-family: 'Inter', sans-serif;
    margin: 5px;
    background: white;
    color: black;
}
/* 🔥 Fix Logo Size */
.login-banner img {
    height: 160px;  /* Adjust this value as needed */
    width: auto;   /* Maintain aspect ratio */
    max-width: 400px; /* Prevent it from being too wide */
    display: block;
    margin: 0 auto; /* Center the logo */
}

/*  Fix Login Banner */
.login-banner {
    text-align: center;
    background-color: white;
    padding: 25px 0;
    color: var(--regal-navy);
    border-bottom: 3px solid var(--regal-navy);
    padding-bottom: 15px;
}

/* 🔥 Center Text Below Logo */
.login-banner h1 {
    font-size: 2.2rem;
    margin-top: 15px;
    margin-bottom: 5px;
    color: var(--regal-navy);
    font-weight: 600;
}

/* 🔥 Login Form Styling */
.login-container {
    max-width: 400px;
    background: var(--white);
    margin: 40px auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 2px solid var(--regal-navy);
    margin-top: 30px;
}

/* 🔥 Fix Input Fields */
.login-container input {
    padding: 12px 15px;
    margin: 12px 0;
    border: 1px solid var(--regal-charcoal);
    border-radius: 5px;
    background: #f5f5f5;
    color: var(--text-dark);
    font-size: 1.1rem;
    width: 85%;
}

/* 🔥 Fix Login Button */
.login-btn {
    width: 85%;
    padding: 12px;
    background-color: var(--regal-navy);
    color: var(--white);
    font-weight: bold;
    border: 2px solid var(--regal-navy);
    cursor: pointer;
    border-radius: 5px;
    margin-top: 15px;
    transition: 0.3s;
    font-size: 1.1rem;
}

.login-btn:hover {
    background-color: var(--regal-gold);
    color: var(--regal-navy);
    border-color: var(--regal-gold);
}

/* 🔥 Responsive Adjustments */
@media (max-width: 600px) {
    .login-container {
        width: 90%;
        padding: 20px;
    }

    .login-banner img {
        height: 120px;  /* Smaller logo for mobile */
    }

    .login-banner h1 {
        font-size: 1.8rem;
    }
    
    .login-container input,
    .login-btn {
        width: 90%;
    }
}

.header-centered {
    text-align: center;
    color: var(--regal-navy);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

/*  Filters Section */
.filter-section {
    display: flex;
    flex-wrap: nowrap;  /* Prevent wrapping */
    justify-content: space-between; /* Space out elements */
    align-items: center;
    gap: 10px;  /* Reduce space between elements */
    padding: 10px;
    border: 3px solid var(--regal-navy);
    border-radius: 10px;
    background-color: #fff;
    margin: 10px auto;
    width: 90%;
    overflow: hidden; /* Prevents unexpected wrapping */
}

/*  Fixes inconsistent dropdown widths */
.filter-section select {
    flex: 1; /* Ensures all dropdowns are equal width */
    min-width: 220px;
    max-width: 250px;
    padding: 8px;
    border: 2px solid var(--regal-charcoal);
    border-radius: 5px;
    font-size: 1rem;
    background-color: white;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    color: var(--text-dark);
}
/*  Prevents disabled dropdowns from affecting width */
.filter-section select:disabled {
    opacity: 0.6;
}
.filter-section input,
.filter-section button {
    padding: 8px;
    border: 1px solid var(--black);
    border-radius: 5px;
    font-size: 1rem;
    flex: 1 1 calc(20% - 10px);
    color: var(--regal-gold);
}
/*  Ensure label and select stay aligned */
.filter-section label {
    white-space: nowrap;
    font-weight: bold;
    color: var(--regal-navy);
    font-size: 1.1rem;
    text-align: center;
}

.filter-section button:hover {
    background: var(--regal-gold);
    color: var(--black);
}

/* Tabs */
.tabs {
    display: flex;
    background-color: var(--regal-cream);
    border-radius: 8px 8px 0 0;
    margin: 5px;
    border: 2px solid var(--regal-navy);
}

.tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    color: var(--regal-navy);
    font-weight: bold;
    opacity: 0.8;
    transition: all 0.3s ease;
    border: 1px solid var(--regal-navy);
    background-color: var(--white);
}

.tab.active {
    background-color: var(--regal-gold);
    color: var(--regal-navy);
    font-weight: bold;
    font-size: 18px;
    border-bottom: 2px solid var(--regal-navy);
    opacity: 1;
}

.tab:hover {
    opacity: 1;
    background-color: var(--regal-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.tab-content {
    display: none;
    padding: 2px;
    border: 2px solid var(--regal-navy);
    background-color: var(--white);
    border-radius: 0 0 8px 8px;
    margin: 0 5px 5px 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.tab-content.active {
    display: block;
}

.leaderboard-summary {
    display: flex;
    flex-wrap: wrap; 
    gap: 10px; /* Space between boxes */
    justify-content: space-evenly; /* Ensures even spacing */
    align-items: stretch; /* Keep consistent height */
    background: var(--regal-cream);
    color: var(--regal-navy);
    padding: 5px;
    border-radius: 8px;
    margin: 5px;
    border: 2px solid var(--regal-navy);
}    
.summary-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--regal-navy);
}

.summary-values {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 20px;
    font-weight: bold;
    color: var(--regal-navy);
}

.summary-values span {
    font-size: 12px;
}
/*  Set Each Box to 25% Width (4 per row) */
.summary-box {
    flex: 1 1 calc(25% - 15px); /* 4 per row */
    max-width: calc(25% - 15px);
    box-sizing: border-box;
    padding: 5px;
    text-align: left;
    border: 2px solid var(--regal-navy);
    border-radius: 10px;
    background-color: #ffffff;
}
.summary-box:hover {
    transform: translateY(-5px); /* Slight lift effect */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}
.summary-box .info-section h5 {
    text-align: left;
    color: var(--regal-navy);
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 5px;
}
/* Hotel Name */
.hotel-name {
    color: var(--regal-navy);
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}
/* Section titles inside boxes */
.summary-box h4 {
    text-align: center;
    color: var(--regal-navy);
    font-size: 1.5rem;
    font-weight: bold;
    margin: 5px;
    padding:5px;
}
.summary-box h5 {
    margin: 10px 0 5px 0;
    color: var(--regal-navy);
    font-size: 1.3rem;
    font-weight: bold;
    text-align:center;
    border-top:1px solid var(--regal-charcoal);
}
.summary-box .percentage {
    text-align: center;
    font-size: 1.6rem; /* Larger font size for percentage */
    font-weight: bold;
    margin: 5px;
    color: var(--regal-navy);
}
.punctuality-section {
margin: 5px 0;
font-size: 1.5rem;
font-weight: bold;
color: var(--regal-navy);
}
/* Section Headers */
.section-header {
    color: var(--regal-navy);
    font-weight: bold;
    margin: 10px 0;
    font-size: 1.2rem;
    text-align: center; /* Center headers only */
}
.totals-box {
    flex: 1 1 calc(25% - 10px); /* Ensure totals box aligns with others */
}

/* 🔹 Department Name Styling */
.department-name {
    font-weight: bold;
    color: var(--regal-navy);
}

.info-section {
margin: 2px;
text-align: left;
padding: 2px;
border-top: 1px solid var(--black);
}

/*  Adjust for Different Screen Sizes */
@media (max-width: 1200px) {
    .summary-box { flex: 1 1 calc(33.33% - 15px); max-width: calc(33.33% - 15px); } /* 3 per row */
}
@media (max-width: 992px) {
    .summary-box { flex: 1 1 calc(50% - 15px); max-width: calc(50% - 15px); } /* 2 per row */
}
@media (max-width: 768px) {
    .summary-box { flex: 1 1 100%; max-width: 100%; } /* 1 per row */

    /* Stack tabs vertically on mobile */
    .tabs {
        display: block; /* Stack tabs */
        border-radius: 8px; /* Adjust radius for stacked view */
    }
    .tab {
        border-bottom: 1px solid var(--black); /* Add separator between stacked tabs */
        border-radius: 0; /* Remove individual tab radius */
        padding: 10px; /* Increase padding for touch targets */
    }
    .tab:first-child {
        border-radius: 8px 8px 0 0; /* Round top corners of first tab */
    }
    .tab:last-child {
        border-bottom: none; /* Remove border from last tab */
        border-radius: 0 0 8px 8px; /* Round bottom corners of last tab */
    }
    .tab.active {
         border: 2px solid var(--black); /* Highlight active tab more clearly */
         border-bottom: 2px solid var(--black); /* Ensure bottom border consistency */
    }

    /* Adjust filter section for mobile */
    .filter-section {
        flex-direction: column;
        align-items: stretch; /* Make dropdowns full width */
        gap: 0.5rem;
        width: auto; /* Let width be determined by container/margin */
        margin: 0.5rem; /* Keep margin for spacing */
    }
    .filter-section select {
        min-width: unset; /* Remove min-width */
        max-width: 100%; /* Allow full width */
    }

    /* Adjust navbar for mobile */
    .navbar {
        flex-direction: column;
        padding: 10px;
    }
    .logo-container h3 {
        font-size: 1.5rem; /* Reduce title size */
    }
    .logout-container {
        margin-top: 10px;
    }

     /* Adjust summary list spacing */
    .attendance-summary-box .summary-list {
        margin-top: 10px;
    }

    /* Adjust table scroll container */
     .scroll-container th,
     .scroll-container td {
        font-size: 0.9em; /* Slightly smaller font in tables */
     }
}

/* Labels and values styling */
.info-label {
    display: inline-block;
    width: 40%; /* Fixed width for consistent alignment */
    font-weight: bold;
    color: var(--regal-navy);
}
.info-value {
    color: var(--regal-navy);
    font-weight: bold;
    display: inline-block;
    width: 50%; /* Adjust value width */
}
.info-value.punctuality-high {
    color: #61CE70; /* Green */
}

.info-value.punctuality-medium {
    color: #F9AF55; /* Yellow */
}

.info-value.punctuality-low {
    color: #F44336; /* Red */
}

/* Punctuality Percentage */
.punctuality-percentage {
    font-size: 2rem; /* Larger font size for percentage */
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    color: var(--regal-navy);
}
.percentage {
font-size: 1.4rem; /* Bigger size for percentage values */
font-weight: bold;
margin:0px;
color: var(--regal-navy);
}
.percentage.punctuality-low {
    color: #F44336;
}
.punctuality-high {
    color: var(--regal-green) !important;
}

.punctuality-medium {
    color: #F9AF55 !important;
}

.punctuality-low {
    color: #F44336 !important;
}

.punctuality-na {
    color: gray; /* Gray for N/A */
}

/* Leaderboard Table */
.table-container {
    overflow-x: auto;
    padding-top: 1px;
}

#leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 5px;
}

#leaderboard-table th {
    background-color: var(--regal-cream) !important;
    color: var(--regal-navy) !important;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    border: 1px solid var(--regal-charcoal);
}

#leaderboard-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid var(--regal-charcoal);
    color: var(--text-dark);
}

#leaderboard-table tbody tr:nth-child(odd) {
    background-color: #f8f8f8; /* Light gray/off-white */
    color: var(--regal-navy);
}

#leaderboard-table tbody tr:nth-child(even) {
    background-color: var(--white);
    color: var(--regal-navy);
}

/* Punctuality colors */
#leaderboard-table td.punctuality-high {
    color: var(--regal-green) !important;
    font-weight: bold;
}

#leaderboard-table td.punctuality-medium {
    color: var(--warning-orange) !important;
    font-weight: bold;
}

#leaderboard-table td.punctuality-low {
    color: var(--regal-red) !important;
    font-weight: bold;
}

/* Messages */
.loading-message,
.no-data-message,
.error-message {
    text-align:center;
    font-size: 1.2rem;
    padding: 20px;
    color: var(--regal-navy);
}

.loading-message {
    color: #F9AF55;
}

.no-data-message {
    color: #666;
}

.error-message {
    color: #F44336;
    font-weight: bold;
}
.approved-row {
    background-color: rgba(80, 200, 120, 0.1) !important; /* Light green with opacity */
    color: var(--regal-navy);
    font-weight: bold;
}

.approve-btn {
    background-color: var(--regal-navy);
    color: var(--white);
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.approve-btn:hover {
    background-color: var(--regal-gold);
    color: var(--regal-navy);
}

.approve-btn:disabled {
    background-color: #888;
    cursor: not-allowed;
}

.low-score-warning {
    color: var(--error-red);
    font-weight: bold;
    margin-top: 5px;
}

/* 🔹 Report Month Breakdown Styling */
.month-summary {
    margin-top: 10px;
    padding-top: 5px;
    border-top: 1px solid var(--regal-charcoal);
}

.month-row {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: bold;
    color: var(--regal-navy);
}

.month-name {
    flex: 1;
    text-align: left;
}

/* 🔹 Pending Message */
.pending-message {
    font-size: 1.2vw; /*  Adjusts based on screen size */
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--regal-navy);
}
/* Pending Approval Count */
#pending-approval-count {
    color: #FF3D00; /* Red */
}

/* Pending Breakdown Lists */
#pending-summary-details {
    background: rgba(255, 248, 225, 0.5);
    padding: 10px;
    border-radius: 8px;
    text-align: left;
    margin-top: 10px;
    color: var(--regal-navy);
}

#pending-summary-details p {
    font-size: 16px;
    font-weight: bold;
    color: var(--regal-navy);
}

#pending-summary-details ul {
    list-style-type: none;
    padding: 0;
    margin: 0 0 10px;
}

#pending-summary-details li {
    font-size: 14px;
    padding: 5px;
    color: var(--regal-navy);
    border-bottom: 1px solid var(--regal-charcoal);
}
/* Space out hotel summary boxes */
.hotel-summary-container {
    display: flex;
    flex:1;
    justify-content: space-between; /*  More spacing */
    gap: 10px; /*  Adds space between boxes */
    margin-top: 10px;
    width: 100%;
}

/* Improve styling for individual hotel summary boxes */
.hotel-summary-box {
    display: flex;
    flex-direction: column; /* Stack elements */
    align-items: justify; /* Left align */
    justify-content: space-around;
    text-align: left; /* Ensure all text is left aligned */
    padding: 10px;
    background:white;
    border-radius: 8px;
    border: 2px solid var(--regal-navy);
}

/* Hotel Title Styling */
.hotel-summary-box h3 {
    font-size: 20px;
    margin: 4px;
    color: var(--regal-navy);
    font-weight: bold;
    text-align: center; /*  Keep hotel name centered */
}

/* Pending Approvals Count */
.hotel-summary-box p {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px; /* Ensure even spacing */
    text-align: left; 
    color: var(--regal-navy);
}

.hotel-summary-box ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.hotel-summary-box ul li {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    color: var(--regal-navy);
}
.hotel-summary-box ul li span {
    color: red;
    font-weight: bold;
}
/* Hotel-specific summary boxes */
.attendance-hotel-summary {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: flex-start;
  align-items: stretch;
}
.info-icon {
    cursor: pointer;
    margin-left: 5px;
    color: var(--regal-navy);
}

.info-icon:hover {
    color: var(--black);
}

/*  Pending Breakdown - Grouped Layout */
.breakdown-container {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    margin-top: 15px;
    align-items:justify;
}

.breakdown-section h4 {
    font-size: 16px;
    font-weight: bold;
    text-decoration: underline;
    color: var(--regal-navy);
}

.breakdown-section ul li {
    font-size: 14px;
    padding: 2px 0;
    color: var(--regal-navy);
}
/* Breakdown section styling within a summary box */
.breakdown-section {
    display:flex;
    flex-direction:column;
  margin-top: 10px;
}
.breakdown-section p {
    font-size: 1.1rem;
    font-weight: bold;
    text-align: left;
    margin: 5px 0;
    color: var(--regal-navy);
}
.breakdown-section ul {
    list-style: none;
    padding-left: 0;
    margin: 5px 0;
}
/*  Responsive */
@media screen and (max-width: 768px) {
    .breakdown-container {
        flex-direction: column;
    }

    .hotel-box {
        width: 100%;
    }
}
.standard-summary-box {
    background: white;
    padding: 10px;
    border-radius: 10px;
    min-width: 250px;
    max-width: 300px;
    margin-bottom: 10px;
    border: 2px solid var(--regal-navy);
}
/* Summary List Formatting */
.summary-list {
    margin-top: 5px;
}

/* Summary Items - Department & Report Month */
.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    color: var(--regal-navy);
}

/* Title for Pending Approvals */
.pending-title {
    text-align: center;
    color: var(--regal-navy);
}
/*  Approved */
#approved-count {
    color: #008000; /* Green for approved */
}
.table-wrapper {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}

/* Container for the table with horizontal scrolling only on smaller screens */
.scroll-container {
    width: 100%;
    max-width: 100vw;
    overflow-x: auto;
    white-space: wrap;
}
.scroll-container table {
    width: 100%;
    min-width: 1200px; /* Ensures table does not shrink too much */
    table-layout: fixed; /* Ensures consistent column width */
}
/* Force columns to fit within the screen */
.scroll-container th,
.scroll-container td {
    padding: 8px;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-dark);
    border: 1px solid var(--regal-charcoal);
}

/* Ensure scrollbars appear when needed */
.scrollbar-top {
    width: 100%;
    overflow-x: auto;
    height: 12px;
    display: block;
    background-color: #f9f9f9;
}
#scrollbar-top::-webkit-scrollbar {
    display: block;
}
/* Ensure scrollbars appear when needed */
.scrollbar-bottom {
    width: 100%;
    overflow-x: auto;
    height: 12px;
    display: block;
    background-color: #f9f9f9;
}
/* Responsive fix for smaller screens */
@media (max-width: 1024px) {
    .scroll-container {
        overflow-x: auto;
    }
    .scrollbar-top {
        display: block; /* Show top scrollbar */
    }
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--regal-cream);
    padding: 15px 20px;
    color: var(--regal-navy);
    border-bottom: 3px solid var(--regal-navy);
}
/*  Left Side - Logo/Title */
.navbar h3 {
    margin: 0;
    font-size: 40px;
    color: var(--regal-navy);
}
.logo-container {
    display: flex;
    align-items: center;
}

.logo-container h3 {
    margin-left: 12px;
    font-size: 1.8rem;
    color: var(--regal-navy);
}
.logo-container img {
    height: 60px;  /* Adjust this value as needed */
    width: auto;   /* Maintain aspect ratio */
    max-width: 180px; /* Prevent it from being too wide */
    display: block;
}
/*  Adjust Logout Button */
.logout-container {
    display: flex;
    align-items: center;
}
.logout-btn {
    background-color: var(--regal-gold);
    color: var(--regal-navy);
    font-weight: bold;
    border: 2px solid var(--regal-navy);
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

.logout-btn:hover {
    background-color: #e0ac2b;
}
/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 10px;
    }
    
    .logout-container {
        margin-top: 10px;
    }
}

/* 🔹 Ensure Responsive Layout */
@media (max-width: 1200px) {
    .grooming-summary-box, .hotel-summary-box { flex: 1 1 calc(33.33% - 15px); max-width: calc(33.33% - 15px); } /* 3 per row */
}
@media (max-width: 992px) {
    .grooming-summary-box, .hotel-summary-box { flex: 1 1 calc(50% - 15px); max-width: calc(50% - 15px); } /* 2 per row */
}
@media (max-width: 768px) {
    .grooming-summary-box, .hotel-summary-box { flex: 1 1 100%; max-width: 100%; } /* 1 per row */
}
.below-full {
  background-color: #ffd5d5 !important; /* Light red highlight */
  color: var(--regal-navy);
}

/* If you also want a 'pending' style for employees who haven't submitted yet: */
.review-pending {
  background-color: #ffeeba; /* light yellow, for instance */
  color: var(--regal-navy);
}

/* Submit Button */
button {
    background: linear-gradient(135deg, var(--regal-gold), var(--regal-navy));
    color: var(--white);
    border: 2px solid var(--regal-navy);
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
}

/* Modal Styles - REMOVED CONFLICTING RULES */
/* Let Bootstrap handle modal positioning naturally */

#scoreModal .modal-content {
    position: relative;
}

#scoreModal h3 {
    color: var(--regal-navy);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

#scoreModal .form-group {
    margin-bottom: 15px;
}

#scoreModal label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-dark);
    font-weight: bold;
}

#scoreModal .form-input {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--regal-charcoal);
    border-radius: 4px;
    font-size: 1rem;
}

#scoreModal .modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

#scoreModal .modal-btn {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    border: none;
}

#scoreModal .modal-btn.confirm {
    background-color: var(--regal-navy);
    color: var(--white);
}

#scoreModal .modal-btn.cancel {
    background-color: var(--regal-charcoal);
    color: var(--white);
}

#scoreModal .modal-btn:hover {
    opacity: 0.9;
}

.inventory-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: var(--regal-cream, #f8f6f1);
    border: 2px dashed var(--regal-navy, #1a237e);
    border-radius: 8px;
    margin: 20px 0;
    color: var(--regal-navy, #1a237e);
}

/* Inventory Statistics Modal - REMOVED CONFLICTING RULES */
/* Let Bootstrap handle modal behavior naturally */

/* Stats Grid Layout */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.stats-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stats-card.full-width {
    grid-column: 1 / -1;
}

.stats-card h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* Trend Items */
.trend-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.trend-item:last-child {
    border-bottom: none;
}

.trend-item p {
    margin: 5px 0;
}

/* Stock Movement */
.stock-item {
    margin-bottom: 20px;
}

.stock-item h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.stock-trend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.trend-point {
    background: #f5f5f5;
    padding: 10px;
    border-radius: 4px;
    min-width: 150px;
}

.trend-point span {
    display: block;
    margin: 2px 0;
}

/* Button Styles */
.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Grooming Modal Styles - Fixed z-index and accessibility */
#groomingChecklistModal {
    z-index: 999999 !important;
    position: fixed !important;
}

#groomingChecklistModal .modal-dialog {
    z-index: 1000000 !important;
    position: relative !important;
}

#groomingChecklistModal .modal-content {
    z-index: 1000001 !important;
    background-color: #f9f9f9;
    margin: 2% auto;
    padding: 0;
    border: none;
    width: 90%;
    max-width: 1200px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

/* Ensure modal backdrop doesn't block interaction */
.modal-backdrop {
    z-index: 9998 !important;
}

/* Conference Booking Modal Styles - Fixed z-index and accessibility */
#addBookingForm {
    z-index: 1060 !important;
}

#addBookingForm .modal-dialog {
    z-index: 1061 !important;
}

#addBookingForm .modal-content {
    z-index: 1062 !important;
}

/* Conference Table Action Buttons */
.edit-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 8px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background-color 0.2s ease;
}

.edit-btn:hover {
    background-color: #0056b3;
}

.delete-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background-color 0.2s ease;
}

.delete-btn:hover {
    background-color: #c82333;
}

.edit-btn i, .delete-btn i {
    font-size: 0.9rem;
}

/* Review Modal Styles - Fixed z-index and accessibility */
#addReviewForm {
    z-index: 1060 !important;
}

#addReviewForm .modal-dialog {
    z-index: 1061 !important;
}

#addReviewForm .modal-content {
    z-index: 1062 !important;
}

/* Conference Booking Modal Form Alignment Fixes */
#addBookingForm .modal-content {
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(44, 44, 84, 0.18);
}

#addBookingForm .modal-header {
    border-bottom: 2px solid #d2b850;
    background: linear-gradient(135deg, #36013F 0%, #4a0152 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

#addBookingForm .modal-title {
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
}

#addBookingForm .modal-body {
    padding: 24px;
    background: #faf9f6;
}

#addBookingForm .modal-footer {
    border-top: 2px solid #d2b850;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
    padding: 16px 24px;
}

/* Form field alignment fixes */
#addBookingForm .form-label {
    color: #36013F;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 6px;
    display: block;
}

#addBookingForm .form-control,
#addBookingForm .form-select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1.5px solid rgba(210, 184, 80, 0.27);
    font-size: 0.95rem;
    background: #faf9f6;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-weight: 500;
    outline: none;
    box-sizing: border-box;
}

#addBookingForm .form-control:focus,
#addBookingForm .form-select:focus {
    border-color: #d2b850;
    box-shadow: 0 0 0 2px rgba(210, 184, 80, 0.2);
    background: #fffef7;
}

#addBookingForm textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

/* Row and column alignment fixes */
#addBookingForm .row {
    margin-left: -8px;
    margin-right: -8px;
    display: flex;
    flex-wrap: wrap;
}

#addBookingForm .col-md-6,
#addBookingForm .col-12 {
    padding-left: 8px;
    padding-right: 8px;
    margin-bottom: 16px;
}

#addBookingForm .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

#addBookingForm .col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Ensure consistent spacing */
#addBookingForm .mb-3 {
    margin-bottom: 16px !important;
}

/* Button styling */
#addBookingForm .btn-primary {
    background-color: #50C878;
    border-color: #50C878;
    color: white;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.2s;
}

#addBookingForm .btn-primary:hover {
    background-color: #45a049;
    border-color: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#addBookingForm .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.2s;
}

#addBookingForm .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
}

/* Responsive fixes for modal */
@media (max-width: 768px) {
    #addBookingForm .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    #addBookingForm .modal-body {
        padding: 16px;
    }
    
    #addBookingForm .modal-footer {
        padding: 12px 16px;
    }
    
    #addBookingForm .form-control,
    #addBookingForm .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Regal Inn Banner */
#groomingChecklistModal .banner {
    background-color: var(--regal-navy);
    color: #fff;
    text-align: center;
    padding: 15px;
    font-size: 2rem;
    font-weight: bold;
}

/* Grooming Checklist Header */
#groomingChecklistModal .grooming-header {
    display: inline-block;
    background-color: var(--regal-gold);
    color: var(--regal-navy);
    text-align: center;
    padding: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    width: 80%;
    margin-top: 0px;
    border-radius: 10px;
}

#groomingChecklistModal .grooming-header h2 {
    display: inline;
    margin-top: 0px;
}

/* Filters Section */
#groomingChecklistModal .filter-section {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 5px;
    border: 3px solid var(--regal-navy);
    border-radius: 10px;
    background-color: #fff;
    margin: 5px auto;
    width: 80%;
    overflow: hidden;
}

#groomingChecklistModal .filter-section select {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--regal-navy);
    border: 2px solid var(--regal-charcoal);
    border-radius: 8px;
    background: none;
    cursor: pointer;
    padding: 5px;
}

#groomingChecklistModal .filter-section select:focus {
    outline: none;
    text-decoration: underline;
}

#groomingChecklistModal .filter-section select:disabled {
    opacity: 0.6;
}

/* Grooming Checklist Table */
#groomingChecklistModal #modalGroomingChecklist {
    width: 80%;
    border-collapse: collapse;
    margin: 20px auto;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--regal-navy);
}

#groomingChecklistModal #modalGroomingChecklist th {
    background-color: var(--regal-navy);
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: bold;
}

#groomingChecklistModal #modalGroomingChecklist td {
    padding: 10px;
    border-bottom: 1px solid var(--regal-charcoal);
    color: var(--text-dark);
}

#groomingChecklistModal #modalGroomingChecklist tr:nth-child(even) {
    background-color: #f2f2f2;
}

#groomingChecklistModal #modalGroomingChecklist tr:hover {
    background-color: #e6e6e6;
}

/* Media Section */
#groomingChecklistModal #modalHousekeepingMedia {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin: 20px auto 10px auto;
    width: 80%;
}

#groomingChecklistModal .grooming-images {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: center;
    justify-content: center;
    margin: 0;
}

#groomingChecklistModal .grooming-preview {
    width: 120px;
    height: 150px;
    object-fit: cover;
    border: 2px solid var(--regal-navy);
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
    background: #fff;
}

#groomingChecklistModal .grooming-preview:hover {
    transform: scale(1.05);
}

#groomingChecklistModal .video-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 220px;
    min-width: 180px;
    max-width: 240px;
    margin: 0;
    background: #fff;
    border: 2px solid var(--regal-navy);
    border-radius: 5px;
    box-sizing: border-box;
}

#groomingChecklistModal #modalHousekeepingVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    border: none;
    background: #fff;
}

/* Form Actions */
#groomingChecklistModal .form-actions {
    display: flex;
    justify-content: space-between;
    margin: 20px auto;
    width: 80%;
}

#groomingChecklistModal .left, 
#groomingChecklistModal .center, 
#groomingChecklistModal .right {
    flex: 1;
    text-align: center;
}

#groomingChecklistModal .center {
    flex: 2;
}

#groomingChecklistModal .right {
    text-align: right;
}

/* Button Styles */
#groomingChecklistModal .approve-btn {
    background-color: var(--regal-navy);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

#groomingChecklistModal .approve-btn:hover {
    background-color: var(--regal-gold);
    color: var(--regal-navy);
}

#groomingChecklistModal .dashboard-btn {
    background-color: var(--regal-navy);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

#groomingChecklistModal .dashboard-btn:hover {
    background-color: var(--regal-gold);
    color: var(--regal-navy);
}

/* Close Button */
#groomingChecklistModal .close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

#groomingChecklistModal .close:hover {
    color: var(--regal-gold);
}

/* Header Styles */
#groomingChecklistModal .header-centered {
    text-align: center;
    margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    #groomingChecklistModal .grooming-modal-content {
        width: 95%;
        margin: 1% auto;
    }
    
    #groomingChecklistModal #modalGroomingChecklist {
        width: 95%;
    }
    
    #groomingChecklistModal .filter-section {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    #groomingChecklistModal .grooming-modal-content {
        width: 98%;
        margin: 0.5% auto;
    }
    
    #groomingChecklistModal #modalGroomingChecklist {
        width: 100%;
        font-size: 0.9rem;
    }
    
    #groomingChecklistModal .filter-section {
        flex-direction: column;
        align-items: center;
        width: 95%;
    }
    
    #groomingChecklistModal .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    #groomingChecklistModal .left, 
    #groomingChecklistModal .center, 
    #groomingChecklistModal .right {
        text-align: center;
    }
}