/* ==========================================================================
   Premium UI Overlay for ERP
   ========================================================================== */

/* Typography */
body {
    font-family: 'Inter', sans-serif !important;
    background-color: #f4f6f9;
    color: #333;
}

h1, h2, h3, h4, h5, h6, .page-title, .ibox-title {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    color: #2c3e50;
}

/* Sidebar Styling */
.page-sidebar {
    background-color: #1a2226 !important;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    position: fixed !important;
    height: 100vh !important;
}

#sidebar-collapse {
    height: calc(100vh - 60px) !important;
    overflow-y: auto !important;
}

/* Hide scrollbar but keep functionality for a cleaner look if desired */
#sidebar-collapse::-webkit-scrollbar {
    width: 6px;
}
#sidebar-collapse::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.side-menu > li > a {
    color: #b8c7ce !important;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.side-menu > li > a:hover, .side-menu > li.active > a {
    background-color: #1e282c !important;
    color: #ffffff !important;
    border-left: 3px solid #3498db;
}

/* Ensure the last items are reachable when scrolling */
.side-menu {
    padding-bottom: 100px !important;
}

.admin-block {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #fff;
    padding: 20px 15px;
    border-bottom: 1px solid #1a2226;
}

.admin-block .font-strong {
    color: #ecf0f1;
}

/* Header & Navbar */
.header {
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.page-brand {
    background: linear-gradient(135deg, #2980b9, #3498db) !important;
    color: #fff !important;
}

.page-brand .link {
    color: #ffffff !important;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Dashboard Cards (ibox) */
.ibox {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
    overflow: hidden;
}

.ibox:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.ibox-head {
    border-bottom: 1px solid #f1f2f6;
    padding: 15px 20px;
    background-color: #fff;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.ibox-body {
    padding: 20px;
}

/* Widget Stat Cards (Gradients) */
.widget-stat.bg-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
}

.widget-stat.bg-info {
    background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%) !important;
}

.widget-stat.bg-warning {
    background: linear-gradient(135deg, #f2994a 0%, #f2c94c 100%) !important;
}

.widget-stat.bg-danger {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%) !important;
}

.widget-stat {
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border: none;
    color: #fff;
    transition: transform 0.3s ease;
}

.widget-stat:hover {
    transform: translateY(-5px) scale(1.02);
}

.widget-stat .font-strong {
    font-weight: 700;
    font-size: 28px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* Modern Tables */
.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #495057;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    border-top: none;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 12px 15px;
}

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

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

.table tbody td {
    padding: 15px;
    vertical-align: middle;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.table-compact thead th {
    padding: 8px 12px !important;
    font-size: 11px !important;
}

.table-compact tbody td {
    padding: 6px 12px !important;
    font-size: 12px !important;
}

/* Buttons */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 20px;
}

.btn-info {
    background: linear-gradient(135deg, #2980b9, #3498db);
    border: none;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.btn-info:hover {
    background: linear-gradient(135deg, #3498db, #2980b9);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
    transform: translateY(-1px);
}

/* Custom Scrollbar for Sidebar */
.scroller::-webkit-scrollbar {
    width: 6px;
}
.scroller::-webkit-scrollbar-track {
    background: #1a2226;
}
.scroller::-webkit-scrollbar-thumb {
    background: #34495e;
    border-radius: 3px;
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Premium Pagination */
.pagination-premium table {
    margin: 20px 0;
}

.pagination-premium td {
    padding: 0 5px;
}

.pagination-premium a, .pagination-premium span {
    display: block;
    padding: 8px 14px;
    border-radius: 6px;
    background: #fff;
    color: #3498db;
    border: 1px solid #e1e8ed;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
}

.pagination-premium a:hover {
    background: #f8f9fa;
    border-color: #3498db;
    transform: translateY(-1px);
}

.pagination-premium span {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}
