

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    color: #1b1b18;
}

.container-main {
    display: flex;
    min-height: 100vh;
}

/* ============================================
   SIDEBAR LEFT - Navigation
   ============================================ */

.sidebar-left {
    width: 240px;
    background: linear-gradient(135deg, #F4F1EA 0%, #f0f9ff 50%, #F4F1EA 100%);
    border-right: 1px solid #e3e3e0;
    padding: 1.5rem;
    overflow-y: auto;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 99;
    box-shadow: 2px 0 15px rgba(59, 130, 246, 0.08);
    transition: transform 0.3s ease;
    transform: translateX(0);
}

/* Decorative Elements */
.sidebar-decoration {
    position: absolute;
    opacity: 0.7;
    pointer-events: none;
    overflow: hidden;
}

.decoration-top-left {
    top: 40px;
    left: 20px;
    width: 120px;
    height: 120px;
}

.decoration-bottom-right {
    bottom: 200px;
    right: 10px;
    width: 100px;
    height: 100px;
}

.decoration-koi {
    top: 50%;
    right: 20px;
    width: 90px;
    height: 90px;
    transform: translateY(-50%);
}

.decoration-bottom {
    bottom: 20px;
    left: 15px;
    width: 110px;
    height: 110px;
}

.decoration-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-section {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 10;
}

.logo-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1e7e74 0%, #2d9d8f 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 8px 20px rgba(30, 126, 116, 0.3);
    overflow: hidden;
}

.dugg-logo-img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.business-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e7e74;
    margin-bottom: 0.25rem;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 0.65rem;
    color: #706f6c;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.stars {
    color: #ffc107;
    letter-spacing: 0.1em;
}

.rating-count {
    color: #706f6c;
}

/* Navigation Menu */
.nav-menu {
    list-style: none;
    position: relative;
    z-index: 10;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 0.8rem;
    color: #1b1b18;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, #1e7e74, #2d9d8f);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(30, 126, 116, 0.08);
    color: #1e7e74;
}

.nav-link:hover::before {
    transform: scaleY(1);
}

.nav-link.active {
    background: linear-gradient(135deg, #1e7e74 0%, #2d9d8f 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(30, 126, 116, 0.3);
}

.nav-link.active::before {
    transform: scaleY(1);
    background: white;
}

.nav-icon {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */

.main-content {
    margin-left: 240px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.header-banner {
    height: 56px;
    background: #FDF8F5;
    position: relative;
    overflow: visible;
    display: flex;
    align-items: flex-start;
    padding-top: 1rem;
    padding-left: 1rem;
}

.sidebar-toggle-btn {
    display: none;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: black;
    width: 44px;
    height: 44px;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    z-index: 101;
    margin-right: 1rem;
}

.sidebar-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.header-banner::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.header-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.booking-policy {
    position: absolute;
    top: 1rem;
    right: 2rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 10;
    font-weight: 500;
}

/* ensure dropdown and button are above decorative pseudo-elements */
.header-banner .user-dropdown,
.header-banner .user-btn {
    position: relative;
    z-index: 200;
}

.booking-policy:hover {
    color: white;
    text-decoration: underline;
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 98;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
}

.content-wrapper {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ============================================
   RESPONSIVE - Mobile Menu
   ============================================ */

@media (max-width: 1024px) {
    .sidebar-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar-left {
        width: 280px;
        z-index: 99;
        transform: translateX(-100%);
    }
    
    .sidebar-left.active {
        transform: translateX(0);
    }
    
    .sidebar-left.hidden {
        transform: translateX(-100%);
    }
    
    .sidebar-overlay {
        display: none;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services-section {
    flex: 1;
    padding: 2rem;
    max-width: 700px;
    overflow-y: auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1b1b18;
    margin: 0;
}

/* Booking Now Button */
.btn-booking-now {
    padding: 0.625rem 1.5rem;
    background: linear-gradient(135deg, #9B8B7E, #7A6B5E);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(123, 107, 94, 0.3);
}

.btn-booking-now:hover {
    background: linear-gradient(135deg, #7A6B5E, #5F5247);
    box-shadow: 0 4px 12px rgba(123, 107, 94, 0.4);
    transform: translateY(-2px);
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e3e3e0;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    border-color: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.service-image {
    width: 80px;
    height: 80px;
    border-radius: 0.375rem;
    object-fit: cover;
    flex-shrink: 0;
    background-color: #e5e7eb;
}

.service-info {
    flex: 1;
}

.service-name {
    font-weight: 600;
    color: #1b1b18;
    margin-bottom: 0.25rem;
}

.service-details {
    font-size: 0.875rem;
    color: #706f6c;
    margin-bottom: 0.5rem;
}

.service-price {
    font-weight: 600;
    color: #000;
}

.service-link {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.service-link:hover {
    text-decoration: underline;
}

/* ============================================
   SIDEBAR RIGHT - Contact Info
   ============================================ */

.sidebar-right {
    width: 320px;
    background-color: #f9fafb;
    border-left: 1px solid #e3e3e0;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.map-placeholder {
    width: 100%;
    height: 200px;
    background-color: #e5e7eb;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #9ca3af;
    font-size: 3rem;
}

.info-section {
    margin-bottom: 2rem;
}

.section-subtitle {
    font-weight: 600;
    color: #1b1b18;
    margin-bottom: 1rem;
}

.info-item {
    margin-bottom: 1rem;
}

.info-label {
    font-size: 0.875rem;
    color: #706f6c;
    margin-bottom: 0.25rem;
}

.info-text {
    font-size: 0.875rem;
    color: #1b1b18;
    line-height: 1.5;
}

.info-link {
    color: #3b82f6;
    text-decoration: none;
    transition: all 0.2s ease;
}

.info-link:hover {
    text-decoration: underline;
}

.business-hours {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hours-item {
    display: flex;
    justify-between;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    border-bottom: 1px solid #e5e7eb;
}

.hours-day {
    color: #706f6c;
}

.hours-time {
    font-weight: 500;
    color: #1b1b18;
}

/* ============================================
   DATA TABLE STYLING
   ============================================ */

.table-wrapper {
    width: 100%;
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e3e3e0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.data-table thead {
    background: linear-gradient(to right, #f9fafb, #f3f4f6);
    border-bottom: 2px solid #e3e3e0;
}

.data-table thead th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    color: #1b1b18;
    letter-spacing: 0.5px;
    text-transform: capitalize;
}

.data-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.data-table tbody tr:hover {
    background-color: #f9fafb;
    box-shadow: inset 0 0 10px rgba(59, 130, 246, 0.05);
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

.data-table tbody td {
    padding: 1rem 1.25rem;
    color: #1b1b18;
}

.data-table tbody td:first-child {
    font-weight: 600;
    color: #706f6c;
    width: 50px;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

.status-confirmed {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.status-cancelled {
    background-color: #fee2e2;
    color: #7f1d1d;
    border: 1px solid #fecaca;
}

/* Action Buttons */
.data-table tbody td:last-child {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-action {
    padding: 0.5rem 0.875rem;
    border: 1px solid #e3e3e0;
    border-radius: 0.375rem;
    background-color: white;
    color: #1b1b18;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.btn-edit {
    border-color: #3b82f6;
    color: #3b82f6;
    background-color: #eff6ff;
}

.btn-edit:hover {
    background-color: #3b82f6;
    color: white;
}

.btn-delete {
    border-color: #ef4444;
    color: #ef4444;
    background-color: #fef2f2;
}

.btn-delete:hover {
    background-color: #ef4444;
    color: white;
}

/* ============================================
   MOBILE MENU
   ============================================ */

.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 150;
    padding: 0.75rem;
    background-color: white;
    border: 1px solid #e3e3e0;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
    border-color: #1b1b18;
    background-color: #f5f5f3;
}

.mobile-menu-overlay {
    display: none;
}

.mobile-menu-overlay.active {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 98;
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Ensure minute-45 slots show a visible bottom border */
.calendar-days-grid .calendar-day-column .time-slot[data-minute="45"] {
    border-bottom: 1px solid #e5e7eb !important;
}

/* Make selected minute-45 border visible (lighter on dark background) */
.calendar-days-grid .calendar-day-column .time-slot[data-minute="45"].slot-selected {
    border-bottom: 1px solid rgba(255,255,255,0.12) !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .sidebar-left {
        height: 100%;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar-left.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu-overlay {
        display: block;
    }

    .rooms-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {

    .services-section {
        max-width: 100%;
        padding: 1rem;
    }

    .rooms-section {
        max-width: 100%;
        padding: 1rem;
    }

    .rooms-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .notice-content {
        grid-template-columns: 1fr;
    }

    .sidebar-left {
        width: 280px;
    }

    .header-banner {
        height: 80px;
    }

    .content-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 1200px) {
    /* Calendar responsive adjustments for tablet and mobile */
    .calendar-grid-wrapper {
        height: auto;
        max-height: 400px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .calendar-time-column {
        height: auto;
        min-height: 100%;
    }

    .calendar-days-grid {
        height: auto;
        min-height: 100%;
    }

    .time-slot {
        height: calc(100% / 60);
        min-height: 35px;
    }

    .calendar-day-header {
        min-height: 70px;
        padding: 0.75rem 0.5rem;
    }

    .day-name {
        font-size: 0.7rem;
    }

    .day-num {
        font-size: 1.25rem;
    }

    .time-label {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .sidebar-left {
        width: 240px;
        height: 100%;
    }

    .services-section {
        padding: 1rem;
    }

    .service-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .service-image {
        width: 120px;
        height: 120px;
    }

    .booking-policy {
        right: 1rem;
        top: 0.5rem;
        font-size: 0.75rem;
    }


    .calendar-day-headers {
        grid-template-columns: 50px repeat(3, 1fr);
        position: sticky;
        top: 0;
        z-index: 20;
    }

    .calendar-day-header {
        padding: 0.4rem 0.2rem;
        min-height: 50px;
        font-size: 0.65rem;
        gap: 0.2rem;
    }

    .day-name {
        font-size: 0.6rem;
    }

    .day-num {
        font-size: 0.9rem;
    }

    .calendar-time-column {
        width: 50px;
        height: auto;
    }

    .time-label {
        font-size: 0.6rem;
        min-height: 30px;
        padding: 0.08rem 0;
    }

    .calendar-days-grid {
        height: auto;
        grid-template-columns: repeat(3, 1fr);
        grid-column: 2 / -1;
    }

    .time-slot {
        min-height: 35px;
        height: calc(100% / 60);
    }

    .time-slot::after {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }

    .calendar-day-column {
        height: auto;
    }

    .calendar-week {
        overflow: visible;
    }
}

/* ============================================
   ROOMS PAGE - Styles
   ============================================ */

/* ROOMS SECTION */
.rooms-section {
    flex: 1;
    padding: 2rem;
    max-width: 900px;
    overflow-y: auto;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* ROOM CARD STYLING */
.room-card {
    background: white;
    border: 1px solid #e3e3e0;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.room-card:hover {
    border-color: #9B8B7E;
    box-shadow: 0 8px 24px rgba(155, 139, 126, 0.15);
    transform: translateY(-4px);
}

/* Room Image Section */
.room-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #e5e7eb;
}

.room-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.room-card:hover .room-image {
    transform: scale(1.05);
}

.room-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background-color: #3b82f6;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.capacity-badge {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* Room Content Section */
.room-content {
    background-color: #FDF8F5;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.room-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1b1b18;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

/* Room Price Section */
.room-price-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-label {
    font-size: 0.875rem;
    color: #706f6c;
    font-weight: 500;
}

.price-value {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #000;
    background: linear-gradient(135deg, #9B8B7E, #7A6B5E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Room Features Section */
.room-features {
    margin-bottom: 1.5rem;
    flex: 1;
}

.features-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1b1b18;
    margin: 0 0 0.75rem 0;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.features-list li {
    font-size: 0.875rem;
    color: #706f6c;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.features-list i {
    color: #10b981;
    font-size: 0.75rem;
}

/* Book Room Button */
.btn-book-room {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #9B8B7E, #7A6B5E);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(123, 107, 94, 0.3);
}

.btn-book-room:hover {
    background: linear-gradient(135deg, #7A6B5E, #5F5247);
    box-shadow: 0 4px 12px rgba(123, 107, 94, 0.4);
    transform: translateY(-2px);
}

.btn-book-room:active {
    transform: translateY(0);
}

/* NOTICE SECTION */
.notice-section {
    background: linear-gradient(135deg, #FDF8F5 0%, #FDF8F5 5%);
    border: 2px solid #e0e7ff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.notice-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1b1b18;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notice-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.notice-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
    border-left: 4px solid #9B8B7E;
}

.notice-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #9B8B7E, #7A6B5E);
    color: white;
    border-radius: 50%;
    font-size: 0.9rem;
}

.notice-text {
    flex: 1;
}

.notice-text p {
    margin: 0;
    font-size: 0.875rem;
    color: #1b1b18;
    line-height: 1.5;
}

.notice-text strong {
    color: #7A6B5E;
    font-weight: 600;
}

/* ============================================
   CALENDAR APPOINTMENT BOOKING
   ============================================ */

.calendar-container {
    display: flex;
    gap: 0;
    flex: 1;
    background: white;
    overflow: hidden;
}

.calendar-sidebar {
    width: 220px;
    background-color: #f9fafb;
    border-right: 1px solid #e3e3e0;
    padding: 1.5rem 1rem;
    overflow-y: auto;
    flex-shrink: 0;
}

.calendars-header {
    margin-bottom: 1.5rem;
}

.calendars-header h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1b1b18;
    margin: 0;
}

.calendars-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.calendar-room-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    color: #1f2937;
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.calendar-room-btn:hover,
.calendar-room-btn.active {
    background: #f5f1e8;
    border-color: #9B8B7E;
    box-shadow: 0 4px 12px rgba(155, 139, 126, 0.08);
}

.calendar-room-btn.active {
    font-weight: 600;
}

.calendar-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.calendar-room-label {
    margin-top: 0.75rem;
    color: #475569;
    font-size: 0.9rem;
}

.calendar-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.calendar-header {
    padding: 1.5rem;
    background: white;
    border-bottom: 1px solid #e3e3e0;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.btn-nav-prev,
.btn-nav-next {
    width: 32px;
    height: 32px;
    border: 1px solid #e3e3e0;
    background: white;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 1.25rem;
    color: #1b1b18;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-nav-prev:hover,
.btn-nav-next:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
}

.calendar-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1b1b18;
    margin: 0;
    min-width: 150px;
    text-align: center;
}

.btn-today {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e3e3e0;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #1b1b18;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-today:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
}

.calendar-week {
    flex: 1;
    overflow: auto;
}

.calendar-grid-wrapper {
    display: grid;
    grid-template-columns: 50px repeat(3, 1fr);
    grid-template-rows: auto 1fr;
    height: 825px;
    overflow-y: auto;
    border-bottom: 1px solid #e3e3e0;
}

.calendar-day-headers {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 50px repeat(3, 1fr);
    gap: 0;
    padding: 0;
    background: white;
    border-bottom: 1px solid #e3e3e0;
    position: sticky;
    top: 0;
    z-index: 20;
}

.calendar-day-header {
    padding: 0.6rem 0.4rem;
    text-align: center;
    border-right: 1px solid #e3e3e0;
    background: white;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
}

.calendar-day-header.empty {
    background: #fafafa;
}

.day-name {
    font-size: 0.7rem;
    color: #706f6c;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.day-num {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1b1b18;
}

.day-num.today-highlight {
    background: #9B8B7E;
    color: white;
    border-radius: 0.375rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.calendar-time-column {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    background: #fafafa;
    border-right: 1px solid #e3e3e0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    height: 900px;
}

.empty-header {
    display: none;
}

.time-label {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    line-height: 1;
    color: #9ca3af;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 500;
    padding: 0.1rem 0;
}

.calendar-days-grid {
    grid-column: 2 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    flex: none;
    height: 900px;
}

.calendar-day-column {
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e3e3e0;
    height: 100%;
}

.time-slot {
    flex: none;
    height: calc(100% / 60);
    width: 100%;
    min-height: 0;
    border-bottom: 1px solid transparent;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    overflow: hidden;
    position: relative;
}


.time-slot::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.time-slot::after {
    content: attr(data-time);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 0.35rem 0.65rem;
    border-radius: 0.375rem;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 15;
}

.calendar-day-column:last-child {
    border-right: none;
}

.time-slot:hover {
    background-color: #f5f1e8;
    border-bottom: 1px solid #9B8B7E;
    border-top: 1px solid #9B8B7E;
    box-shadow: inset 0 0 0 1px rgba(155, 139, 126, 0.3);
}

.time-slot:hover::after {
    opacity: 1;
}

.time-slot:active {
    background-color: #e0f2fe;
}

.time-slot.slot-selected {
    background: linear-gradient(135deg, #d8cf90 0%, #d8cf90 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
    /* Sisakan border bawah bawaan sebagai penanda dasar */
    border-bottom: 1px solid rgba(216, 207, 144, 0.2); 
    border-top: none;
    animation: longPressActive 0.3s ease-in-out;
}

@keyframes longPressActive {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(216, 207, 144, 0.7);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 8px 4px rgba(216, 207, 144, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(216, 207, 144, 0);
    }
}



/* ============================================
   APPOINTMENT MODAL
   ============================================ */

.appointment-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.appointment-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e3e3e0;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1b1b18;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #9ca3af;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: #1b1b18;
}

.modal-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #e3e3e0;
    background: #f9fafb;
    padding: 0 1.5rem;
}

.modal-tab {
    padding: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    color: #706f6c;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.modal-tab:hover {
    color: #1b1b18;
}

.modal-tab.active {
    color: #1b1b18;
    border-bottom-color: #9B8B7E;
}

.modal-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #1b1b18;
    font-weight: 500;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.form-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 1rem;
    flex-shrink: 0;
}

.form-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e3e3e0;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: #1b1b18;
    background: white;
    cursor: pointer;
    margin-top: 0.25rem;
}

.form-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#appointmentTime {
    display: block;
    font-size: 0.875rem;
    color: #706f6c;
    margin-bottom: 0.5rem;
}

#appointmentTime strong {
    color: #1b1b18;
    font-weight: 600;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e3e3e0;
    background: #f9fafb;
    display: flex;
    justify-content: flex-end;
}

.btn-create {
    padding: 0.75rem 1.5rem;
    background: #9B8B7E;
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-create:hover {
    background: #7A6B5E;
    box-shadow: 0 4px 12px rgba(123, 107, 94, 0.15);
}

/* ============================================
   PAGE-SPECIFIC STYLES
   ============================================ */

/* Hide sidebar on dashboard page only */
.page-dashboard .sidebar-right {
    display: none;
}

    .room-capacity {
        font-size: 0.95rem;
        color: #666;
        margin: 0.5rem 0 1rem 0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .room-capacity i {
        color: #4CAF50;
        font-size: 1.1rem;
    }
