/* General Styles */
body {
    background-color: #f4f5f7;
}

.sidebar {
    min-height: 100vh;
    background-color: #2c3e50;
    transition: all 0.3s;
}

.sidebar .nav-link {
    color: #fff;
    font-size: 1rem;
    padding: 10px 15px;
    border-radius: 4px;
    transition: all 0.3s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: #34495e;
    color: #ecf0f1;
}

.content {
    margin-left: 250px;
    transition: all 0.3s;
}

.chart-container {
    height: 300px;
}

.stats-card {
    transition: transform 0.2s;
    background-color: #fff;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 18%;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.stats-card h3 {
    margin: 0;
    font-size: 24px;
}

.stats-card p {
    font-size: 14px;
}

.stats-card i {
    font-size: 30px;
}

/* Stats Container Styling */
.stats-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Allow the cards to wrap on smaller screens */
}

/* Footer */
footer {
    text-align: center;
    padding: 10px 0;
    background-color: #fff;
    border-top: 1px solid #ddd;
    margin-top: 20px;
}

/* Modern Listings Title */
.listings-title {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Message Status */
.message-status {
    font-size: 12px;
    color: gray;
    padding-top: 5px;
}

.message-status.delivered {
    color: green;
}

.message-status.read {
    color: blue;
}

/* Reactions */
.reaction-buttons {
    display: flex;
    gap: 10px;
    padding-top: 10px;
}
.reaction-buttons i {
    cursor: pointer;
    color: #3498db;
}
.reaction-buttons i:hover {
    color: #2980b9;
}

/* User Details */
.user-details {
    font-size: 14px;
    color: gray;
}

/* Customer List Styles */
.customer-list-item {
    padding: 15px;
    display: flex;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
    transition: all 0.3s ease;
}

.customer-list-item:hover {
    background-color: #f4f4f4;
}

.customer-list-item img {
    border-radius: 50%;
    margin-right: 15px;
}

/* Message Styles */
.message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
    max-width: 60%;
}

.message.agent {
    background-color: #dbeafe;
    align-self: flex-end;
}

.message.customer {
    background-color: #f8f9fa;
    align-self: flex-start;
}

/* Conversation Panel Styling */
.conversation-header {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    background-color: #f4f5f7;
    color: #2c3e50;
    font-size: 16px;
    font-weight: bold;
}

/* Messages Container Styling */
.messages-container {
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 160px); /* Adjusting for the input box */
}

/* Message Input Area Styling */
.message-input-container {
    display: flex;
    gap: 10px;
    padding: 15px;
    border-top: 1px solid #ddd;
    background-color: #f9f9f9;
    position: fixed; /* Fixed at the bottom */
    bottom: 0;
    width: 59%;
    z-index: 1000;
}

.message-input-container input {
    flex-grow: 1;
    border-radius: 20px;
    padding: 10px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

.message-input-container button {
    border-radius: 20px;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    cursor: pointer;
}

.message-input-container button:hover {
    background-color: #2980b9;
}

/* View Booking Button */
#view-booking {
    position: absolute;
    top: 52px; /* Positioned at the top-right */
    right: 20px;
    background-color: #3498db;
    color: white;
    border-radius: 15px;
    padding: 5px 15px;
    font-size: 14px;
    cursor: pointer;
}

#view-booking:hover {
    background-color: #2980b9;
}

/* Footer at the bottom of the screen */
footer {
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f4f5f7;
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid #ddd;
    z-index: 1000;
}

footer p {
    margin: 0;
    color: #888;
}


/* Pagination */
.pagination {
    justify-content: center;
}

/* Search Bar */
.search-bar {
    width: 300px;
}

/* Channel Icons */
.channel-icons i {
    font-size: 18px;
    margin-right: 10px;
}

/* Listing Actions (buttons) */
.listing-actions button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.listing-actions button:hover {
    background-color: #2980b9;
}

/* Listing Card Images */
.listing-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

/* Stats Cards */
.stats-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.stats-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1; /* Allows the cards to stretch equally */
    margin: 10px; /* Space between cards */
    min-width: 180px; /* Ensure cards have a minimum width */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* Enhance the shadow on hover */
}

.stats-card h3 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

.stats-card p {
    font-size: 14px;
    color: #7f8c8d;
}

.stats-card i {
    font-size: 30px;
    color: #3498db; /* Set icon color */
    margin-bottom: 15px;

}

/* Listing Card Body */
.listing-card-body {
    padding: 15px;
}

/* Filter Section */
.filter-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-section select, .filter-section input {
    width: 200px;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.filter-section select:focus, .filter-section input:focus {
    border-color: #3498db;
}

/* Hover Effect for Listing Cards */
.listing-card:hover {
    background-color: #f9f9f9;
}

/* Custom Dropdown Styling */
.custom-dropdown {
    display: inline-block;
    position: relative;
}

.custom-dropdown select {
    display: none;
}

.custom-dropdown button {
    width: 200px;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

.custom-dropdown button:hover {
    background-color: #3498db;
    color: white;
}

.custom-dropdown ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #ccc;
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: none;
    max-height: 150px;
    overflow-y: auto;
}

.custom-dropdown ul li {
    padding: 10px;
    cursor: pointer;
}

.custom-dropdown ul li:hover {
    background-color: #3498db;
    color: white;

}

.custom-dropdown.active ul {
    display: block;
}

/* Modern Listings Title */
.listings-title {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Listing Image */
.listing-image {
    width: 100px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

/* Search and Date Filters */
#search, #status-filter, #from-date, #to-date {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

#status-filter:focus, #search:focus, #from-date:focus, #to-date:focus {
    border-color: #3498db;
}

/* Booking Status */
.badge.bg-success {
    background-color: #28a745;
}

.badge.bg-warning {
    background-color: #ffc107;
}

.badge.bg-danger {
    background-color: #dc3545;
}

/* Action Buttons */
.btn-info, .btn-warning, .btn-danger {
    padding: 5px 10px;
    border-radius: 4px;
}

.btn-info {
    background-color: #17a2b8;
}

.btn-warning {
    background-color: #ffc107;
}

.btn-danger {
    background-color: #dc3545;
}

/* Hover effects on action buttons */
.btn-info:hover, .btn-warning:hover, .btn-danger:hover {
    opacity: 0.8;
}

/* Calendar Style */
#calendar {
    width: 100%;
    height: 400px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-top: 20px;
}

/* Ensure stats cards don't overflow and are responsive */
@media (max-width: 768px) {
    .stats-card {
        flex: 1 1 100%; /* Take up full width on smaller screens */
        text-align: center;
    }
}

