/* KCI Employee Lookup Styles */

.kci-employee-lookup-container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.kci-header {
    background: #1e3a5f;
    color: white;
    padding: 30px;
    text-align: center;
}

.kci-header h1 {
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.kci-header p {
    opacity: 0.9;
    font-size: 16px;
    margin: 0;
}

.kci-search-section {
    padding: 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.kci-search-box {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.kci-search-input {
    flex: 1;
    min-width: 250px;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
}

.kci-search-input:focus {
    outline: none;
    border-color: #1e3a5f;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.kci-filter-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.kci-filter-item {
    display: flex;
    flex-direction: column;
}

.kci-filter-item label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}

.kci-filter-item select {
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}

.kci-filter-item select:focus {
    outline: none;
    border-color: #1e3a5f;
}

.kci-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.kci-btn-primary {
    background: #1e3a5f;
    color: white;
}

.kci-btn-primary:hover {
    background: #152a45;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 58, 95, 0.4);
}

.kci-btn-secondary {
    background: #6c757d;
    color: white;
}

.kci-btn-secondary:hover {
    background: #5a6268;
}

.kci-results-section {
    padding: 30px;
}

.kci-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.kci-results-count {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.kci-pagination {
    display: flex;
    align-items: center;
    gap: 15px;
}

.kci-btn-pagination {
    padding: 8px 16px !important;
    font-size: 14px !important;
    min-width: 100px;
}

.kci-btn-pagination:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #ccc !important;
}

.kci-page-info {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    min-width: 100px;
    text-align: center;
}

.kci-table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

table#kci-employee-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

#kci-employee-table thead {
    background: #f8f9fa;
}

#kci-employee-table th {
    padding: 8px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: #555;
    border-bottom: 2px solid #e0e0e0;
    white-space: nowrap;
}

#kci-employee-table td {
    padding: 6px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    color: #333;
}

#kci-employee-table tbody tr {
    transition: all 0.2s;
    cursor: pointer;
}

#kci-employee-table tbody tr:nth-child(even) {
    background-color: #f0f0f0;
}

#kci-employee-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

#kci-employee-table tbody tr:hover {
    background: #e8f4f8 !important;
}

.kci-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.kci-status-active {
    background: #d4edda;
    color: #155724;
}

.kci-status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.kci-status-terminated {
    background: #fff3cd;
    color: #856404;
}

.kci-modal {
    display: none;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    z-index: 999999 !important;
    animation: fadeIn 0.3s;
}

.kci-modal.kci-modal-open {
    display: block !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.kci-modal-content {
    position: absolute !important;
    right: 20px !important;
    left: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: white !important;
    max-width: 400px !important;
    width: 90% !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    animation: slideInRight 0.3s;
}

@keyframes slideInRight {
    from { transform: translate(100px, -50%); opacity: 0; }
    to { transform: translate(0, -50%); opacity: 1; }
}

.kci-modal-header {
    background: #1e3a5f;
    color: white;
    padding: 20px 30px;
    border-radius: 12px 12px 0 0;
    border-bottom: 3px solid #152a45;
}

.kci-modal-header h2 {
    font-size: 22px;
    margin: 0 0 3px 0;
    font-weight: 600;
}

.kci-modal-header p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.kci-modal-body {
    padding: 0;
}

.kci-detail-grid {
    display: block;
    background: white;
}

.kci-detail-item {
    padding: 8px 20px;
    background: white !important;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kci-detail-item:nth-child(even) {
    background: white !important;
}

.kci-detail-item:nth-child(odd) {
    background: white !important;
}

.kci-detail-item:last-child {
    border-bottom: none;
}

.kci-detail-item:hover {
    background: white !important;
}

.kci-detail-label {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin: 0;
    min-width: 180px;
}

.kci-detail-value {
    font-size: 15px;
    color: #1a1a1a;
    font-weight: 500;
    text-align: right;
    margin: 0;
}

.kci-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
}

.kci-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.kci-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

@media (max-width: 768px) {
    .kci-header h1 {
        font-size: 24px;
    }

    .kci-search-box {
        flex-direction: column;
    }

    .kci-filter-group {
        grid-template-columns: 1fr;
    }

    .kci-modal-content {
        margin: 20px;
        max-height: 95vh;
    }
}
