<style>
    body {
        font-family: 'Segoe UI', Arial;
        background: #f4f4f4;
        margin: 0;
    }

    h3 {
        margin-top: 20px;
        margin-bottom: 10px;
        color: #333;
        border-bottom: 1px solid #eee;
        padding-bottom: 5px;
    }

    .header {
        background: #e74c3c;
        color: white;
        padding: 15px 30px;
        font-size: 20px;
        font-weight: bold;
    }

    .container {
        max-width: 1000px;
        margin: 20px auto;
        background: white;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .search-bar {
        display: flex;
        gap: 10px;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }

    input {
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 6px;
    }

   button {
        padding: 10px 15px;
        border: none;
        border-radius: 6px;
        background: #e74c3c;
        color: white;
        cursor: pointer;
        transition: 0.2s;
   }

    button:active {
        transform: scale(0.97);
    }

    button:hover {
        background: #c0392b;
    }

    .slots {
        display: flex;
        flex-wrap: wrap;
    }

    .slot {
        display: inline-block;
        padding: 10px 14px;
        margin: 5px;
        border-radius: 20px;
        background: #2ecc71;
        color: white;
        cursor: pointer;
        transition: 0.2s;
        min-width: 80px;
        text-align: center;
    }

    .slot:hover {
        background: #27ae60;
        transform: scale(1.05);
    }

    .section {
        margin-top: 25px;
    }

    .guest-form {
        margin-top: 15px;
    }

    .guest-form input {
        margin: 5px;
    }

    @media (max-width: 600px) {
        .search-bar {
            flex-direction: column;
        }

        .search-bar input,
        .search-bar button {
            width: 100%;
        }

        .guest-form input {
            width: 100%;
            margin: 5px 0;
        }

        .reservation-card {
            flex-direction: column;
            align-items: flex-start;
            gap: 10px;
        }

        .cancel-btn {
            width: 100%;
        }
    }

    .reservation-card {
        border: 1px solid #eee;
        padding: 15px;
        border-radius: 8px;
        margin-bottom: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        transition: transform 0.2s, box-shadow 0.2s;
    }

    .reservation-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    }

    .cancel-btn {
        background: #e74c3c;
    }

    .cancel-btn:hover {
        background: #c0392b;
    }



    .guest-form input {
        margin: 5px;
    }

    .booked {
        background: #bdc3c7;
        cursor: not-allowed;
        opacity: 0.6;
    }

    .reservation-info {
        line-height: 1.6;
        font-size: 14px;
        color: #2c3e50;
    }

    .reservation-info strong {
        font-size: 16px;
    }

    .slot.warning {
        background: #f39c12;
    }

    .toast {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background: #2ecc71;
        color: white;
        padding: 12px 18px;
        border-radius: 6px;
        opacity: 0;
        transition: opacity 0.3s, transform 0.3s;
        transform: translateY(20px);
    }

    .toast.show {
        opacity: 1;
        transform: translateY(0);
    }

    .toast.error {
        background: #e74c3c;
    }

    .date-header {
        margin-top: 20px;
        margin-bottom: 10px;
        padding-bottom: 5px;
        border-bottom: 1px solid #eee;
        color: #333;
    }

    .date-header.today {
        color: #e74c3c;
        font-weight: bold;
    }

    .reservation-card.past {
        opacity: 0.6;
    }

    .field-group {
        display: flex;
        flex-direction: column;
        margin-right: 10px;
    }

    .field-group label {
        font-size: 12px;
        color: #666;
        margin-bottom: 3px;
    }

    #stats {
        display: flex;
        gap: 30px;
        margin-bottom: 15px;
    }

    #stats p {
        background: #ecf0f1;
        padding: 10px 15px;
        border-radius: 6px;
    }

    .highlight-slot {
        background-color: #ff3b3b !important;   /* bright red */
        color: white !important;
        border: 4px solid yellow !important;
        font-weight: bold;
        transform: scale(1.15);
        box-shadow: 0 0 15px 5px rgba(255, 59, 59, 0.8);
        position: relative;
    }

    .highlight-slot {
        animation: pulseHighlight 1s infinite;
    }

    .calendar-room {
        margin-top: 10px;
        margin-bottom: 5px;
        padding: 6px;
        background: #eeeeee;
        border-left: 4px solid #555;
        font-size: 16px;
    }

    .calendar-row {
        display: flex;
        border-bottom: 1px solid #ddd;
        padding: 8px 0;
    }

    .today-header {
        background: #e3f2fd;
        border-left: 5px solid #2196f3;
        font-weight: bold;
    }

    .calendar-date {
        margin-top: 20px;
        margin-bottom: 10px;
        padding: 8px;
        background: #f5f5f5;
        border-left: 5px solid #1976d2;
        font-size: 18px;
    }

    .calendar-time {
        width: 80px;
        font-weight: bold;
    }

    .calendar-slot {
        flex: 1;
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

    .reservation-chip {
        padding: 6px 10px;
        border-radius: 10px;
        font-size: 13px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-weight: 500;
        cursor: pointer;
        transition: transform 0.15s ease, box-shadow 0.15s ease;
    }

    .reservation-chip:hover {
        transform: scale(1.05);
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }

    /* Table colors */
    .table-1 { background: #4caf50; color: white; }
    .table-2 { background: #2196f3; color: white; }
    .table-3 { background: #9c27b0; color: white; }
    .table-4 { background: #ff9800; color: black; }
    .table-5 { background: #f44336; color: white; }

    .available {
        color: #4caf50;
    }

    .chip-table {
        font-size: 11px;
        opacity: 0.8;
    }

    @keyframes pulseHighlight {
        0%   { transform: scale(1.05); }
        50%  { transform: scale(1.2); }
        100% { transform: scale(1.05); }
    }

    .table-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        display: inline-block;
        margin-right: 6px;
    }

    .room-toggle {
        display: flex;
        justify-content: space-between;
        margin-bottom: 8px;
        padding: 6px;
        background: #f5f5f5;
        border-radius: 6px;
    }

    .room-toggle button {
        padding: 4px 10px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }

    .room-toggle button {
        background: #4caf50;
        color: white;
    }

    .no-availability {
        padding: 12px;
        background: #ffeaea;
        border: 1px solid #ffcccc;
        border-radius: 6px;
        color: #b00020;
        text-align: center;
        margin-top: 10px;
    }

    .room-reservation {
        background: black;
        color: white;
        font-weight: bold;
        border: 2px solid #333;
    }

    .highlight {
        background-color: yellow;
        padding: 0 2px;
        border-radius: 3px;
    }

    .admin-filters {
        display: flex;
        gap: 10px;
        margin-bottom: 15px;
    }

    .admin-filters input,
    .admin-filters select {
        padding: 6px;
    }

    #roomLayoutContainer {
        margin: 15px 0;
        text-align: center;
    }

    #roomLayoutImage {
        max-width: 100%;
        border: 1px solid #ccc;
        border-radius: 6px;
    }

</style>
