/* Main Styles */
body {
    background-color: var(--bg-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 0;
    margin: 0;
}

main {
    flex: 1 0 auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--accent-color);
}

.text-highlight-1 {
    color: var(--highlight-color-1);
}

.text-highlight-2 {
    color: var(--highlight-color-2);
}

.text-highlight-3 {
    color: var(--highlight-color-3);
}

.bg-accent {
    background-color: var(--accent-color);
}

.bg-highlight-1 {
    background-color: var(--highlight-color-1);
}

.bg-highlight-2 {
    background-color: var(--highlight-color-2);
}

.bg-highlight-3 {
    background-color: var(--highlight-color-3);
}

/* Buttons */
.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--highlight-color-1);
    border-color: var(--highlight-color-1);
}

.btn-outline-primary {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-secondary {
    background-color: var(--highlight-color-2);
    border-color: var(--highlight-color-2);
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: var(--highlight-color-3);
    border-color: var(--highlight-color-3);
}

/* Hero Section */
/*.hero {*/
/*    padding: 5rem 0;*/
/*    background-color: var(--accent-color);*/
/*    color: white;*/
/*    margin-top: -1.5rem;*/
/*    margin-bottom: 3rem;*/
/*}*/

/*.hero h1 {*/
/*    color: white;*/
/*    font-size: 3rem;*/
/*    font-weight: 700;*/
/*}*/

/*.hero p {*/
/*    font-size: 1.25rem;*/
/*    max-width: 800px;*/
/*    margin: 1rem auto;*/
/*}*/

/* Service Cards */
.service-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    background-color: white;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.service-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.service-card .card-body {
    padding: 1.5rem;
}

.service-card .service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--highlight-color-1);
}

.service-card .service-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--highlight-color-2);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

/* Testimonials */
.testimonial-card {
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: white;
    margin-bottom: 2rem;
}

.testimonial-card .testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.testimonial-card .rating {
    color: #ffc107;
    margin-bottom: 1rem;
}

.testimonial-card .client-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.testimonial-card .client-position {
    color: #6c757d;
    margin-bottom: 1rem;
}

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(94, 16, 122, 0.85);
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* Cart */
.cart-item {
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.cart-summary {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Login and Registration */
.auth-form {
    max-width: 500px;
    margin: 0 auto;
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Service Detail */
.service-detail .service-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.service-detail .service-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--highlight-color-2);
    color: white;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

.service-detail .service-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--highlight-color-1);
    margin-bottom: 1rem;
}

/* Contact Form */
.contact-form {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-info {
    background-color: var(--accent-color);
    color: white;
    border-radius: 10px;
    padding: 2rem;
}

.contact-info i {
    margin-right: 0.5rem;
}

/* Admin Dashboard */
.admin-sidebar {
    background-color: var(--accent-color);
    color: white;
    min-height: calc(100vh - 56px);
    padding: 2rem 0;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1.5rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.admin-sidebar .nav-link i {
    margin-right: 0.5rem;
}

.admin-content {
    padding: 2rem;
}

.admin-card {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.pagination-link {
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 5px;
    background-color: white;
    color: var(--accent-color);
    text-decoration: none;
    transition: background-color 0.3s;
}

.pagination-link:hover {
    background-color: var(--highlight-color-2);
    color: white;
}

.pagination-link.active {
    background-color: var(--accent-color);
    color: white;
}

/* Chat System Styles */
.chat-container {
    display: flex;
    height: 600px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.chat-threads {
    width: 300px;
    border-right: 1px solid #e9ecef;
    overflow-y: auto;
    background-color: #f8f9fa;
}

.chat-messages-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
}

.chat-header h4 {
    margin-bottom: 0.25rem;
}

.chat-header .booking-details {
    font-size: 0.9rem;
    color: #6c757d;
}

.chat-header .status-badge {
    font-size: 0.8rem;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background-color: #f8f9fa;
}

.chat-message {
    margin-bottom: 1rem;
    max-width: 80%;
    clear: both;
}

.message-self {
    float: right;
}

.message-other {
    float: left;
}

.message-content {
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    position: relative;
    overflow-wrap: break-word;
}

.message-self .message-content {
    background-color: var(--highlight-color-2);
    color: white;
    border-bottom-right-radius: 0;
}

.message-other .message-content {
    background-color: white;
    border: 1px solid #e9ecef;
    border-bottom-left-radius: 0;
}

.message-admin .message-content {
    background-color: var(--accent-color);
    color: white;
}

.message-sender {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.message-time {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    opacity: 0.7;
}

.message-input-container {
    padding: 1rem;
    border-top: 1px solid #e9ecef;
    background-color: white;
}

.message-input-container form {
    display: flex;
}

.message-input-container textarea {
    flex: 1;
    border: 1px solid #ced4da;
    border-radius: 1.5rem;
    padding: 0.75rem 1rem;
    resize: none;
    min-height: 50px;
    max-height: 150px;
}

.message-input-container button {
    margin-left: 0.5rem;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thread {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: background-color 0.3s;
}

.thread:hover {
    background-color: #e9ecef;
}

.thread.active {
    background-color: var(--highlight-color-3);
    color: white;
}

.thread-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.thread-booking {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.thread.active .thread-booking {
    color: rgba(255, 255, 255, 0.8);
}

.thread-timestamp {
    font-size: 0.75rem;
    color: #6c757d;
}

.thread.active .thread-timestamp {
    color: rgba(255, 255, 255, 0.8);
}

.thread-unread-badge {
    float: right;
    margin-left: 0.5rem;
}

.new-messages-notification {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--highlight-color-1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: none;
}

.chat-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6c757d;
    text-align: center;
    padding: 2rem;
}

.chat-empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #dee2e6;
}

.list-group-item-unread {
    border-left: 4px solid var(--highlight-color-1);
}

.chat-thread-status {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

.chat-thread-status .form-check-label {
    margin-left: 0.5rem;
    font-weight: normal;
}

/* Chat on Bookings Page */
.booking-chat-button {
    margin-top: 0.5rem;
}

/* Custom Switch for Admin Thread Status */
.form-switch .form-check-input:checked {
    background-color: var(--highlight-color-1);
    border-color: var(--highlight-color-1);
}

/* Mobile Chat Layout */
@media (max-width: 767.98px) {
    .chat-container {
        flex-direction: column;
        height: auto;
    }
    
    .chat-threads {
        width: 100%;
        height: 200px;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .chat-messages-container {
        height: 500px;
    }
}

/* Responsive */
@media (max-width: 767.98px) {
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .service-card .card-img-top {
        height: 150px;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .service-detail .service-img {
        height: 250px;
    }
}