/* Custom SaaS Theme Enhancements */

/* 1. Typography & Readability */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 2. Global Borders and Radius for a modern feel */
:root {
    --bs-border-radius: 0.5rem;
    --bs-border-radius-sm: 0.375rem;
    --bs-border-radius-lg: 0.75rem;
    --bs-border-radius-xl: 1rem;
    --bs-box-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --bs-box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --bs-box-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 3. Cards */
.card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--bs-box-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: var(--bs-box-shadow);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

/* 4. Inputs & Forms */
.form-control, .form-select {
    border-color: #d1d5db;
    box-shadow: var(--bs-box-shadow-sm);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

/* 5. Buttons */
.btn {
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn:active {
    transform: scale(0.98);
}

/* 6. Tables (DataTables Overrides) */
table.dataTable {
    border-collapse: collapse !important;
}

table.dataTable thead th {
    border-bottom: 2px solid rgba(0, 0, 0, 0.05) !important;
    font-weight: 600;
    color: #4b5563;
    background-color: #f9fafb;
}

table.dataTable tbody tr {
    transition: background-color 0.15s ease;
}

table.dataTable tbody tr:hover {
    background-color: #f3f4f6 !important;
}

/* 7. Empty States */
.empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
    color: #6b7280;
}
.empty-state i {
    font-size: 3rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}
.empty-state h4 {
    font-weight: 600;
    color: #374151;
}

/* 8. SweetAlert Customization */
.sweet-alert-custom {
    border-radius: var(--bs-border-radius-lg) !important;
    box-shadow: var(--bs-box-shadow-lg) !important;
}
