/* Modern UI Overrides for SiKeBuT */

:root {
    --primary: #4e73df;
    --primary-dark: #224abe;
    --secondary: #858796;
    --success: #1cc88a;
    --info: #36b9cc;
    --warning: #f6c23e;
    --danger: #e74a3b;
    --light: #f8f9fc;
    --dark: #5a5c69;
    --bg-body: #f8f9fc;
    --card-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    --hover-shadow: 0 0.5rem 2rem 0 rgba(58, 59, 69, 0.25);
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-body);
}

/* Sidebar Styling */
.sidebar {
    background: linear-gradient(180deg, #4e73df 10%, #224abe 100%);
    box-shadow: 4px 0 24px rgba(0,0,0,0.1);
}

.sidebar .nav-item .nav-link {
    transition: all 0.2s ease;
    border-radius: 0 25px 25px 0;
    margin-right: 15px;
    padding-left: 1.5rem;
}

.sidebar .nav-item .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.sidebar .nav-item.active .nav-link {
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.sidebar .nav-item.active .nav-link i {
    color: var(--primary);
}

/* Card Improvements */
.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #e3e6f0;
    padding: 1rem 1.5rem;
    border-top-left-radius: 0.75rem !important;
    border-top-right-radius: 0.75rem !important;
}

/* Buttons */
.btn {
    border-radius: 0.35rem;
    font-weight: 600;
    padding: 0.375rem 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-icon-split .icon {
    background: rgba(0,0,0,0.15);
}

/* Table Styling */
.table thead th {
    background-color: #f8f9fc;
    color: var(--primary);
    border-bottom: 2px solid #e3e6f0;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.table-hover tbody tr:hover {
    background-color: rgba(78, 115, 223, 0.05);
}

/* Status Rows - High Specificity for DataTables */
table.dataTable tbody tr.row-status-green,
table.dataTable tbody tr.row-status-green > .sorting_1,
table.dataTable tbody tr.row-status-green > td {
    background-color: rgba(28, 200, 138, 0.2) !important; /* Green */
    color: #000 !important;
}

table.dataTable tbody tr.row-status-red,
table.dataTable tbody tr.row-status-red > .sorting_1,
table.dataTable tbody tr.row-status-red > td {
    background-color: rgba(231, 74, 59, 0.2) !important; /* Red */
    color: #000 !important;
}

table.dataTable tbody tr.row-status-yellow,
table.dataTable tbody tr.row-status-yellow > .sorting_1,
table.dataTable tbody tr.row-status-yellow > td {
    background-color: rgba(246, 194, 62, 0.3) !important; /* Yellow */
    color: #000 !important;
}

/* Select2 Customization */
.select2-container .select2-selection--single {
    height: 42px !important;
    border: 1px solid #d1d3e2;
    border-radius: 0.35rem;
    padding: 6px 12px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 28px !important;
    color: #6e707e;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #bac8f3;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

/* Fix Input Group Height Match */
.input-group .form-control {
    height: 42px;
}

.input-group-text {
    height: 42px;
}

/* Login Page Specific */
.bg-login-image {
    background-position: center;
    background-size: cover;
}

.login-card {
    border-radius: 1rem;
    overflow: hidden;
}

/* Form Controls */
.form-control {
    border-radius: 0.35rem;
    padding: 0.75rem 1rem;
    height: auto;
    border: 1px solid #d1d3e2;
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
    border-color: #bac8f3;
}

/* Animations */
.animated--grow-in {
    animation-duration: 0.3s;
}
