/* ================= EMPLOYEE LIST STYLES ================= */
.emp-header-controls { display: flex; gap: 10px; margin-bottom: 20px; align-items: center;}
.search-input { flex: 1; padding: 12px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 14px; outline: none; }
.search-input:focus { border-color: #3182ce; }
.btn-sm { padding: 10px 15px; font-size: 13px; white-space: nowrap; }

.employee-list { display: flex; flex-direction: column; gap: 15px; }
.emp-card { background: #fff; padding: 15px; border-radius: 12px; display: flex; align-items: center; gap: 15px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); cursor: pointer; transition: transform 0.2s; border: 1px solid transparent;}
.emp-card:hover { border-color: #bee3f8; }
.emp-card:active { transform: scale(0.98); }
.emp-avatar { width: 45px; height: 45px; color: white; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-weight: bold; font-size: 16px; flex-shrink: 0; }
.bg-primary { background: #3182ce; }
.bg-danger { background: #e53e3e; }
.emp-details { flex: 1; text-align: left; }
.emp-name { font-size: 15px; font-weight: 600; color: #1a202c; margin-bottom: 3px; }
.emp-role { font-size: 12px; color: #718096; margin-bottom: 4px; }
.emp-contact { font-size: 12px; color: #4a5568; font-weight: 500; }
.status-badge { font-size: 10px; padding: 4px 8px; border-radius: 12px; font-weight: 600; display: inline-block;}
.status-badge.active { background: #c6f6d5; color: #22543d; }
.status-badge.terminated { background: #fed7d7; color: #9b2c2c; }

/* ================= MODAL STYLES ================= */
.custom-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 2000; justify-content: center; align-items: center; padding: 15px; }
.custom-modal.show { display: flex; animation: fadeIn 0.2s ease-in-out; }
.modal-content { position: relative; width: 100%; max-height: 90vh; overflow-y: auto; background: #fff; border-radius: 12px; padding: 20px;}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.close-btn { font-size: 28px; cursor: pointer; color: #a0aec0; line-height: 1; }
.step-title { font-size: 15px; color: #3182ce; margin-bottom: 15px; text-align: center; border-bottom: 1px dashed #e2e8f0; padding-bottom: 10px;}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
@media (max-width: 400px) { .form-grid { grid-template-columns: 1fr; } }

/* ================= PROFILE VIEW STYLES ================= */
.prof-header { display: flex; gap: 15px; align-items: center; margin-bottom: 15px;}
.prof-avatar { width: 60px; height: 60px; border-radius: 50%; color: white; display: flex; justify-content: center; align-items: center; font-size: 22px; font-weight: bold; }
.detail-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; border-bottom: 1px dashed #edf2f7;}
.detail-row .lbl { color: #718096; font-weight: 500; }
.detail-row .val { color: #1a202c; font-weight: 600; text-align: right; word-wrap: break-word;}

.history-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 15px; margin-top: 10px; }
.history-card.new-join { background: #ebf8ff; border-color: #bee3f8; }
.hist-title { font-size: 13px; font-weight: 600; color: #4a5568; margin-bottom: 10px; text-align: center;}
.hist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hist-grid div { background: #fff; padding: 8px; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); text-align: center; }
.hlbl { display: block; font-size: 10px; color: #718096; text-transform: uppercase;}
.hval { display: block; font-size: 14px; font-weight: 700; color: #1a202c; margin-top: 3px;}
.hval.success { color: #38a169; }
.hval.danger { color: #e53e3e; }
.hval.net { color: #3182ce; font-size: 16px;}

/* ================= FACE RECOGNITION ================= */
.face-scanner-box { margin: 20px 0; padding: 20px; background: #f8fafc; border-radius: 12px; border: 1px dashed #cbd5e0; }
.scanner-frame { width: 120px; height: 120px; margin: 0 auto 15px auto; border: 3px solid #3182ce; border-radius: 50%; display: flex; justify-content: center; align-items: center; background: #ebf8ff; position: relative; overflow: hidden; }

/* ================= LEAVE MANAGEMENT ================= */
.leave-balance-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-bottom: 15px; }
.leave-tabs { display: flex; border-bottom: 2px solid #e2e8f0; margin-top: 15px;}
.leave-tab { flex: 1; background: transparent; border: none; padding: 10px; font-size: 13px; font-weight: 600; color: #718096; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: 0.3s;}
.leave-tab.active { color: #3182ce; border-bottom-color: #3182ce; }
.leave-history-list { max-height: 150px; overflow-y: auto; padding-top: 10px; }

/* ================= NEW: COMPLAINTS & NOTIFICATIONS STYLES ================= */
.comp-card { background: #fff; border: 1px solid #e2e8f0; padding: 12px; border-radius: 8px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(0,0,0,0.02); }
.comp-card.pending { border-left: 4px solid #e53e3e; }
.comp-card.replied { border-left: 4px solid #d69e2e; }
.comp-card.solved { border-left: 4px solid #38a169; }

.comp-header { display: flex; justify-content: space-between; margin-bottom: 5px; align-items: center; }
.comp-date { font-size: 10px; color: #a0aec0; }
.comp-status { font-size: 10px; font-weight: bold; padding: 2px 6px; border-radius: 4px; }
.comp-status.Pending { background: #fed7d7; color: #c53030; }
.comp-status.Replied { background: #fefcbf; color: #975a16; }
.comp-status.Solved { background: #c6f6d5; color: #22543d; }

.comp-text { font-size: 13px; color: #2d3748; margin-bottom: 8px; line-height: 1.4; }
.comp-hr-reply { background: #ebf8ff; border-left: 2px solid #3182ce; padding: 8px; font-size: 11px; color: #2a4365; border-radius: 4px; margin-top: 5px; }

.notif-item { padding: 12px; border-bottom: 1px solid #edf2f7; cursor: pointer; display: flex; flex-direction: column; gap: 4px; transition: 0.2s; }
.notif-item:hover { background: #ebf8ff; }

/* ================= ANIMATIONS ================= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
