﻿/* HITSAIprofile-branded styles for HITS.AIprofile */
html, body {
    min-height: 100vh;
    margin: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-image: url('/Images/background-main-site.jpg');
    background-size: cover;
}

.navbar {
    border-bottom: 1px solid #e5e5e5;
    background-image: url('/Images/navimage.png');
    background-size: cover;
}

.navbar-brand {
    font-size: 1.4rem;
    color: #333 !important;
}

    .navbar-brand img {
        width: 180px;
        height: 50px;
    }

.nav-link {
    color: #fff !important;
    font-weight: 500;
    font-size: 0.95rem;
    margin-left: 1rem;
    transition: color 0.2s ease;
}

    .nav-link:hover {
        color: #0077b5 !important;
    }

    .nav-link i {
        font-size: 0.9rem;
    }

.search-bar {
    background-color: #edf3f8;
    border: none;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    width: 350px;
    font-size: 0.9rem;
}

.btn-outline-hitsaiprofile {
    color: #0077b5;
    border-color: #0077b5;
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
}

    .btn-outline-hitsaiprofile:hover {
        background-color: #0077b5;
        color: #fff;
    }

    .btn-outline-hitsaiprofile i {
        font-size: 0.9rem;
    }

.btn-nav-outline-hitsaiprofile {
    color: #fff;
    border-color: #fff;
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
}

    .btn-nav-outline-hitsaiprofile:hover {
        background-color: #0077b5;
        color: #fff;
    }

    .btn-nav-outline-hitsaiprofile i {
        font-size: 0.9rem;
    }

.btn-hitsaiprofile {
    background-color: #0077b5;
    color: #fff;
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
}

    .btn-hitsaiprofile:hover {
        background-color: #005983;
        color: #fff;
    }

    .btn-hitsaiprofile i {
        font-size: 0.95rem;
        margin-right: 0.5rem;
    }

.text-hitsaiprofile {
    color: #0077b5 !important;
    transition: color 0.2s ease;
}

    .text-hitsaiprofile:hover {
        color: #005983 !important;
    }

.form-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 450px;
    margin: 2rem auto;
}
.form-containerfull {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);

    margin: 2rem auto;
}
    .form-container h2 {
        font-size: 1.8rem;
        color: #333;
        margin-bottom: 1.5rem;
        text-align: center;
    }

.form-control:focus {
    border-color: #0077b5;
    box-shadow: 0 0 5px rgba(0,119,181,0.2);
}

.form-group {
    position: relative;
}

.form-control {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0.6rem 0.6rem 0.6rem 2.2rem;
    font-size: 0.95rem;
    line-height: 1.5;
    height: 38px;
}

.form-textarea {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0.6rem 0.6rem 0.6rem 2.2rem;
    font-size: 0.95rem;
    line-height: 1.5;
    height: 400px !important;
    width: 100% !important;
}

.form-control textarea {
    height: 400px !important;
}

.form-group i {
    position: absolute;
    left: 0.75rem;
    top: 75%;
    transform: translateY(-50%);
    color: #666;
    font-size: 0.95rem;
    line-height: 1;
}

.card-profile {
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

    .card-profile h3 {
        font-size: 1.4rem;
        color: #333;
        margin-bottom: 1rem;
    }

    .card-profile p {
        color: #666;
        font-size: 0.9rem;
    }

    .card-profile i {
        font-size: 1.2rem;
    }

.footer {
    background-color: #f3f2ef;
    color: #666;
    font-size: 0.85rem;
}

.job-card, .candidate-card {
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .job-card:hover, .candidate-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    .job-card .company-logo, .candidate-card .candidate-photo {
        width: 60px;
        height: 60px;
        object-fit: contain;
        margin-bottom: 0.5rem;
    }

    .job-card .company-logo-placeholder, .candidate-card .candidate-photo-placeholder {
        width: 60px;
        height: 60px;
        background-color: #f3f2ef;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
        color: #666;
        margin-bottom: 0.5rem;
    }

    .job-card h3, .candidate-card h3 {
        font-size: 1.2rem;
        color: #333;
        margin-bottom: 0.5rem;
    }

    .job-card .company-name, .candidate-card .candidate-title {
        font-size: 0.9rem;
        color: #666;
        margin-bottom: 0.5rem;
    }

    .job-card .job-description, .candidate-card .candidate-statement {
        font-size: 0.85rem;
        color: #666;
        margin-bottom: 1rem;
        flex-grow: 1;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .candidate-card .job-meta {
        font-size: 0.85rem;
        color: #666;
        margin-bottom: 0.5rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .job-card .btn-hitsaiprofile, .candidate-card .btn-hitsaiprofile {
        align-self: flex-start;
    }

.company-slide {
    padding: 1rem;
}

.company-card {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

    .company-card .company-logo {
        width: 60px;
        height: 60px;
        object-fit: contain;
        margin: 0 auto 0.5rem;
    }

a
.company-card .company-logo-placeholder {
    width: 60px;
    height: 60px;
    background-color: #f3f2ef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #666;
    margin: 0 auto 0.5rem;
}

.company-card h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.3rem;
}

.company-card p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #0077b5;
    border-radius: 50%;
    padding: 1rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

    .carousel-control-prev:hover .carousel-control-prev-icon,
    .carousel-control-next:hover .carousel-control-next-icon {
        background-color: #005983;
    }

.carousel-item {
    transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
}

.carousel-item-next.carousel-item-start,
.carousel-item-prev.carousel-item-end {
    transform: translateX(0);
    opacity: 1;
}

.carousel-item-next,
.carousel-item-prev.active {
    transform: translateX(100%);
    opacity: 0;
}

    .carousel-item-prev,
    .carousel-item-next.active {
        transform: translateX(-100%);
        opacity: 0;
    }

.carousel-item.active {
    transform: translateX(0);
    opacity: 1;
}

.job-details {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

    .job-details h1 {
        font-size: 2rem;
        color: #333;
        margin-bottom: 1rem;
    }

.company-info {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

    .company-info .company-logo,
    .company-info .candidate-photo {
        width: 80px;
        height: 80px;
        object-fit: contain;
        margin-right: 1rem;
    }

    .company-info .company-logo-placeholder,
    .company-info .candidate-photo-placeholder {
        width: 80px;
        height: 80px;
        background-color: #f3f2ef;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
        color: #666;
        margin-right: 1rem;
    }

    .company-info h3 {
        font-size: 1.5rem;
        color: #333;
        margin: 0;
    }

.job-details h4 {
    font-size: 1.3rem;
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.job-details p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

.job-meta {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.5rem;
}

    .job-meta i {
        margin-right: 0.5rem;
        color: #0077b5;
    }

.apply-button {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
}

.job-sidebar {
    background-color: #f3f2ef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

    .job-sidebar h4 {
        font-size: 1.2rem;
        color: #333;
        margin-bottom: 1rem;
    }

    .job-sidebar ul {
        list-style: none;
        padding: 0;
    }

    .job-sidebar li {
        font-size: 0.95rem;
        color: #666;
        margin-bottom: 0.5rem;
    }

        .job-sidebar li strong {
            color: #333;
        }

.stat-box {
    text-align: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
}

    .stat-box h4 {
        margin: 0;
        font-size: 1.5rem;
        color: #007bff;
    }

    .stat-box p {
        margin: 0.5rem 0 0;
        color: #6c757d;
    }

.application-history {
    margin-top: 1rem;
}

    .application-history th {
        background-color: #f8f9fa;
    }

    .application-history .badge {
        font-size: 0.85rem;
        padding: 0.5rem;
    }

.badge-submitted {
    /*background-color: #007bff;*/
}

.badge-under-review {
    background-color: #ffc107;
}

.badge-rejected {
    background-color: #dc3545;
}

.badge-accepted {
    background-color: #28a745;
}

.badge-secondary {
    background-color: #6c757d;
}

.card-profile form {
    max-width: 600px;
    margin: 0 auto;
}

.card-profile .form-label {
    font-weight: 500;
}

.card-profile .btn-hitsaiprofile {
    color: white;
}

    .card-profile .btn-hitsaiprofile:hover {
        background-color: #0056b3;
    }

.d-flex.gap-3 {
    gap: 1rem;
}

.form-select, .form-group {
    min-width: 150px;
}

/* New classes for SearchJobs.cshtml, SearchCandidates.cshtml, and Login.cshtml */
.search-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 15px;
}

.search-header {
    text-align: center;
    margin-bottom: 2rem;
}

    .search-header h1 {
        font-size: 2.5rem;
        color: #333;
        margin-bottom: 0.5rem;
    }

    .search-header p {
        font-size: 1.1rem;
        color: #666;
    }

.filter-section {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
    z-index: 100;
    margin-bottom: 30px;
}

.search-section {
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

    .search-section h4 {
        font-size: 1.3rem;
        color: #333;
        margin-bottom: 10px;
    }

.form-row {
    margin: 0 -15px;
    display: flex;
    flex-wrap: wrap;
}

    .form-row .form-group {
        padding: 0 15px;
    }

    .form-row .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .form-row .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .form-row .button-group {
        display: flex;
        align-items: flex-end;
    }

    .form-row .btn-outline-hitsaiprofile {
        margin-left: 10px;
    }

.job-listings, .candidate-listings {
    margin: 0 -15px;
}

    .job-listings .col-md-6, .candidate-listings .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 15px;
    }

    .job-listings .col-lg-4, .candidate-listings .col-lg-4 {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
        padding: 15px;
    }

    .job-listings .col-12, .candidate-listings .col-12 {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 15px;
    }

.alert {
    width: 90%;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    padding: 15px;
}

.alert-hidden {
    display: none;
}

.loading-spinner {
    text-align: center;
    padding: 20px;
    display: none;
}

    .loading-spinner i {
        font-size: 1.5rem;
        color: #0077b5;
    }

/* Adjust icon positioning for SearchJobs.cshtml and SearchCandidates.cshtml */
.filter-section .form-group i {
    left: calc(0.75rem + 5px);
}

/* Autocomplete styling */
.ui-autocomplete {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}

    .ui-autocomplete .ui-menu-item {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        color: #333;
        cursor: pointer;
    }

        .ui-autocomplete .ui-menu-item:hover {
            background-color: #0077b5;
            color: #fff;
        }

.toast-top-right1 {
    top: 80px;
    right: 12px;
}


.sortable:hover {
    cursor: pointer;
    background-color: #f8f9fa;
}

.sort-asc::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 5px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #333;
}

.sort-desc::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 5px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #333;
}
/* Responsive design */
@media (max-width: 992px) {
    .search-bar {
        width: 250px;
    }

    .company-card {
        padding: 0.75rem;
    }

        .company-card h3 {
            font-size: 1rem;
        }

        .company-card p {
            font-size: 0.85rem;
        }

    .job-listings .col-md-6, .candidate-listings .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .search-bar {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .btn-outline-hitsaiprofile {
        width: 100%;
        text-align: center;
    }

    .form-container {
        padding: 1.5rem;
        margin: 1rem;
    }

    .nav-link {
        margin-left: 0.5rem;
    }

    .company-card .company-logo,
    .company-card .company-logo-placeholder {
        width: 50px;
        height: 50px;
    }

    .form-row .col-md-6,
    .form-row .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .form-row .button-group {
        flex-direction: column;
        align-items: stretch;
    }

    .form-row .btn-outline-hitsaiprofile {
        margin-left: 0;
        margin-top: 10px;
    }
}

@media (max-width: 992px) {
    .job-details {
        padding: 1.5rem;
    }

    .company-info .company-logo,
    .company-info .candidate-photo,
    .company-info .candidate-photo-placeholder {
        width: 60px;
        height: 60px;
    }
}


.wizard-progress {
    margin-bottom: 2rem;
}

.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #f3f2ef;
}

.progress-bar.bg-hitsaiprofile {
    background-color: #0077b5;
    transition: width 0.3s ease-in-out;
}

.step-label {
    font-size: 0.95rem;
    color: #666;
    transition: color 0.2s ease;
}

    .step-label.active {
        color: #0077b5;
        font-weight: 500;
    }

    .step-label i {
        margin-right: 0.5rem;
    }

.wizard-step {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

    .wizard-step.active {
        display: block;
        opacity: 1;
    }

.candidate-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .candidate-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

/*.btn-hitsaiprofile {
    background-image: linear-gradient(90deg, #0077b5, #00a1d6);
}

    .btn-hitsaiprofile:hover {
        background-image: linear-gradient(90deg, #005983, #0077b5);
    }*/
.candidate-photo {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    color: #666;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.loading-spinner p {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.sort-icon {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 5px;
}

.sort-asc::after {
    content: '';
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #333;
}

.sort-desc::after {
    content: '';
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #333;
}

.candidate-photo {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
}

.pagination .page-link {
    color: #0077b5;
}

.pagination .page-item.active .page-link {
    background-color: #0077b5;
    border-color: #0077b5;
    color: white;
}

.pagination .page-link:hover {
    background-color: #e6f0fa;
}

@media (max-width: 768px) {


    .wizard-progress .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }

    .step-label {
        font-size: 0.85rem;
    }

    .btn-hitsaiprofile, .btn-outline-hitsaiprofile {
        width: 100%;
        text-align: center;
    }

    .candidate-listings table {
        display: block;
        overflow-x: auto;
    }

    .candidate-photo {
        width: 40px;
        height: 40px;
    }
    .w-100 {
        display: block;
    }
    .container {
        max-width: 1200px;
    }

    .card {
        border: 1px solid #dee2e6;
        border-radius: 0.25rem;
    }

    .card-header {
        background-color: #f8f9fa;
        font-weight: bold;
    }

    .alert-hidden {
        display: none;
    }
    .w-70, .w-30 {
        width: 100%;
    }

    .responsibility-item, .technology-item {
        display: flex;
        align-items: center;
        margin-bottom: 0.5rem;
    }

        .responsibility-item input, .technology-item input {
            flex-grow: 1;
        }
    .job-details {
        padding: 1rem;
    }
    .col-md-8, .col-md-4 {
        width: 100%;
    }
    .candidate-listings table {
        display: block;
        overflow-x: auto;
    }

    .candidate-photo {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    #PdfPreviewFrame {
        height: 300px !important;
    }

    .card-body table {
        display: block;
        overflow-x: auto;
    }

    .company-info {
        flex-direction: column;
        align-items: flex-start;
    }

        .company-info .company-logo,
        .company-info .candidate-photo,
        .company-info .candidate-photo-placeholder {
            margin-bottom: 0.5rem;
            margin-right: 0;
        }

    .job-sidebar {
        margin-top: 1rem;
    }
}
