html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

    html.sidebar-collapsed .sidebar {
        width: 85px;
        min-width: 85px;
    }

        html.sidebar-collapsed .sidebar span {
            display: none;
        }

        html.sidebar-collapsed .sidebar .nav-link {
            justify-content: center;
            padding-left: 0;
            padding-right: 0;
        }

        html.sidebar-collapsed {
            justify-content: center;
        }

body {
    margin: 0;
    overflow-x: hidden;
    font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
    font-size: 1rem;
    background: #f5f7fb;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}


.sidebar .nav-link span
{
    opacity: 1;
    visibility: visible;
    transition: opacity 0.18s ease, visibility 0.18s ease;
    white-space: nowrap;
}


.sidebar.collapsed .nav-link span
{
    opacity: 0;
    visibility: hidden;
}

.w-60 {
    min-width:60%;
    max-width:70%;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-title {
    font-size: 26px;
    font-weight: 600;
    margin: 0;
}

.app-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.app-form .form-group {
    margin-bottom: 15px;
}

.app-form label {
    font-weight: 500;
    margin-bottom: 5px;
}

.app-form .form-control {
    border-radius: 6px;
    padding: 8px 10px;
}

.form-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.app-table {
    border-radius: 10px;
    overflow: hidden;
}

.app-table thead {
    background: #f8f9fa;
}

.app-table th {
    font-weight: 600;
}

.table-actions a {
    margin-right: 10px;
    text-decoration: none;
}

.details-row {
    margin-bottom: 10px;
}

.details-label {
    font-weight: 900;
    color: #555;
}

.delete-warning {
    color: #dc3545;
    font-weight: 500;
    margin-bottom: 15px;
}
.form-validation{
    color: #ac0010;
}

    .form-validation ul {
        list-style-type: none;
        padding-left: 0;
    }
.rounded-table {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.table-hover tbody tr:hover {
    background-color: #f5f9ff;
    transition: 0.2s ease-in-out;
}

.table td, .table th {
    padding: 12px 14px;
    vertical-align: middle;
}

.table thead {
    background-color: #f1f5ff;
    font-weight: 600;
}
.part-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.part-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    align-items: stretch;
    margin-top: 20px;
}

select {
    appearance: none;
    -webkit-appearance: none;
}

.pagination-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.pagination {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

    .pagination li a {
        display: inline-block;
        padding: 6px 12px;
        border: 1px solid #ddd;
        border-radius: 6px;
        text-decoration: none;
        color: #333;
        transition: 0.2s;
        background: #fff;
    }

        .pagination li a:hover {
            background: #f2f2f2;
        }

    .pagination li.active a {
        background: #0d6efd;
        color: white;
        border-color: #0d6efd;
    }

    .pagination li.disabled span {
        padding: 6px 10px;
        color: #999;
    }
.auth-container {
    display: flex;
    justify-content: center;
    margin-top: 60px;
    padding: 20px;
}

.auth-brand {
    color: #065fe2;
}

.auth-card {
    width: 100%;
    max-width: 430px;
    background: #fff;
    padding: 35px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.auth-title {
    text-align: center;
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 600;
    color: #333;
}

.auth-group {
    margin-bottom: 18px;
}

    .auth-group label {
        margin-bottom: 6px;
        font-weight: 500;
        color: #444;
    }

.auth-input {
    border-radius: 10px;
    padding: 10px 12px;
}

    .auth-input:focus {
        box-shadow: none;
        border-color: #0d6efd;
    }

.auth-btn {
    width: 100%;
    margin-top: 10px;
    border-radius: 10px;
    padding: 10px;
    font-weight: 600;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-display {
    border: 1px solid #ccc;
    border-radius:6px;
    padding: 8px;
    cursor: pointer;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-close {
    cursor: pointer;
    font-size: 18px;
    padding-left: 10px;
}
.custom-dropdown.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: white;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

    .dropdown-panel.open {
        display: block;
    }

.dropdown-search {
    width: 100%;
    padding: 6px;
    border-bottom: 1px solid #ddd;
}

.dropdown-item {
    padding: 6px;
    cursor: pointer;
}

.custom-dropdown .dropdown-toggle-icon i {
    display: inline-block;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform: rotate(0deg);
    will-change: transform;
}

.custom-dropdown.open .dropdown-toggle-icon i {
    transform: rotate(360deg);
}

    .dropdown-item:hover {
        background: #f0f0f0;
    }

    .dropdown-item.selected {
        background: rgb(0, 16, 144);
        color: white;
    }

.filter-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index:1000;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

    .filter-modal.hidden {
        display: none;
    }
.filter-actions {
    display:flex;
    justify-content :flex-end;
    gap: 4px;
}

.filter-modal-content {
    background: rgb(246, 247, 254);
    padding: 20px;
    width: 500px;
    border-radius: 8px;
}

.filter-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 15px;
}
.filter-info {
    margin: 6px 0;
}

.page-hidden,
.fade-hidden {
    opacity: 0;
    pointer-events: none;
}

.page-visible,
.fade-visible {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 300ms ease;
}
.toast-top{
    top:50px;
}

.app-layout {
    display: flex;
    min-height: 100vh;
}

.page-topbar {
    position: fixed;
    top: 12px;
    right: 18px;
    z-index: 1000;
}

.page-user {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

    .user-info i {
        font-size: 17px;
    }

.logout-link {
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    transition: color 0.2s ease;
}

    .logout-link:hover {
        color: #dc3545;
    }

    .logout-link i {
        font-size: 15px;
    }

.sidebar {
    width: 250px;
    min-width: 250px;
    background: linear-gradient(180deg, #0045a9, #003b90);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1), min-width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    height: 100vh;
    position: sticky;
    top: 0;
    flex-shrink: 0;
}

    .sidebar.collapsed {
        width: 85px;
        min-width: 85px;
    }


.sidebar .nav-link {
    color: white;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    margin: 5px 10px;
    border-radius: 14px;
    transition: background 0.2s ease, padding 0.28s ease, justify-content 0.28s ease;
    white-space: nowrap;
    font-size: 15px;
}
    .sidebar .nav-link-home {
        margin: 10px 10px 0px 10px;
    }

.sidebar .nav-link:hover {
    background: rgba(255,255,255,0.12);
}

    .sidebar .nav-link.active {
        background: white;
        color: #0045a9 !important;
    }

    .sidebar .nav-link i {
        width: 20px;
        text-align: center;
        font-size: 16px;
    }

.sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 14px;
}


.sidebar.collapsed {
    text-align: center;
    padding-left: 0;
    padding-right: 0;
}

.nav-divider {
    height: 1px;
    background: rgba(255,255,255,0.15);
    margin: 14px 20px;
}

.main-content {
    flex: 1;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.content-wrapper {
    flex: 1;
    padding: 24px;
    width: max-content;
    min-width: 700px;
    margin: 0 auto;
}

    .content-wrapper::-webkit-scrollbar {
        display: none;
    }

.main-header {
    display: flex;
    align-items: center;
    margin: 10px 0px 20px 0px;
}

.main-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.main-brand {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    letter-spacing: 0.5px;
    margin-left: 10px;
}

.toggle-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 10px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: 0.2s ease;
}

    .toggle-btn:hover {
        transform: scale(1.05);
    }

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.app-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {

    .sidebar {
        position: fixed;
        z-index: 1000;
    }

        .sidebar.collapsed {
            transform: translateX(-100%);
        }

    .main-content {
        width: 100%;
    }
}

.dashboard-container {
    display: flex;
    gap: 24px;
    margin-top: 100px;
}

.dashboard-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    transition: all 0.25s ease;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.dashboard-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    border-color: #94a3b8;
}

.card-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #f8fafc;
    background: linear-gradient(135deg, #040c65, #334763);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
}

.card-content h3 {
    margin: 0;
    font-size: 34px;
    font-weight: 800;
    color: #0f172a;
}

.card-content p {
    margin-top: 6px;
    color: #64748b;
    font-size: 15px;
    font-weight: 500;
}

.dashboard-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
    background: linear-gradient(135deg, #040c65, #334763);
    opacity: 0.95;
    box-shadow: 0 0 14px rgba(4, 12, 101, 0.25);
}

.results-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px;
    color: #6b7280;
}

    .results-loader.hidden {
        display: none;
    }

.spinner {
    width: 42px;
    height: 42px;
    border: 4px solid #e5e7eb;
    border-top-color: #0d6efd;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.part-card h3,
.part-card li {
    transition: all 0.2s ease;
}

.part-card .highlight {
    color: #1e88e5;
    font-weight: 600;
    background: rgba(30, 136, 229, 0.12);
    padding: 4px 8px;
    border-radius: 6px;
    border-left: 4px solid #1e88e5;
}

.access-denied-wrapper {
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.access-denied-card {
    text-align: center;
    padding: 40px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 420px;
    width: 100%;
}

.access-denied-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.access-denied-title {
    margin: 0;
    font-size: 24px;
}

.access-denied-message {
    margin-top: 8px;
    color: #666;
}

.access-denied-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.access-denied-btn {
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.access-denied-btn-primary {
    background: #0d6efd;
    color: white;
}

.access-denied-btn-dark {
    background: #212529;
    color: white;
}

.app-footer {
    height: 55px;
    min-height: 55px;
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    padding: 0 24px;
    color: #6b7280;
    font-size: 14px;
    flex-shrink: 0;
}

.footer-content {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-email {
    color: #0045a9;
    text-decoration: none;
    font-weight: 500;
}

    .footer-email:hover {
        text-decoration: underline;
    }