/* Global Styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: #ffffff !important;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -100%;
        bottom: 0;
        width: 300px;
        height: 100vh;
        background-color: #ffffff;
        padding: 0;
        box-shadow: -2px 0 4px rgba(0,0,0,0.1);
        z-index: 1000;
        transition: right 0.3s ease-in-out;
        display: flex;
        flex-direction: column;
    }

    .navbar-collapse.show {
        right: 0;
    }

    .navbar-collapse::before {
        content: 'FueTime';
        color: #6b48ff;
        font-family: 'Times New Roman', Times, serif;
        font-size: 1.5rem;
        font-weight: bold;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid #eee;
        margin-bottom: 0;
        text-align: left;
        background-color: #f8f9fa;
        display: block;
        width: 100%;
    }

    .navbar-nav {
        padding: 1rem 1.5rem;
        margin: 0;
        width: 100%;
    }

    .navbar-nav .nav-item {
        margin: 0.5rem 0;
        width: 100%;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 0;
        display: block;
    }

    .navbar-nav .btn,
    .navbar-nav .nav-item {
        width: auto;
        display: inline-block;
        margin-right: 0.25rem;
    }

    .navbar-nav .nav-item:last-child,
    .navbar-nav .btn:last-child {
        margin-right: 0;
    }

    /* Login/Register button styles */
    @media (max-width: 991.98px) {
        .navbar-nav:last-child {
            display: flex;
            flex-direction: row;
            justify-content: flex-start;
            align-items: center;
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 1px solid #eee;
        }

        .navbar-nav:last-child .nav-item {
            margin: 0 0.5rem 0 0;
        }

        .navbar-nav:last-child .nav-link {
            padding: 0.5rem 1rem;
            border: 1px solid #333;
            border-radius: 4px;
            display: inline-block;
        }

        .navbar-nav:last-child .nav-link:hover {
            background-color: #f8f9fa;
        }
    }

    .navbar-toggler {
        position: relative;
        z-index: 1001;
    }

    /* Hide the main navbar brand on mobile when menu is open */
    .navbar-collapse.show + .navbar-brand {
        visibility: hidden;
    }
}

a.navbar-brand.site-title {
    font-weight: bold;
    color: #6b48ff !important;
    font-size: 1.5rem;
    text-decoration: none;
}

.navbar .nav-link {
    color: #333333 !important;
}

.navbar .btn {
    background-color: #ffffff;
    border-color: #333333;
    color: #333333;
}

.navbar .btn:hover {
    background-color: #f8f9fa;
    border-color: #000000;
    color: #000000;
}

.navbar .dropdown-toggle::after {
    color: #333333;
}

.navbar-brand img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Cards */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Profile Image */
.worker-photo img, .default-avatar {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.default-avatar {
    background-color: #e9ecef;
}

/* Online Status */
.activity-status {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: 5px;
}

.activity-status.online {
    background-color: #28a745;
    box-shadow: 0 0 5px #28a745;
}

.activity-status.offline {
    background-color: #dc3545;
    box-shadow: 0 0 5px #dc3545;
}

/* Forms */
.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: none;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0b5ed7;
}

/* Messages */
.message-bubble {
    max-width: 75%;
    border-radius: 1rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.message-sent {
    color: white;
    margin-left: auto;
}

.message-received {
    background-color: #f8f9fa;
}

/* Reviews */
.review-card {
    border-left: 4px solid #0d6efd;
    margin-bottom: 1rem;
}

/* Star Rating */
.star-rating {
    color: #ffc107;
}

/* Search Section */
.search-section {
    background-color: #f8f9fa;
    padding: 1rem 0;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Move profile section to right side on mobile */
    .navbar-nav.ms-auto {
        flex-direction: row;
        margin-right: 10px;
    }
    
    .navbar-nav.ms-auto .nav-item.dropdown {
        order: 2;
    }
    
    .navbar-nav.ms-auto .nav-item:not(.dropdown) {
        order: 1;
    }
    .worker-card {
        margin-bottom: 1rem;
    }
    
    .message-bubble {
        max-width: 85%;
    }

    /* Keep search bar on the right for mobile */
    #searchCollapse {
        right: 0 !important;
        left: auto !important;
        width: 250px !important;
        margin-right: 15px;
    }
}

/* General Styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

main {
    flex: 1;
}

.container {
    max-width: 1200px;
}

/* Card Styles */
.worker-card {
    transition: transform 0.2s;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background: white;
    border-radius: 15px;
}

.worker-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.card {
    transition: transform 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.card-footer {
    background-color: transparent;
    border-top: 1px solid rgba(0,0,0,0.125);
}

.worker-details {
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
    margin: 15px 0;
}

.detail-item {
    margin-bottom: 8px;
}

/* Button Styles */
.btn {
    transition: all 0.2s;
    padding: 0.5rem 1rem;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-outline-primary:hover {
    background-color: #0d6efd;
    color: white;
}

.btn-outline-success:hover {
    background-color: #198754;
    color: white;
}

.btn-outline-info:hover {
    background-color: #0dcaf0;
    color: white;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.action-buttons .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: all 0.3s ease;
    border-width: 2px;
}

.action-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.action-buttons .btn i {
    font-size: 1.2rem;
}

/* Photo Styles */
.worker-photo {
    width: 80px;
    height: 80px;
    position: relative;
}

.worker-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background-color: #f8f9fa;
}

.default-avatar {
    width: 80px;
    height: 80px;
    background-color: #f8f9fa;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.worker-avatar {
    width: 60px;
    height: 60px;
    background-color: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Photo Upload Styles */
.photo-upload-preview {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

.photo-upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background-color: #f8f9fa;
    border-radius: 50%;
}

.photo-upload-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.1);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
}

.photo-upload-preview:hover::before {
    opacity: 1;
}

/* Form Styles */
.form-label {
    font-weight: 500;
}

.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
}

.alert-info {
    background-color: #cff4fc;
    color: #055160;
}

/* Navbar Styles */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-brand i {
    margin-right: 0.5rem;
}

.nav-link {
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #fff;
    transition: all 0.3s;
}

.nav-link:hover:after {
    width: 100%;
    left: 0;
}

/* Footer Styles */
.footer {
    background-color: #1a1e21;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4e54c8, #8f94fb);
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer ul li {
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.footer ul li a {
    color: #adb5bd;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    position: relative;
    padding-left: 0;
}

.footer ul li a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer ul li a:hover i {
    opacity: 1;
    visibility: visible;
}

.footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: #fff;
    transition: all 0.3s ease;
}

.footer .social-links a:hover {
    background: #4e54c8;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.payment-icon {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: #4e54c8;
}

.bg-primary-soft {
    background-color: rgba(78, 84, 200, 0.1);
    transition: all 0.3s ease;
}

.bg-primary-soft:hover {
    background-color: rgba(78, 84, 200, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer {
        text-align: center;
    }
    
    .footer h5::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer ul {
        margin-bottom: 2rem;
    }
    
    .payment-methods {
        justify-content: center !important;
    }
    
    .security-badge {
        text-align: center;
        justify-content: center;
    }
}

/* Animation for links */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer .col-lg-4, 
.footer .col-lg-2, 
.footer .col-md-6 {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.footer .col-lg-4:nth-child(1) { animation-delay: 0.1s; }
.footer .col-lg-2:nth-child(2) { animation-delay: 0.2s; }
.footer .col-lg-2:nth-child(3) { animation-delay: 0.3s; }
.footer .col-lg-4:nth-child(4) { animation-delay: 0.4s; }

/* User status indicators */
.user-status {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: 5px;
    vertical-align: middle;
    position: relative;
}

.user-status.online {
    background-color: #28a745;
    box-shadow: 0 0 5px rgba(40, 167, 69, 0.5);
}

.user-status.offline {
    background-color: #6c757d;
    box-shadow: 0 0 5px rgba(108, 117, 125, 0.5);
}

.user-status::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    left: -2px;
    top: -2px;
    border: 2px solid currentColor;
    opacity: 0.3;
}

/* Pulse animation for online status */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    70% {
        transform: scale(1.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.user-status.online::after {
    animation: pulse 2s infinite;
}

footer img {
    height: 30px;
    width: auto;
    object-fit: contain;
    margin-bottom: 0.5rem;
    opacity: 0.9;
    transition: all 0.3s ease;
}

footer img:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Newsletter form */
.newsletter-form {
    position: relative;
    margin-top: 20px;
}

.newsletter-form input {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
}

.newsletter-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    background: #4e54c8;
    border: none;
    color: #fff;
    border-radius: 30px;
    padding: 0 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: #3a3f9e;
    transform: translateY(-2px);
}

/* Scrollbar styling for the footer */
.footer-logo .h4 {
    font-family: 'Times New Roman', Times, serif;
}

.footer::-webkit-scrollbar {
    width: 5px;
}

.footer::-webkit-scrollbar-track {
    background: #1a1e21;
}

.footer::-webkit-scrollbar-thumb {
    background: #4e54c8;
    border-radius: 10px;
}

.social-links a {
    font-size: 1rem;
    transition: color 0.2s;
}

.social-links a:hover {
    color: #007bff !important;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .worker-card {
        margin-bottom: 1rem;
    }
    
    .btn {
        padding: 0.375rem 0.75rem;
    }
    
    .worker-photo {
        width: 60px;
        height: 60px;
    }
    
    .default-avatar {
        width: 60px;
        height: 60px;
    }
}

/* Chat styles */
.chat-container {
    height: 80vh;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.message {
    margin-bottom: 15px;
    max-width: 70%;
}

.sent {
    margin-left: auto;
}

.received {
    margin-right: auto;
}

.message-content {
    padding: 10px;
    border-radius: 10px;
    background: #f0f0f0;
    position: relative;
}

.sent .message-content {
    background: #007bff;
    color: white;
}

.message-time {
    font-size: 0.8em;
    color: #666;
    margin-top: 5px;
}

/* Message notification */
.message-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes searchCollapse {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Notification styles */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: opacity 0.3s ease-in-out;
}

.notification.success {
    background-color: #4CAF50;
}

.notification.error {
    background-color: #f44336;
}

/* Site title styling */
.site-title {
    font-family: 'Times New Roman', Times, serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 1.5rem;
}

.navbar-brand.site-title {
    color: white !important;
    transition: opacity 0.2s;
}

.navbar-brand.site-title:hover {
    opacity: 0.9;
}

footer .site-title {
    font-size: 1rem;
    color: #333;
}

/* Profile Card Styles */
.profile-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.profile-card .card-body {
    padding: 1.5rem;
}

.profile-card img.rounded-circle {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.profile-card h5 {
    color: #2196F3;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.profile-card .text-muted {
    color: #6c757d !important;
}

.profile-card .rating {
    margin-bottom: 0.5rem;
}

.profile-card .rating i {
    color: #5a07ff;
    font-size: 0.9rem;
}

.profile-card .badge.bg-success {
    width: 8px;
    height: 8px;
    padding: 0;
    display: inline-block;
    border-radius: 50%;
    margin-left: 5px;
    vertical-align: middle;
}

.profile-card .info-box {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

.profile-card .info-box i {
    font-size: 1.5rem;
    color: #2196F3;
    margin-bottom: 0.5rem;
}

.profile-card .info-box h6 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #495057;
}

.profile-card .info-box p {
    font-size: 0.85rem;
    margin-bottom: 0;
    color: #6c757d;
}

.profile-card .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 5px;
}

.profile-card .btn-outline-primary {
    color: #2196F3;
    border-color: #2196F3;
}

.profile-card .btn-outline-success {
    color: #28a745;
    border-color: #28a745;
}

.profile-card .btn-outline-info {
    color: #17a2b8;
    border-color: #17a2b8;
}

.profile-card .btn i {
    margin-right: 5px;
}

/* Payment Modal */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    border-bottom: none;
    padding: 1.5rem 1.5rem 0.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}
/* Profile Image */
.profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Online Status Dot */
.online-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #2ecc71;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(45, 235, 124, 0.543);
    position: relative;
}

.online-status-dot.offline {
    background-color: #95a5a6;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(228, 25, 3, 0.758);
}
