* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(145deg, #f9f0e8 0%, #e8d9cc 100%);
    min-height: 100vh;
    padding: 0;
}


.guest-layout,
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.guest-sidebar,
.admin-sidebar {
    width: 260px;
    background: white;
    box-shadow: 4px 0 24px rgba(0,0,0,0.05);
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 10;
}

.sidebar-profile {
    text-align: center;
    border-bottom: 1px solid #f0e2d8;
    padding-bottom: 20px;
}

.sidebar-avatar {
    font-size: 52px;
    margin-bottom: 8px;
}

.sidebar-name {
    font-weight: 700;
    color: #4a3520;
    font-size: 18px;
}

.sidebar-role {
    font-size: 12px;
    color: #c27b3a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 40px;
    color: #4a3520;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: #c27b3a;
    color: white;
}

.sidebar-link.logout {
    margin-top: auto;
    background: #fee2e2;
    color: #b91c1c;
}

.sidebar-link.logout:hover {
    background: #b91c1c;
    color: white;
}

.guest-main,
.admin-main {
    margin-left: 260px;
    flex: 1;
    padding: 40px;
}

.guest-header,
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.guest-header h1,
.admin-header h1 {
    font-size: 28px;
    color: #c27b3a;
    margin-bottom: 4px;
}

.guest-header p,
.admin-header p {
    color: #7a6a5a;
    font-size: 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: #fff7f0;
    padding: 20px;
    border-radius: 28px;
    text-align: center;
    border: 1px solid #f0e2d8;
    transition: transform 0.1s ease;
}

.stat-card h3 {
    font-size: 32px;
    color: #c27b3a;
    margin-bottom: 8px;
}

.stat-card p {
    color: #7a6a5a;
    font-weight: 500;
}

.guest-stats .stat-card {
    background: white;
    border-radius: 24px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    border: 1px solid #f0e2d8;
}

.stat-icon {
    font-size: 36px;
}

.stat-info h4 {
    font-size: 26px;
    color: #c27b3a;
    margin-bottom: 4px;
}

.stat-info span {
    font-size: 14px;
    color: #7a6a5a;
    font-weight: 500;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0;
}

.table-wrapper,
.admin-table-wrapper {
    overflow-x: auto;
    margin-top: 24px;
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    border: 1px solid #f0e2d8;
}

.admin-table-wrapper h2 {
    color: #4a3520;
    margin-bottom: 16px;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    border-radius: 24px;
    overflow: hidden;
}

th {
    background: #fef6e8;
    color: #4a3520;
    padding: 14px;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 12px;
    border-bottom: 1px solid #f5ede5;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 60px;
    font-size: 12px;
    font-weight: 600;
    background: #fef3c7;
    color: #b45309;
}

.status-approved {
    background: #e0f2e9;
    color: #2d6a4f;
}

.action-cell {
    display: flex;
    gap: 8px;
    align-items: center;
}

.status-select {
    padding: 6px 12px;
    border: 1px solid #f0e2d8;
    border-radius: 20px;
    font-size: 12px;
    background: white;
}

.update-status-btn {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 20px;
    border: none;
    background: #c27b3a;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.update-status-btn:hover {
    background: #a85f2a;
}

tr.empty-row td {
    text-align: center;
    color: #7a6a5a;
    padding: 30px;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.room-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    border: 1px solid #f0e2d8;
}

.room-card-header {
    height: 120px;
    background: linear-gradient(135deg, #fef6e8, #f0e2d8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.room-card-body {
    padding: 18px 20px;
}

.room-card-body h3 {
    color: #c27b3a;
    font-size: 20px;
    margin-bottom: 4px;
}

.room-number {
    color: #7a6a5a;
    font-size: 14px;
    margin-bottom: 8px;
}

.room-description {
    color: #5a4a3a;
    font-size: 14px;
    margin-bottom: 14px;
    line-height: 1.4;
}

.room-price {
    font-weight: 700;
    font-size: 22px;
    color: #c27b3a;
    margin-bottom: 14px;
}

.room-price small {
    font-size: 14px;
    font-weight: 400;
    color: #7a6a5a;
}

.room-card-body button {
    width: 100%;
    background: #c27b3a;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.1s;
}

.room-card-body button:hover {
    background: #a85f2a;
    transform: scale(0.98);
}

.booking-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.booking-item {
    background: white;
    border-radius: 20px;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    border-left: 5px solid #c27b3a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.booking-details strong {
    color: #4a3520;
    font-size: 16px;
}

.booking-details small {
    color: #5a4a3a;
}

.booking-status {
    text-align: right;
}

.booking-status .status-badge {
    margin-bottom: 8px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a3520;
}

input, select, textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #f0e2d8;
    border-radius: 60px;
    font-family: inherit;
    font-size: 14px;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #c27b3a;
}

button {
    background: linear-gradient(100deg, #c27b3a, #e09d5e);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 60px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.1s;
}

button:hover {
    transform: scale(0.98);
    opacity: 0.9;
}

.btn-small {
    padding: 6px 14px;
    font-size: 12px;
}

.btn-cancel {
    background: #fee2e2;
    color: #b91c1c;
}

.btn-cancel:hover {
    background: #b91c1c;
    color: white;
}

.nav-btn {
    background: #fef6e8;
    color: #c27b3a;
    padding: 12px 24px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #f0e2d8;
    transition: 0.1s;
    display: inline-block;
}

.nav-btn:hover {
    background: #c27b3a;
    color: white;
}

.logout-btn {
    background: #fee2e2;
    color: #b91c1c;
}

.logout-btn:hover {
    background: #b91c1c;
    color: white;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 32px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
    color: #c27b3a;
    margin-bottom: 20px;
}

.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

.auth-body::before {
    content: "🏨";
    font-size: 200px;
    position: absolute;
    bottom: 20px;
    right: 20px;
    opacity: 0.08;
    pointer-events: none;
}
.auth-body::after {
    content: "✈️";
    font-size: 160px;
    position: absolute;
    top: 30px;
    left: 20px;
    opacity: 0.08;
    pointer-events: none;
}

.auth-card {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(2px);
    border-radius: 48px;
    padding: 48px 40px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.auth-icon {
    text-align: center;
    font-size: 64px;
    margin-bottom: 16px;
}

.auth-title {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(120deg, #c27b3a, #a05e2c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    text-align: center;
    color: #7a6a5a;
    margin-bottom: 32px;
    font-size: 14px;
}

.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a3520;
    font-size: 14px;
}

.input-group input, .input-group select {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    border: 2px solid #f0e2d8;
    border-radius: 60px;
    background: #ffffff;
    transition: all 0.2s ease;
    font-family: inherit;
}

.input-group input:focus, .input-group select:focus {
    outline: none;
    border-color: #c27b3a;
    box-shadow: 0 0 0 4px rgba(194, 123, 58, 0.1);
}

.auth-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(100deg, #c27b3a, #e09d5e);
    color: white;
    border: none;
    border-radius: 60px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 12px;
    margin-bottom: 24px;
    transition: 0.1s linear;
    box-shadow: 0 8px 18px rgba(194, 123, 58, 0.25);
}

.auth-btn:hover {
    transform: scale(0.98);
    background: linear-gradient(100deg, #a85f2a, #c27b3a);
}

.auth-link {
    text-align: center;
    font-size: 14px;
    color: #7a6a5a;
}

.auth-link a {
    color: #c27b3a;
    text-decoration: none;
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}

.error-message, .success-message {
    padding: 12px;
    border-radius: 30px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    display: none;
}
.error-message { background: #fee2e2; color: #b91c1c; }
.success-message { background: #e0f2e9; color: #2d6a4f; }

.action-icons {
    display: flex;
    gap: 12px;
    cursor: pointer;
}
.edit-user, .delete-user {
    font-size: 18px;
    cursor: pointer;
}
.edit-user { color: #c27b3a; }
.delete-user { color: #b91c1c; }


.tab-hidden {
    display: none;
}


body {
    padding: 0;
}

.update-status-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.guest-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}

.guest-stats .stat-card {
    background: white;
    border-radius: 24px;
    padding: 18px 20px;
    display: flex !important; 
    align-items: center;
    gap: 16px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    border: 1px solid #f0e2d8;
}

.stat-icon {
    font-size: 36px;
    line-height: 1;
}

.stat-info h4 {
    font-size: 26px;
    color: #c27b3a;
    margin-bottom: 4px;
}

.stat-info span {
    font-size: 14px;
    color: #7a6a5a;
    font-weight: 500;
}

 /* Modal styles */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            align-items: center;
            justify-content: center;
            z-index: 1000;
        }
        .modal-content {
            background: white;
            border-radius: 48px;
            padding: 32px;
            max-width: 450px;
            width: 90%;
            position: relative;
        }
        .modal-content h3 {
            color: #c27b3a;
            margin-bottom: 20px;
        }
        .close-modal {
            position: absolute;
            top: 20px;
            right: 25px;
            font-size: 28px;
            cursor: pointer;
            color: #aaa;
        }
        .close-modal:hover { color: #c27b3a; }
        .forgot-link {
            text-align: right;
            margin-top: -15px;
            margin-bottom: 15px;
        }
        .forgot-link a {
            color: #c27b3a;
            font-size: 13px;
            text-decoration: none;
        }
        .forgot-link a:hover {
            text-decoration: underline;
        }
