* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

.btn.main-primary-color {
    background-color: #5E17EB;
    color: #ffffff;
}

.main-primary-color {
    background-color: #5E17EB;
    color: #ffffff;
}

.main-menu-text-color {
    color: #5E17EB;
}

/* Sidebar */
.sidebar {
    width: 250px;
    height: 100vh;
    background: #ffffff;
    color: #000;
    padding: 20px;

    position: fixed;
    left: 0;
    top: 0;
    z-index: 99999999999999;

    overflow-y: auto;   /* enable vertical scrolling */
    overflow-x: hidden; /* prevent horizontal scroll */

    transition: all 0.3s ease-in-out;
}


.sidebar h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #000; /* ensure heading is dark */
}

.nav-item {
    padding-top: 4px;
}

.nav-link {
    font-size: 18px;
    padding: 10px;
    transition: 0.2s;
    color: #000; /* default text color */
}

.nav-link.active:hover {
    background-color: #5E17EB;
    color: white !important;
    border-radius: 5px;
}

.nav-link.active {
    background-color: #5E17EB;
    color: #fff !important;
    border-radius: 5px;
}

.nav-link.tab-nav-link.active {
    background-color: #5E17EB;
    border-radius: 5px;
}

/* Hover effect */
.nav-link:hover {
    background: rgba(94, 23, 235, 0.1);
    border-radius: 5px;
    color: #5E17EB;
}

/* Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-left: 250px;
    min-height: 100vh;
    background: #F5F6FA;
    transition: margin-left 0.3s ease-in-out;
    width: calc(100% - 250px);
}

/* Modal dialog position adjustment */
.modal {
    z-index: 9999999999999997;  /* Ensure the modal is above the content */
}

/* Overlay background */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Darker transparency */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999999999999999;
    transition: opacity 0.3s ease-in-out;
}

/* Fade in/out effect */
.loading-overlay.d-none {
    opacity: 0;
    visibility: hidden;
}

/* Loader container */
.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 9999999999999999;
}

/* Spinner animation */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 9999999999999999;
}

.loading-text {
    font-size: 20px;
    font-weight: bold;
    color: white;
    margin-top: 10px;
    animation: fadeText 1.5s infinite alternate;
    z-index: 9999999999999999;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fadeText {
    from { opacity: 1; }
    to { opacity: 0.5; }
}

.swal2-container {
    z-index: 9999999999999998 !important;
}
.toast-container{
    z-index: 9999999999999998 !important;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}
.content {
    flex: 1;
    padding: 20px;
}
.card-custom {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}
.footer {
    background: white;
    padding: 10px;
    text-align: center;
    box-shadow: 0px -4px 10px rgba(0, 0, 0, 0.1);
}
/* Sidebar Toggle */
.collapsed {
    transform: translateX(-100%);
}
.main-content.collapsed {
    margin-left: 0;
    width: 100%;
}
/* Mobile Sidebar */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.active {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
        width: 100%;
    }
}

.search-box {
    max-width: 400px;
    margin-bottom: 20px;
}

/* Job Container */
.job-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
}

.job-card {
    flex: 1 1 calc(25% - 20px); 
    max-width: calc(25% - 20px);
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 15px;
    background: #fff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: visible; 
    z-index: 1;
}

.profile-logo-image {
    position: absolute;
    bottom: 10px;
    right: 5px;
    width: 40px; /* Adjust size as needed */
    height: 40px;
    object-fit: contain; /* Keeps logo aspect ratio */
    border-radius: 50%; /* Optional: circular logos */
    background: #fff; /* Optional: white background behind logo */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); /* Optional: subtle shadow */
    z-index: 2;
}

@keyframes glowing-border {
    0% {
        box-shadow: 0 0 8px rgba(0, 123, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 16px rgba(0, 123, 255, 1);
    }
    100% {
        box-shadow: 0 0 8px rgba(0, 123, 255, 0.4);
    }
}

.job-card.has-hires {
    border: 1px solid rgba(0, 123, 255, 0.8);
    animation: glowing-border 2s infinite ease-in-out;
}

.applicant-count-ribbon {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #5E17EB;
    color: white;
    font-weight: bold;
    font-size: 14px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.badge-days-left {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: #808080;
    color: #fff;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
}

.vapi-assistant {
    position: absolute;
    color: #5E17EB;
    bottom: 10px;
    right: 10px;
    z-index: 10;
    font-size: 1rem;
}

.job-card.is-featured {
    border: 1px solid #22c55e; /* emerald green */
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
    animation: featuredPulse 2s infinite;
}

.featured-ribbon {
    position: absolute;
    top: -18px;
    left: -8px;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    z-index: 15;
    letter-spacing: 0.5px;
}

@keyframes featuredPulse {
    0% { box-shadow: 0 0 10px rgba(34, 197, 94, 0.5); }
    50% { box-shadow: 0 0 18px rgba(34, 197, 94, 0.9); }
    100% { box-shadow: 0 0 10px rgba(34, 197, 94, 0.5); }
}

.job-card.is-featured {
    animation: featuredPulse 2.5s infinite ease-in-out;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.job-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.total-applicants {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 0;
}

.business-name {
    font-size: 1rem;
    color: #007bff;
    font-weight: 600;
    margin-bottom: 10px;
}

.job-description {
    color: #666;
    font-size: 0.9rem;
    flex-grow: 1;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.btn-view-candidates {
    position: absolute;
    bottom: 10px;
    right: 10px;
}
/* Action Buttons */
/*
.job-actions {
    position: absolute;
    top: 10px;
    right: 5px;
    display: flex;
    gap: 10px;
}
*/

.job-actions .dropdown-menu {
    z-index: 1050; /* higher than most Bootstrap elements */
}

.btn-action {
    border: none;
    background: none;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.btn-edit {
    color: #28a745;
}

.btn-edit:hover {
    color: #218838;
}

.btn-delete {
    color: #dc3545;
}

.btn-delete:hover {
    color: #c82333;
}

.btn-star i {
    color: black;
    transition: color 0.3s ease-in-out;
}

.btn-star.active i {
    color: rgb(255, 217, 0);
}

@media (min-width: 1025px) {
    .job-container:has(.job-card:nth-child(-n+3):last-child) {
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    .job-card {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .job-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.pagination .page-item.active .page-link {
    background-color: #5E17EB; /* Bootstrap 'danger' red */
    border-color: #5E17EB;
    color: white;
}

.pagination .page-link {
    color: #5E17EB; /* Red text */
}

.pagination .page-link:hover {
    background-color: #5E17EB; /* Darker red on hover */
    border-color: #5E17EB;
    color: white;
}

.video-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.video-controls {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 10px;
}

/* Show controls when hovering */
.video-card:hover .video-controls {
    opacity: 1;
}

/* Ensure the controls don't interfere with clicks */
.video-controls .play-icon, 
.video-controls .pause-icon {
    cursor: pointer;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
    border-radius: 50%;
    color: white;
}

.play-icon, .pause-icon {
    background: rgba(0, 0, 0, 0.6);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    transition: 0.3s;
    cursor: pointer;
}

.video-card:hover .play-icon,
.video-card:hover .pause-icon {
    background: rgba(0, 0, 0, 0.8);
}

.pause-icon {
    display: none;
}

.info-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 2), transparent);
}

.info-overlay h6, .info-overlay p {
    margin: 0;
}

/* View Button Styling */
.approve-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 14px;
    color: green;
}
.view-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.3s;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    border: 2px solid #f1f1f1;
    border-radius: 8px;
    padding: 30px;
    background-color: #fff;
    margin-bottom: 30px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    text-align: center;
    /* Centers all text by default */
    transition: all 0.3s ease-in-out;
    /* Smooth transition for hover effect */
}

.inactive-card {
    filter: grayscale(80%);
    pointer-events: none;
    position: relative;
}
.inactive-card .badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Hover effect */
.pricing-card:hover {
    transform: translateY(-10px);
    /* Lift the card */
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
    /* Increased shadow for hover */
    background-color: #f9f9f9;
    /* Subtle background change on hover */
}

.pricing-card h3 {
    font-size: 30px;
    color: #5E17EB;
    margin-bottom: 10px;
    text-align: center;
    /* Ensure title is centered */
}

.pricing-card p {
    font-size: 20px;
    color: #5E17EB;
    margin-bottom: 30px;
    text-align: center;
    /* Center price */
}

.pricing-card ul {
    list-style-type: none;
    padding: 0;
    margin-bottom: 20px;
    flex-grow: 1;
    /* Makes the list items grow to take available space */
    text-align: left;
    /* Ensure list items align to the left */
}

.pricing-card ul li {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    text-align: left;
    padding-left: 30px;
    position: relative;
}

.pricing-card ul li::before {
    content: '\2713';
    /* Checkmark character */
    position: absolute;
    left: 0;
    top: 0;
    color: #2ecc71;
    font-size: 20px;
}

.pricing-card .btn {
    padding: 10px 20px;
    background-color: #34495e;
    /* Dark button color */
    color: #fff;
    border: none;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.pricing-card .small-text {
    font-size: 12px;
    color: #777;
    display: block;
    text-align: center;
    /* Center small text */
}

.pricing-card h5 {
    margin-top: 20px;
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

.pricing-card .additional-services ul {
    margin-left: 20px;
}

/* Ensures equal height for all cards */
.pricing-card-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.credit-info {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    width: 100%;
    /* Full width */
}

.credit-summary p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.credit-value {
    font-size: 18px;
    font-weight: bold;
    margin-left: 5px;
}

.credit-value i {
    margin-right: 8px;
}

.credit-details {
    background-color: #fff;
    padding: 10px;
    margin-top: 10px;
    border-radius: 6px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
}

.credit-note {
    font-size: 14px;
    color: #555;
    display: block;
    margin-bottom: 8px;
}

.credit-note {
    font-size: 14px;
    color: #555;
    display: block;
    margin-bottom: 8px;
}

/* Styling for Icons */
.credit-info i {
    font-size: 18px;
    color: #34495e;
}

.credit_amount {
    color: green;
    font-weight: bold;
    font-size: 24px;
}

.price {
    font-size: 22px;
    color: #333;
    font-weight: bold;
}

/* Center the tab navigation */
.tab-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

.custom-tab {
    display: inline-flex;
    border-radius: 20px;
    background: #f1f1f1;
    padding: 5px;
}

.custom-tab button {
    border: none;
    background: transparent;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    color: #888;
}

.custom-tab button.active {
    background: #5E17EB;
    color: #fff;
}

.profile-cover-container {
    position: relative;
    height: 300px;
}

.profile-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-pic-container {
    position: absolute;
    bottom: -30px;
    left: 30px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid white;
    width: 180px;
    height: 180px;
    z-index: 10;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
}

.profile-pic-container:hover {
    transform: scale(1.1);
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .profile-cover-container {
        position: relative;
        text-align: center;
    }

    .profile-pic-container {
        left: 50%;
        transform: translateX(-50%);
    }
}

#transcript-card .card-body {
    max-height: 600px; 
    overflow-y: auto;
    padding-right: 10px;
    font-size: 14px;
    line-height: 1.6;
}

#analysis-card .card-body {
    max-height: 600px; 
    overflow-y: auto;
    padding-right: 10px;
    font-size: 14px;
    line-height: 1.6;
}

.message {
    margin-bottom: 10px;
    padding: 5px;
    border-radius: 5px;
    background-color: #f8f9fa;
}

.section-card {
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    background-color: #fff;
}

.info-label {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.info-label i {
    color: #5E17EB;
    margin-right: 0.5rem;
}

.info-text {
    margin-bottom: 1.5rem;
    color: #212529;
}

.question-item-info {
    background-color: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    border-left: 4px solid #0d6efd;
}

.bg-purple {
    background-color: #6f42c1 !important; /* Bootstrap’s “indigo” shade */
    color: #fff !important;
}

.contract-header {
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    color: white;
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.contract-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(50%, -50%);
}


.contract-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.freelancer-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

.section-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.badge-status {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
    border-radius: 50px;
}

.freelancer-card {
    border-radius: 20px;
    border: 1px solid rgba(220, 220, 220, 0.55);
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 20px;
    transition: 0.28s ease;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.freelancer-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.85);
}

.freelancer-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, #007bff, #00d4ff);
    border-radius: 20px 0 0 20px;
    opacity: 0.8;
}

.freelancer-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.freelancer-avatars {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e9eef5;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: #5a5a5a;
    border: 1px solid #d7dce2;
}

.freelancer-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff3b57;
    padding: 7px 11px;
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(255, 59, 87, 0.4);
}

.freelancer-info p {
    margin: 0 0 6px 0;
    font-size: 0.92rem;
    color: #555;
}

.freelancer-info strong {
    color: #333;
}

/* Existing Styles */
#chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
}

#chatbot-toggle {
    width: 60px;
    height: 60px;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#chatbot-box {
    width: min(80vw, 22rem);   /* Responsive but capped */
    height: min(70vh, 28rem);  /* Responsive but capped */
    display: none;
    flex-direction: column;
    border-radius: 1rem;
    overflow: hidden;
    transform: translateY(1.25rem);
    opacity: 0;
    transition: all 0.35s ease;
}

#chatbot-box.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

#chatbot-box.hide {
    opacity: 0;
    transform: translateY(20px);
}

#chatbot-messages {
    height: 300px;
    overflow-y: auto;
    background-color: #f8f9fa;
}

.chat-message {
    margin-bottom: 10px;
}

.chat-message.user {
    text-align: right;
}

.chat-message.bot {
    text-align: left;
}

.chat-bubble {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 15px;
    max-width: 80%;
}

.chat-message.user .chat-bubble {
    background-color: #0d6efd;
    color: white;
}

.chat-message.bot .chat-bubble {
    background-color: #e9ecef;
    color: #333;
}

/* New Styles for Typing Indicator */

/* Typing indicator styles */
.chat-message.bot.typing .chat-bubble {
    font-style: italic;
    color: #888;
    position: relative;
    padding-right: 20px; /* Space for the dots */
}

/* Typing dots animation */
.chat-message.bot.typing .chat-bubble::after {
    content: '.';
    position: absolute;
    right: 5px;
    animation: typing 1.5s infinite steps(3, end); /* Animates the typing effect */
}

/* Keyframes for typing effect (three dots animation) */
@keyframes typing {
    0% { content: '.'; }
    33% { content: '..'; }
    66% { content: '...'; }
    100% { content: '.'; }
}
