/* public/css/custom.css */
.cedvNn {
    background: rgb(243, 245, 249);
    height: 48px;
    display: flex;
    max-width: 100%;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    border-radius: 5px;
    border: 1px solid #ced4da;
}

.cedvNn pre {
    margin: 0;
    font-size: 16px;
}

.cedvNn button {
    background: none;
    border: none;
    cursor: pointer;
}

.cedvNn button i {
    font-size: 20px;
    color: #000; /* Ensure the icon is visible */
}

.token-concealed {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.bg-light-danger {
    background-color: #f8d7da !important; /* Light red */
    color: #721c24 !important; /* Darker red for text */
}

.bg-light-warning {
    background-color: #fff3cd !important; /* Light yellow */
    color: #856404 !important; /* Darker yellow for text */
}

.bg-light-success {
    background-color: #d4edda !important; /* Light green */
    color: #155724 !important; /* Darker green for text */
}

.bg-light-success,
.bg-light-danger,
.bg-light-warning {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.75rem;
    border-radius: 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    width: auto; /* Adjusts the width to fit the text content */
}

.date-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: #f0f4f8; /* Light background for better readability */
    color: #495057; /* Neutral, readable text color */
    border: 1px solid #d1d9e6; /* Subtle border for outline effect */
    white-space: nowrap;
}

.badge-success-light {
    background-color: rgba(72, 180, 97, 0.15); /* Light green background */
    color: #48b461; /* Green text color */
    border-radius: 20px;
    padding: 5px 10px;
    display: inline-flex;
    align-items: center;
}

.badge-warning-light {
    background-color: rgba(255, 193, 7, 0.15); /* Light yellow background */
    color: #ffc107; /* Yellow text color */
    border-radius: 20px;
    padding: 5px 10px;
    display: inline-flex;
    align-items: center;
}

.badge-warning-light i,
.badge-success-light i {
    margin-right: 5px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-badge--success {
    background-color: rgba(72, 180, 97, 0.15); /* Light green background */
    color: #48b461; /* Green text */
}

.status-badge--warning {
    background-color: rgba(255, 193, 7, 0.15); /* Light yellow background */
    color: #ffc107; /* Yellow text */
}

.status-badge i {
    margin-right: 5px;
}

/* Badge styles */

/* Termination Rating Styles */
.performance-rating {
    margin: 20px 0;
}

.rating-category {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.rating-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.rating-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rating-btn {
    padding: 8px 16px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.rating-btn:hover {
    border-color: #007bff;
    background-color: #f0f8ff;
}

.rating-btn.active {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.rating-btn.active:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Color coding for different ratings */
.rating-btn[data-rating="1"].active {
    background-color: #dc3545;
    border-color: #dc3545;
}

.rating-btn[data-rating="2"].active {
    background-color: #fd7e14;
    border-color: #fd7e14;
}

.rating-btn[data-rating="3"].active {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.rating-btn[data-rating="4"].active {
    background-color: #28a745;
    border-color: #28a745;
}

.rating-btn[data-rating="5"].active {
    background-color: #20c997;
    border-color: #20c997;
}

.deactivation-type-section {
    margin-bottom: 25px;
}

.type-option {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.type-option:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.type-option.selected {
    border-color: #007bff;
    background-color: #e3f2fd;
}

.type-option input[type="radio"] {
    margin-right: 10px;
}

.termination-feedback {
    margin-top: 20px;
    padding: 20px;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
}

.feedback-required {
    color: #856404;
    font-weight: 500;
    margin-bottom: 15px;
}

.notes-section {
    margin-top: 20px;
}

.rating-display {
    margin: 10px 0;
}

.star-rating {
    font-size: 1.2em;
}

.star-rating i {
    margin: 0 2px;
}

.performance-ratings-section .card {
    transition: transform 0.2s ease-in-out;
}

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

/* ENHANCED PRINT STYLES FOR COLORFUL OUTPUT */
@media print {
    /* Force color printing */
    *,
    *::before,
    *::after {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body {
        print-color-adjust: exact !important;
        background: white !important;
    }

    /* Hide modal chrome but keep content colorful */
    .modal-header,
    .modal-footer {
        display: none !important;
    }

    .modal-dialog {
        max-width: 100% !important;
        margin: 0 !important;
    }

    .modal-content {
        border: none !important;
        box-shadow: none !important;
    }

    /* Ensure badges keep their colors in print */
    .badge {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        print-color-adjust: exact !important;
        font-weight: 600 !important;
        padding: 6px 12px !important;
        border-radius: 15px !important;
    }

    .badge.bg-danger,
    .badge.badge-danger {
        background-color: #dc3545 !important;
        color: white !important;
    }

    .badge.bg-warning,
    .badge.badge-warning {
        background-color: #ffc107 !important;
        color: #212529 !important;
    }

    .badge.bg-success,
    .badge.badge-success {
        background-color: #28a745 !important;
        color: white !important;
    }

    .badge.bg-info,
    .badge.badge-info {
        background-color: #17a2b8 !important;
        color: white !important;
    }

    .badge.bg-primary,
    .badge.badge-primary {
        background-color: #007bff !important;
        color: white !important;
    }

    /* Ensure cards keep their colored borders */
    .card.border-danger {
        border-color: #dc3545 !important;
        border-width: 2px !important;
    }

    .card.border-warning {
        border-color: #ffc107 !important;
        border-width: 2px !important;
    }

    .card.border-success {
        border-color: #28a745 !important;
        border-width: 2px !important;
    }

    .card.border-info {
        border-color: #17a2b8 !important;
        border-width: 2px !important;
    }

    /* Card headers with colors */
    .card-header.bg-danger {
        background-color: #dc3545 !important;
        color: white !important;
    }

    .card-header.bg-warning {
        background-color: #ffc107 !important;
        color: #212529 !important;
    }

    .card-header.bg-success {
        background-color: #28a745 !important;
        color: white !important;
    }

    .card-header.bg-info {
        background-color: #17a2b8 !important;
        color: white !important;
    }

    /* Alert colors for print */
    .alert {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .alert-danger {
        background-color: #f8d7da !important;
        border-color: #f5c6cb !important;
        color: #721c24 !important;
    }

    .alert-warning {
        background-color: #fff3cd !important;
        border-color: #ffeaa7 !important;
        color: #856404 !important;
    }

    .alert-success {
        background-color: #d4edda !important;
        border-color: #c3e6cb !important;
        color: #155724 !important;
    }

    .alert-info {
        background-color: #d1ecf1 !important;
        border-color: #bee5eb !important;
        color: #0c5460 !important;
    }

    .alert-light {
        background-color: #fefefe !important;
        border-color: #fdfdfe !important;
        color: #818182 !important;
    }

    /* FIXED: Star rating colors for print - More specific selectors */
    .star-rating {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .star-rating .bi-star-fill {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Use specific color values instead of color classes for print reliability */
    .star-rating .bi-star-fill.text-danger,
    .star-rating i.text-danger {
        color: #dc3545 !important;
    }

    .star-rating .bi-star-fill.text-warning,
    .star-rating i.text-warning {
        color: #ffc107 !important;
    }

    .star-rating .bi-star-fill.text-success,
    .star-rating i.text-success {
        color: #28a745 !important;
    }

    .star-rating .bi-star-fill.text-info,
    .star-rating i.text-info {
        color: #17a2b8 !important;
    }

    .star-rating .bi-star-fill.text-primary,
    .star-rating i.text-primary {
        color: #007bff !important;
    }

    .star-rating .bi-star.text-muted,
    .star-rating i.text-muted {
        color: #6c757d !important;
    }

    /* Alternative approach - use attribute-based selectors for more reliability */
    .star-rating i[class*="text-danger"] {
        color: #dc3545 !important;
    }

    .star-rating i[class*="text-warning"] {
        color: #ffc107 !important;
    }

    .star-rating i[class*="text-success"] {
        color: #28a745 !important;
    }

    .star-rating i[class*="text-info"] {
        color: #17a2b8 !important;
    }

    .star-rating i[class*="text-primary"] {
        color: #007bff !important;
    }

    .star-rating i[class*="text-muted"] {
        color: #6c757d !important;
    }

    /* Force print colors for all text color classes */
    .text-danger,
    .text-danger * {
        color: #dc3545 !important;
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .text-warning,
    .text-warning * {
        color: #ffc107 !important;
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .text-success,
    .text-success * {
        color: #28a745 !important;
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .text-info,
    .text-info * {
        color: #17a2b8 !important;
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .text-primary,
    .text-primary * {
        color: #007bff !important;
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .text-muted,
    .text-muted * {
        color: #6c757d !important;
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Background colors */
    .bg-light {
        background-color: #f8f9fa !important;
    }

    .bg-secondary {
        background-color: #6c757d !important;
    }

    /* Icons should maintain color with more specific targeting */
    .bi,
    i[class*="bi-"] {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Performance ratings section specific fixes */
    .performance-ratings-section {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .performance-ratings-section .card-body {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Ensure rating display badges print with colors */
    .rating-display .badge {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        print-color-adjust: exact !important;
        font-weight: bold !important;
    }

    /* Page break controls */
    .no-break {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .page-break {
        page-break-before: always;
    }
}

/* Screen-only enhancements for better preview */
@media screen {
    .modal-dialog.modal-lg {
        max-width: 800px;
    }

    .badge {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .card {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }

    .star-rating i {
        transition: all 0.2s ease;
    }

    .star-rating i:hover {
        transform: scale(1.1);
    }
}

/* at the very bottom of custom.css */
@media print {
  .rating-title {
    color: #6c757d !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

