/* Global Typography & Font Sizes (Admin Dashboard Defaults) */
body {
    font-size: 14px !important;
    line-height: 1.5;
}

h1 { font-size: 28px !important; }
h2 { font-size: 24px !important; }
h3 { font-size: 20px !important; }
h4 { font-size: 18px !important; }
h5 { font-size: 16px !important; }
h6 { font-size: 14px !important; }

p,
a,
button,
input,
select,
textarea {
    font-size: 14px !important;
}

/* Custom Overrides for Bootstrap to match UI design */

.login-card {
    width: 100%;
    max-width: 450px;
    border-radius: 8px;
}

.logo-img {
    max-width: 150px;
}

.custom-btn-color {
    background-color: #E66642; /* Custom orange color matching the UI */
    border-color: #E66642;
    padding: 10px;
}

.custom-btn-color:hover {
    background-color: #d15634;
    border-color: #d15634;
}

.custom-link-color {
    color: #E66642;
}

.custom-link-color:hover {
    color: #d15634;
}

/* Make inputs slightly larger for better aesthetics */
.form-control {
    padding: 0.6rem 0.75rem;
}

/* Dashboard Sidebar Styling */
#wrapper {
    overflow-x: clip;
}

.sidebar {
    min-width: 250px;
    max-width: 250px;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
    transition: margin 0.25s ease-out;
}

.list-group {
    padding: 0 12px;
}

.sidebar-link {
    color: #495057;
    margin: 4px 0;
    border-radius: 8px !important;
    padding: 10px 15px;
    font-weight: 500;
}

.sidebar-link:hover {
    background-color: #f8f9fa;
    color: #E66642;
}

.active-link {
    background-color: #fef1ed !important;
    color: #E66642 !important;
}

.sidebar-sublink {
    font-size: 0.9rem;
    padding: 5px 10px;
}

.sidebar-sublink:hover {
    color: #E66642 !important;
}

#wrapper.toggled .sidebar {
    margin-left: -250px;
}

/* Ensure responsiveness for mobile */
@media (max-width: 768px) {
    .sidebar {
        margin-left: -250px;
    }
    #wrapper.toggled .sidebar {
        margin-left: 0;
    }
}

/* Enhanced Table Padding & Modern Dashboard Table Aesthetics */
.table td {
    padding: 14px 18px !important;
    vertical-align: middle;
}
.table th {
    padding: 13px 18px !important;
    vertical-align: middle;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.4px;
}
.table-hover tbody tr:hover {
    background-color: #f8fafc;
}

/* Table Pagination Footer Styling */
.table-pagination-footer {
    background-color: #ffffff;
    border-top: 1px solid #edf2f7;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.table-pagination-info {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.table-pagination-info .highlight {
    color: #1e293b;
    font-weight: 600;
}

.table-pagination-nav .pagination {
    margin: 0;
    gap: 4px;
}

.table-pagination-nav .page-item .page-link {
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 8px !important;
    padding: 6px 13px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
    background: #ffffff;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
}

.table-pagination-nav .page-item .page-link:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #E66642;
}

.table-pagination-nav .page-item.active .page-link {
    background-color: #E66642 !important;
    border-color: #E66642 !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(230, 102, 66, 0.35);
}

.table-pagination-nav .page-item.disabled .page-link {
    color: #94a3b8;
    background-color: #f8fafc;
    border-color: #e2e8f0;
    cursor: not-allowed;
    opacity: 0.65;
}

.table-pagination-nav .page-item.ellipsis .page-link {
    border: none;
    background: transparent;
    cursor: default;
    color: #94a3b8;
    padding: 6px 8px;
}
