body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background: #181a20;
    color: #e0e0e0;
    font-size: 15px;
}
.login-bg {
    background: linear-gradient(120deg, #181a20 60%, #232946 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-container {
    background: #20222b;
    padding: 2rem 2rem 1.5rem 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 16px 0 #0008;
    text-align: center;
    min-width: 270px;
    border: 1px solid #232946;
}
.login-container h2 {
    margin-bottom: 1.2rem;
    color: #00eaff;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.login-container input {
    width: 92%;
    padding: 0.55rem 0.9rem;
    margin: 0.5rem 0;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    background: #181a20;
    color: #e0e0e0;
    border: 1.5px solid #232946;
    transition: border 0.2s;
}
.login-container input:focus {
    outline: none;
    border: 1.5px solid #00eaff;
}
.login-container button {
    width: 100%;
    padding: 0.6rem;
    background: #00eaff;
    color: #181a20;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.7rem;
    transition: background 0.2s, color 0.2s;
}
.login-container button:hover {
    background: #00b8d9;
    color: #fff;
}
.error {
    color: #ff3c7e;
    margin-bottom: 1rem;
    font-size: 0.98rem;
}
.success {
    color: #00ffb3;
    margin-bottom: 1rem;
    font-size: 0.98rem;
}
.sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: 180px;
    background: #1a1c23;
    color: #e0e0e0;
    padding: 1.5rem 0.7rem 1rem 0.7rem;
    box-shadow: 2px 0 12px 0 #0006;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    border-right: 1.5px solid #232946;
    z-index: 10;
}
.sidebar h2 {
    margin: 0 0 1.5rem 0;
    font-size: 1.1rem;
    letter-spacing: 1px;
    color: #00eaff;
    font-weight: 700;
}
.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}
.sidebar ul li {
    margin-bottom: 0.7rem;
}
.sidebar ul li a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.45rem 0.7rem;
    border-radius: 6px;
    display: block;
    position: relative;
    transition: background 0.18s, color 0.18s;
    overflow: hidden;
    background: none;
}
.sidebar ul li a::after {
    content: '';
    display: block;
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 2px; /* Lower the underline below the text */
    height: 2px;
    background: linear-gradient(90deg, #00eaff 0%, #00ffb3 100%);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.25s cubic-bezier(.4,0,.2,1);
    z-index: 1;
}
.sidebar ul li a.active {
    background: #232946;
    color: #00eaff;
}
.sidebar ul li a:hover {
    background: #232946;
    color: #00eaff;
}
.sidebar ul li a:hover::after, .sidebar ul li a.active::after {
    transform: scaleX(1);
}
.sidebar-user {
    font-size: 0.93rem;
    margin-top: 1.5rem;
    color: #00eaff;
    opacity: 0.8;
}
.main-content {
    margin-left: 180px;
    padding: 2rem 3vw;
    min-height: 100vh;
    background: #181a20;
    transition: background 0.3s;
}
.section {
    display: none;
}
.section.active {
    display: block;
    animation: fadeIn 0.5s;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
#chats-list, #bookings-list, #all-bookings-list {
    background: #20222b;
    border-radius: 8px;
    box-shadow: 0 1.5px 8px #0006;
    padding: 1.1rem 1.2rem;
    margin-top: 0.7rem;
    min-height: 120px;
    border: 1px solid #232946;
    transition: box-shadow 0.2s;
}

.chat-item, .booking-item {
    border-bottom: 1px solid #232946;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.98rem;
    transition: background 0.18s;
}
.chat-item:last-child, .booking-item:last-child {
    border-bottom: none;
}
.chat-link {
    color: #00eaff;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
    border-bottom: 1.5px solid transparent;
    transition: color 0.18s, border-bottom 0.18s;
}
.chat-link:hover {
    color: #00ffb3;
    border-bottom: 1.5px solid #00ffb3;
}
table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1.5rem;
    background: #20222b;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1.5px 8px #0006;
    font-size: 0.97rem;
}
table th, table td {
    padding: 0.6rem 1rem;
    border: 1px solid #232946;
    text-align: left;
    color: #e0e0e0;
}
table th {
    background: #181a20;
    color: #00eaff;
    font-weight: 600;
}
input, button, select, textarea {
    font-family: inherit;
}
::-webkit-scrollbar {
    width: 8px;
    background: #232946;
}
::-webkit-scrollbar-thumb {
    background: #00eaff;
    border-radius: 8px;
}
.highlight {
    background: #00eaff22 !important;
    color: #00eaff !important;
    transition: background 0.3s, color 0.3s;
}
input, select, textarea {
    background: #23242b;
    color: #e0e0e0;
    border: 1.5px solid #232946;
    border-radius: 6px;
    padding: 0.55rem 0.9rem;
    font-size: 1rem;
    transition: border 0.2s, box-shadow 0.2s, background 0.2s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border: 1.5px solid #00eaff;
    background: #1a1c23;
    box-shadow: 0 0 0 2px #00eaff44;
}

/* Button styling for all buttons, including Create User */
button {
    background: linear-gradient(90deg, #00eaff 0%, #00ffb3 100%);
    color: #181a20;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    transition: background 0.18s, color 0.18s,  transform 0.12s;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}
button:hover, button:focus {
    background: linear-gradient(90deg, #00ffb3 0%, #00eaff 100%);
    color: #fff;
    box-shadow: 0 4px 16px #00eaff44;
    transform: translateY(-2px) scale(1.03);
}

/* Table cell backgrounds */
table th, table td {
    background: #23242b;
    color: #e0e0e0;
    border: 1px solid #232946;
    text-align: left;
    font-size: 0.97rem;
}
table th {
    background: #181a20;
    color: #00eaff;
    font-weight: 600;
}
.bookings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1.2rem;
}
.booking-card {
    background: #20222b;
    border-radius: 10px;
    box-shadow: 0 2px 16px #0008;
    padding: 1.3rem 1.2rem 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    min-width: 0;
    border: 1px solid #232946;
    transition: box-shadow 0.18s, border 0.18s;
}
.booking-card:hover {
    box-shadow: none !important;
    border: 1.5px solid #00eaff;
}
.booking-card-title {
    color: #00eaff;
    font-size: 1.08rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}
.booking-card-details {
    color: #e0e0e0;
    font-size: 0.98rem;
    opacity: 0.93;
}
/* Remove underline for nav-chats only if desired */
#nav-chats::after {
    display: none !important;
}
#nav-chats:hover::after, #nav-chats.active::after {
    display: none !important;
} 
.booking-delete-btn {
    background: none;
    border: none;
    padding: 0.1rem 0.2rem;
    cursor: pointer;
    vertical-align: middle;
    outline: none;
    transition: color 0.15s;
}
.booking-delete-btn svg path {
    transition: stroke 0.15s;
}
.booking-delete-btn:hover svg path {
    stroke: #ff1744;
} 
.chat-delete-btn {
    background: none;
    border: none;
    padding: 0.1rem 0.2rem;
    cursor: pointer;
    vertical-align: middle;
    outline: none;
    transition: color 0.15s;
}
.chat-delete-btn svg path {
    transition: stroke 0.15s;
}
.chat-delete-btn:hover svg path {
    stroke: #ff1744;
} 
.user-delete-btn {
    background: none;
    border: none;
    padding: 0.1rem 0.2rem;
    cursor: pointer;
    vertical-align: middle;
    outline: none;
    transition: color 0.15s;
}
.user-delete-btn svg path {
    transition: stroke 0.15s;
}
.user-delete-btn:hover svg path {
    stroke: #ff1744;
} 
.chat-user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.user-delete-btn:focus, .user-delete-btn:active {
    outline: none;
    box-shadow: none;
} 
.booking-view-chat-btn {
    background: none;
    border: none;
    padding: 0.1rem 0.2rem;
    cursor: pointer;
    vertical-align: middle;
    outline: none;
    transition: color 0.15s;
}
.booking-view-chat-btn svg path {
    transition: stroke 0.15s;
}
.booking-view-chat-btn:hover svg path {
    stroke: #00eaff;
} 
.chat-history {
    background: #232946;
    border-radius: 8px;
    padding: 1.1rem 1.2rem;
    min-height: 320px;
    max-height: 580px;
    overflow-y: auto;
    box-shadow: 0 1.5px 8px #0006;
    margin-bottom: 0.5rem;
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.chat-message {
    display: inline-block;
    max-width: 65%;
    padding: 0.38rem 0.85rem;
    border-radius: 13px 13px 13px 5px;
    margin-bottom: 0.1rem;
    font-size: 0.97rem;
    background: #23242b;
    color: #e0e0e0;
    word-break: break-word;
    box-shadow: 0 1px 2px #0002;
    position: relative;
    margin-left: 0;
    margin-right: auto;
    text-align: left;
    font-weight: 400;
    border: 1px solid #232946;
}
.chat-message.me {
    background: #2d5fff;
    color: #fff;
    margin-left: auto;
    margin-right: 0;
    text-align: right;
    font-weight: 500;
    border-radius: 13px 13px 5px 13px;
    box-shadow: 0 1px 6px #2d5fff22;
    border: 1px solid #2d5fff;
}
.chat-message.me::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 10px;
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 8px solid #2d5fff;
}
.chat-message:not(.me)::after {
    content: '';
    position: absolute;
    left: -8px;
    top: 10px;
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-right: 8px solid #23242b;
}
.chat-send-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
}
#chat-message-input {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    border: 1.5px solid #232946;
    background: #23242b;
    color: #e0e0e0;
    font-size: 0.97rem;
    transition: border 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 1px 2px #0002;
}
#chat-message-input:focus {
    outline: none;
    border: 1.5px solid #2d5fff;
    background: #191b22;
    box-shadow: 0 0 0 2px #2d5fff33;
}
.chat-send-form button {
    padding: 0.5rem 1.1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    background: #2d5fff;
    color: #fff;
    border: none;
    box-shadow: 0 1px 4px #2d5fff22;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.chat-send-form button:hover, .chat-send-form button:focus {
    background: #1a3fa6;
    color: #fff;
    box-shadow: 0 2px 8px #2d5fff33;
} 
.sidebar-welcome {
    font-size: 0.97rem;
    color: #b0b8c1;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.sidebar-welcome b {
    color: #00eaff;
} 