/**
 * Claude Custom CSS
 * @created 2026-01-13
 * @description All custom styles added by Claude
 */

/* ============================================
   HR PERSONS PAGE STYLES
   ============================================ */
.hr-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}
.hr-page-header p {
    margin: 0;
    flex: 1;
}
.btn-add-new {
    background: #42a0ae !important;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}
.btn-add-new:hover {
    background: #f7cd61 !important;
    color: #333 !important;
}
.btn.btn-add-sm {
    background: #42a0ae !important;
    color: #fff !important;
    padding: 5px 12px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none !important;
    width: auto !important;
    display: inline-block !important;
}
.btn.btn-add-sm:hover {
    background: #f7cd61 !important;
    color: #333 !important;
}
.btn.btn-add-sm i {
    font-size: 10px !important;
    margin-right: 3px;
}

/* HR Table Styles */
.hr-table {
    width: 100%;
    border-collapse: collapse;
}
.hr-table thead th {
    background: #42a0ae;
    color: #fff;
    padding: 12px 15px;
    font-weight: 500;
    font-size: 14px;
    text-align: left;
}
.hr-table tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}
.hr-table tbody tr:hover {
    background: #f8f9fa;
}

/* Status Toggle Switch */
.status-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
}
input:checked + .slider {
    background-color: #42a0ae;
}
input:checked + .slider:before {
    transform: translateX(24px);
}
.slider.round {
    border-radius: 26px;
}
.slider.round:before {
    border-radius: 50%;
}
.status-label {
    font-size: 12px;
    font-weight: 500;
}
.status-label.active {
    color: #28a745;
}
.status-label.inactive {
    color: #dc3545;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
}
.btn-edit {
    background: #42a0ae;
    color: #fff;
    border: none;
    padding: 6px 10px;
    border-radius: 5px;
}
.btn-edit:hover {
    background: #368a96;
    color: #fff;
}
.btn-delete {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 6px 10px;
    border-radius: 5px;
}
.btn-delete:hover {
    background: #c82333;
    color: #fff;
}

/* No Data Message */
.no-data-message {
    padding: 40px;
    color: #888;
}
.no-data-message i {
    font-size: 50px;
    color: #ddd;
    margin-bottom: 15px;
    display: block;
}
.no-data-message h5 {
    color: #333;
    margin-bottom: 10px;
}

/* ============================================
   MODAL STYLES (COMMON)
   ============================================ */
.modal .modal-header.bg-theme {
    background: linear-gradient(135deg, #42a0ae, #368a96);
    color: #fff;
}
.modal .modal-header.bg-theme .btn-close {
    filter: brightness(0) invert(1);
}
.modal .btn-theme-primary {
    background: #42a0ae;
    border-color: #42a0ae;
    color: #fff;
    transition: all 0.3s ease;
}
.modal .btn-theme-primary:hover {
    background: #f7cd61;
    border-color: #f7cd61;
    color: #333;
}
.modal .btn-theme-secondary {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
    transition: all 0.3s ease;
}
.modal .btn-theme-secondary:hover {
    background: #000;
    border-color: #000;
}
.modal.show .modal-body {
    padding: 25px 20px;
    min-height: 200px;
}

/* ============================================
   CALENDAR VIEW STYLES
   ============================================ */
.view-toggle-section {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}
.view-toggle {
    display: flex;
    background: #f0f0f0;
    border-radius: 8px;
    padding: 4px;
}
.view-btn {
    padding: 8px 20px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.view-btn:hover {
    color: #42a0ae;
}
.view-btn.active {
    background: #42a0ae;
    color: #fff;
}
.view-btn.active:hover {
    background: #f7cd61;
    color: #333;
}

/* Calendar Legend */
.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}
.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}
.legend-color.scheduled { background: #2196f3; }
.legend-color.confirmed { background: #4caf50; }
.legend-color.rescheduled { background: #ff9800; }
.legend-color.completed { background: #9c27b0; }
.legend-color.cancelled { background: #9e9e9e; }

/* ============================================
   INTERVIEW CARD STYLES
   ============================================ */
.interview-card {
    display: flex;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    gap: 16px;
    transition: all 0.2s;
    margin-bottom: 15px;
}
.interview-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.interview-date-box {
    min-width: 80px;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    color: #fff;
}
.interview-date-box .day {
    font-size: 28px;
    font-weight: 700;
    display: block;
}
.interview-date-box .month {
    font-size: 14px;
    text-transform: uppercase;
}
.interview-date-box .time {
    font-size: 12px;
    margin-top: 4px;
    display: block;
    opacity: 0.9;
}

/* ============================================
   EMPTY STATE STYLES
   ============================================ */
.empty-state-card {
    text-align: center;
    padding: 80px 40px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.empty-state-card .empty-state-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.empty-state-card .empty-state-icon i {
    font-size: 50px;
    color: #adb5bd;
}
.empty-state-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}
.empty-state-card p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}
.empty-state-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #42a0ae;
    color: #fff;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.empty-state-btn:hover {
    background: #f7cd61;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 160, 174, 0.3);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 768px) {
    .hr-page-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .action-buttons {
        flex-direction: column;
    }
    .interview-card {
        flex-direction: column;
    }
    .view-toggle-section {
        justify-content: center;
    }
    .empty-state-card {
        padding: 60px 20px;
    }
    .empty-state-card .empty-state-icon {
        width: 100px;
        height: 100px;
    }
    .empty-state-card .empty-state-icon i {
        font-size: 40px;
    }
}

/* ============================================
   FORM VALIDATION STYLES
   ============================================ */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545 !important;
    background-image: none;
}
.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* ============================================
   SWEETALERT CUSTOM STYLES
   ============================================ */
.swal-modal {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.swal-title {
    color: #333;
    font-size: 20px;
    font-weight: 600;
}
.swal-text {
    color: #666;
    font-size: 14px;
}
.swal-icon--warning {
    border-color: #f7cd61;
}
.swal-icon--warning__body,
.swal-icon--warning__dot {
    background-color: #f7cd61;
}
.swal-button--cancel {
    background: #dc3545;
    color: #fff;
    border-radius: 6px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.swal-button--cancel:hover {
    background: #F4F4F4 !important;
    color: #000 !important;
}
.swal-button--confirm {
    background: #42a0ae;
    color: #fff;
    border-radius: 6px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.swal-button--confirm:hover {
    background: #f7cd61 !important;
    color: #333 !important;
}
.swal-button:focus {
    box-shadow: none;
}
.swal-footer {
    text-align: center;
}
/* Success popup */
.swal-icon--success {
    border-color: #42a0ae;
}
.swal-icon--success__line {
    background-color: #42a0ae;
}
.swal-icon--success__ring {
    border-color: rgba(66, 160, 174, 0.3);
}

/* ============================================
   FEATURED CANDIDATE BADGE STYLES
   Added: 2026-01-14
   ============================================ */
/* Name wrapper for badge below name */
.name-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
/* Featured badge below name */
.featured-badge-name {
    display: inline-block;
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    width: fit-content;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}
.featured-badge-name i {
    font-size: 9px;
    margin-right: 3px;
}

/* ============================================
   JOB ALERT MODAL BUTTON STYLES
   Added: 2026-01-14
   ============================================ */
.job-alert-btn-cancel {
    background: #dc3545;
    color: #fff;
    border-radius: 6px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    transition: all 0.3s ease;
}
.job-alert-btn-cancel:hover {
    background: #F4F4F4 !important;
    color: #000 !important;
}
.job-alert-btn-submit {
    background: #42a0ae;
    color: #fff;
    border-radius: 6px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    transition: all 0.3s ease;
}
.job-alert-btn-submit:hover {
    background: #f7cd61 !important;
    color: #333 !important;
}

/* ============================================
   NO JOBS FOUND STYLES
   Added: 2026-01-14
   ============================================ */
.no-jobs-found {
    text-align: center;
    padding: 80px 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin: 0;
    width: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.no-jobs-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, rgba(66, 160, 174, 0.1), rgba(54, 138, 150, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.no-jobs-icon i {
    font-size: 40px;
    color: #42a0ae;
}
.no-jobs-found h4 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}
.no-jobs-found p {
    font-size: 15px;
    color: #666;
    margin: 0;
}

/* ============================================
   AI JOB SUGGESTIONS STYLES
   Added: 2026-01-14
   ============================================ */
.ai-suggest-btn {
    background: linear-gradient(135deg, #42a0ae, #368a96);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(66, 160, 174, 0.3);
}
.ai-suggest-btn:hover {
    background: linear-gradient(135deg, #f7cd61, #e5b84a);
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 205, 97, 0.4);
}
.ai-suggest-btn i {
    margin-right: 8px;
}
.ai-results-container {
    text-align: center;
}
.ai-results-container h5 {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    margin-bottom: 20px;
}
.ai-results-container h5 i {
    color: #f7cd61;
    margin-right: 8px;
}
.suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.suggestion-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 2px solid #42a0ae;
    color: #42a0ae;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}
.suggestion-chip:hover {
    background: #42a0ae;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 160, 174, 0.3);
}
.suggestion-chip i {
    font-size: 12px;
}
.job-count-badge {
    background: #28a745;
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 5px;
}
.job-count-badge.no-jobs {
    background: #dc3545;
}

/* Pulse animation for AI searching */
.fa-pulse {
    animation: fa-pulse 1.5s ease-in-out infinite;
}
@keyframes fa-pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

/* AI Results icon styling */
.ai-results-container .no-jobs-icon {
    background: linear-gradient(135deg, rgba(247, 205, 97, 0.2), rgba(247, 205, 97, 0.1));
}
.ai-results-container .no-jobs-icon i {
    color: #f7cd61;
}

/* ============================================
   GLOBAL PAGINATION STYLES
   Added: 2026-01-16
   ============================================ */
.pagination {
    display: flex;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
    justify-content: center;
}
.pagination .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}
.pagination .page-item .page-link:hover {
    background: #f5f5f5;
    border-color: #42a0ae;
    color: #42a0ae;
}
.pagination .page-item.active .page-link {
    background: #42a0ae;
    border-color: #42a0ae;
    color: #fff;
}
.pagination .page-item.disabled .page-link {
    background: #f9f9f9;
    color: #ccc;
    cursor: not-allowed;
}

/* ============================================
   RECOMMENDED JOBS VIEW DETAILS BUTTON
   Added: 2026-01-16
   ============================================ */
.btn-view {
    transition: all 0.3s ease !important;
}
.btn-view:hover {
    background: #f7cd61 !important;
    color: #333 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ============================================
   COMPANY DASHBOARD PAGE STYLES
   Added: 2026-02-23
   ============================================ */
.dashboard-welcome-heading {
    margin-bottom: 30px;
}
.dashboard-welcome-heading h2 {
    font-size: 32px;
    font-weight: 700;
    color: #42a0ae;
    font-style: italic;
    margin: 0;
}
.dashboard-cards-grid {
    margin: 0 -10px;
}
.dashboard-card {
    background: #f8f8f8;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    height: 100%;
    transition: all 0.3s ease;
}
.dashboard-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.dashboard-card-body {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: left;
}
.dashboard-card-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.dashboard-card-title-row h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}
.dashboard-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: #f7cd61;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}
.dashboard-card-body p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    text-align: left !important;
}
.dashboard-card-btn {
    display: inline-block;
    background: #c0392b;
    color: #fff;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
}
.dashboard-card-btn:hover {
    background: #a93226;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(192, 57, 43, 0.3);
}

@media (max-width: 768px) {
    .dashboard-welcome-heading h2 {
        font-size: 24px;
    }
    .dashboard-card-body {
        padding: 20px 18px;
    }
    .dashboard-card-title-row h4 {
        font-size: 16px;
    }
}
