/* Custom Styles for CRUD App */

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.card {
    border: none;
    border-radius: 10px;
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    padding: 1rem 1.5rem;
}

.employee-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #dee2e6;
}

.table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table td {
    vertical-align: middle;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    margin: 0 2px;
}

/* Form Styles */
.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.custom-file-label::after {
    background-color: #e9ecef;
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
}

/* Image Preview */
#imagePreview img {
    border: 2px dashed #dee2e6;
    padding: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .employee-img {
        width: 45px;
        height: 45px;
    }

    .card-header h3 {
        font-size: 1.2rem;
    }

    .table {
        font-size: 0.9rem;
    }
}

/* SweetAlert Customization */
.swal2-popup {
    border-radius: 15px !important;
}

.swal2-title {
    font-size: 1.5rem !important;
}

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

.card {
    animation: fadeIn 0.4s ease-out;
}

/* Hover effects for table rows */
.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}
