/* Scoped common styles for the frontend layout */

.sticky-sidebar {
    position: sticky;
    top: 100px;
}

.job-card {
    border: 1px solid #e5e7eb;
    background: #fff;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    z-index: 1;
    padding: 1px !important;
}

.job-card:hover {
    transform: translateY(1px) scale(1.02);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15) !important;
    border-color: #0d6efd;
    z-index: 10;
}

.job-card:hover .job-title {
    color: #0d6efd;
}

.job-card .btn-download {
    border: 2px solid #0d6efd;
    color: #0d6efd;
    font-weight: 600;
    transition: all 0.3s ease;
}

.job-card .btn-download:hover {
    background-color: #0d6efd;
    color: #fff;
}

.job-card .btn-apply {
    color: #0d6efd;
    font-weight: 600;
}

.job-card .btn-apply:hover {
    text-decoration: underline;
}

.job-card:hover .badge {
    background-color: transparent;
}

.job-card i {
    font-size: 13px;
    color: #6c757d;
}

.job-card .bx-file {
    margin-top: -1px;
}

.fw-bold {
    color: black;
}

.rating-stars-svg {
    display: flex;
    flex-direction: row-reverse;
    margin-right: 55%;
    gap: 6px;
}

.rating-stars-svg input {
    display: none;
}

.rating-stars-svg label {
    width: 36px;
    height: 36px;
    cursor: pointer;
    color: #e4e4e4;
    transition: 0.2s;
}

.rating-stars-svg label svg {
    width: 100%;
    height: 100%;
}

.rating-stars-svg label:hover,
.rating-stars-svg label:hover ~ label {
    color: #f4b400;
}

.rating-stars-svg input:checked ~ label {
    color: #f4b400;
}

.star-rating {
    display: flex;
    gap: 6px;
}

.star {
    width: 24px;
    height: 24px;
    color: #e4e4e4;
}

.star.active {
    color: #f4b400;
}

.feedback-box {
    background: #f8f9fa;
    border: 1px solid #e3e6ea;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.table-button {
    width: 100%;
}

.custom-badge {
    width: 100%;
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
}

.badge-light-warning {
    background-color: #fff3cd;
    color: #856404;
}

.badge-light-scheduled {
    background-color: #edd8e9;
    color: #8f3b7f;
}

.badge-light-rescheduled {
    background-color: #f7d6bc;
    color: #994a0c;
}

.fc-disabled {
    background: #f5f5f5 !important;
    cursor: not-allowed;
}

.account-badge-dropdown {
    position: relative;
}

.account-badge {
    align-items: center;
    background: #cfe4ff;
    border: 1px solid rgba(38, 114, 210, 0.28);
    border-radius: 4px;
    color: #174f91;
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    gap: 8px;
    line-height: 1;
    max-width: 150px;
    min-height: 34px;
    padding: 7px 12px;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.account-badge:hover,
.account-badge:focus {
    background: #d9ebff;
    border-color: rgba(38, 114, 210, 0.5);
    color: #174f91;
}

.account-badge::after {
    border-top-color: currentColor;
    margin-left: 0;
}

.account-badge__avatar {
    align-items: center;
    background: #2f7bd9;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 22px;
    font-size: 12px;
    height: 22px;
    justify-content: center;
    width: 22px;
}

.account-badge__name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-badge-menu {
    border: 1px solid #e3e9f2;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
    margin-top: 8px;
    min-width: 180px;
    padding: 8px;
}

.account-badge-menu .dropdown-item {
    align-items: center;
    border-radius: 6px;
    color: #172033;
    display: flex;
    font-size: 14px;
    font-weight: 600;
    gap: 10px;
    padding: 10px 12px;
}

.account-badge-menu .dropdown-item:hover,
.account-badge-menu .dropdown-item:focus {
    background: #eef5ff;
    color: #174f91;
}

/* Password Show/Hide Toggle Styles */
.show-password-toggle {
    position: absolute;
    top: 1px;
    right: 1px;
    bottom: 1px;
    width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    color: #777;
    background: #f8f9fa;
    border-left: 1px solid #ddd;
    border-radius: 0 4px 4px 0;
    transition: all 0.3s ease;
}

.show-password-toggle:hover {
    background: #e9ecef;
    color: #333;
}

.position-relative input.form-control {
    padding-right: 55px !important;
}

/* Responsive adjustments */
@media (max-width: 575px) {
    .show-password-toggle {
        width: 40px;
    }
    .position-relative input.form-control {
        padding-right: 48px !important;
    }
}
