/* Employee Management Styles */
.employee-container {
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.employee-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.employee-actions {
    display: flex;
    gap: 10px;
}

.employee-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
}

.employee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.employee-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.employee-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.employee-header-section {
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #45a049 100%);
    color: white;
    position: relative;
}

.employee-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid white;
    object-fit: cover;
    margin-bottom: 10px;
}

.employee-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-active {
    background: #dcfce7;
    color: #15803d;
}

.status-inactive {
    background: #fee2e2;
    color: #b91c1c;
}

.employee-info {
    padding: 15px;
}

.employee-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.employee-position {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
}

.employee-details {
    margin-top: 15px;
    display: grid;
    gap: 10px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.detail-item i {
    color: var(--primary-color);
    width: 16px;
}

.employee-actions-menu {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.action-btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.action-btn.edit-btn {
    background: #f3f4f6;
    color: var(--text-primary);
}

.action-btn.edit-btn:hover {
    background: #e5e7eb;
}

.action-btn.delete-btn {
    background: #fee2e2;
    color: #b91c1c;
}

.action-btn.delete-btn:hover {
    background: #fecaca;
}

/* Employee Form Modal */
.employee-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-full-width {
    grid-column: 1 / -1;
}

.avatar-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
}

.shift-schedule {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-top: 10px;
}

.day-item {
    text-align: center;
}

.day-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.shift-select {
    width: 100%;
    padding: 4px;
    font-size: 12px;
    border-radius: 4px;
}

/* ==================== ATTENDANCE & PAYROLL STYLES ==================== */

.attendance-container,
.payroll-container {
    padding: 20px;
}

.attendance-container h3,
.payroll-container h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.attendance-container h3 i,
.payroll-container h3 i {
    color: #667eea;
}

/* Form Styles */
.attendance-form,
.payroll-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.attendance-form .form-row,
.payroll-form .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.attendance-form .form-group,
.payroll-form .form-group {
    flex: 1;
    min-width: 150px;
}

.attendance-form label,
.payroll-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
    font-size: 13px;
}

.attendance-form input,
.attendance-form select,
.payroll-form input,
.payroll-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.attendance-form input:focus,
.attendance-form select:focus,
.payroll-form input:focus,
.payroll-form select:focus {
    border-color: #667eea;
    outline: none;
}

.attendance-form input[readonly],
.payroll-form input[readonly] {
    background: #e9ecef;
    cursor: not-allowed;
}

.form-buttons {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.btn-save,
.btn-cancel {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-save {
    background: #667eea;
    color: white;
}

.btn-save:hover {
    background: #5a67d8;
}

.btn-cancel {
    background: #6c757d;
    color: white;
}

.btn-cancel:hover {
    background: #5a6268;
}

/* List Styles */
.attendance-list,
.payroll-list {
    background: white;
    border-radius: 10px;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.list-header h4 {
    margin: 0;
    color: #333;
    font-size: 16px;
}

.list-header .filter-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.list-header .filter-group input,
.list-header .filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

/* Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table thead {
    background: #667eea;
    color: white;
}

.data-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}

.data-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

.data-table td {
    padding: 12px 15px;
}

.data-table .empty-message {
    text-align: center;
    padding: 40px !important;
    color: #999;
}

.data-table .empty-message i {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}

/* Action Buttons */
.btn-action {
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    margin-right: 5px;
    transition: all 0.2s;
}

.btn-action.btn-edit {
    background: #28a745;
    color: white;
}

.btn-action.btn-edit:hover {
    background: #218838;
}

.btn-action.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-action.btn-delete:hover {
    background: #c82333;
}

/* Salary Highlight */
.highlight-salary {
    font-size: 18px !important;
    font-weight: bold !important;
    color: #28a745 !important;
    background: #d4edda !important;
}

/* Text Colors */
.text-success {
    color: #28a745;
}

.text-danger {
    color: #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
    .employee-filters {
        flex-direction: column;
    }

    .filter-group {
        min-width: 100%;
    }

    .employee-form {
        grid-template-columns: 1fr;
    }

    .form-full-width {
        grid-column: auto;
    }
}