html 
{
    font-size: 14px;
    position: relative;
    height: 100%;
}

.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;
}

body 
{
    padding-top: 70px !important;
    padding-right: 0 !important;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background-image: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}

.fixed-top
{
    z-index: 1060 !important;
    background-color: white;
}

.custom-mobile-menu
{
    top: 70px !important;
    height: calc(100vh - 70px) !important;
    z-index: 1050 !important;
    position: fixed;
}

.offcanvas-backdrop 
{
    top: 70px !important;
    z-index: 1040 !important;
}

body.offcanvas-open 
{
    overflow: hidden !important;
}

.custom-mobile-menu 
{
    top: 70px !important;
    height: calc(100vh - 70px) !important;
    z-index: 1050 !important;
    position: fixed;
    width: 280px !important;
    border-left: 1px solid #dee2e6 !important;
    right: 0 !important;
    visibility: visible !important;
}

.custom-mobile-menu .list-group-item-action 
{
    background: transparent !important;
    color: #333 !important;
    border-bottom: 1px solid #f8f9fa !important;
}

.custom-mobile-menu .list-group-item-action:active 
{
    background-color: #f0f0f0 !important;
}

body.offcanvas-open 
{
    overflow: hidden !important;
    width: 100% !important;
}

.offcanvas-backdrop
{
    top: 70px !important;
    z-index: 1040 !important;
}

.menu-toggle-btn 
{
    width: 30px;
    height: 20px;
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle-btn span 
{
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #198754;
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.menu-toggle-btn span:nth-child(1) 
{
    top: 0px;
}

.menu-toggle-btn span:nth-child(2) 
{
    top: 8px;
}

.menu-toggle-btn span:nth-child(3) 
{
    top: 16px;
}

.menu-toggle-btn:hover span 
{
    background: #157347;
}


.custom-mobile-menu 
{
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1) !important;
}

.side-item 
{
    padding: 18px 25px !important;
    font-weight: 500;
    font-size: 1.05rem;
    color: #333 !important;
    border: none !important;
    display: flex;
    align-items: center;
    transition: all 0.3s;
    background: transparent !important;
}

.icon-wrap
{
    width: 35px;
    height: 35px;
    background: #f0fdf4;
    color: #198754;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    transition: 0.3s;
}

.side-item:active 
{
    background-color: #f8f9fa !important;
}

.side-item:active .icon-wrap 
{
    background-color: #198754;
    color: white;
}

main
{
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
    flex: 1;
    animation: fadeInUp 0.7s ease-out;
}

.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;
}

.form-floating > .form-control
{
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.form-floating > .form-control:focus 
{
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.auth-wrapper 
{
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.auth-card 
{
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 500px;
    transition: transform 0.3s ease;
}

.auth-card:hover 
{
    transform: translateY(-5px);
}

.auth-title 
{
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

.btn-auth 
{
    width: 100%;
    padding: 0.8rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 1rem;
    background-color: #0d6efd;
    border: none;
    transition: all 0.3s;
}

.btn-auth:hover 
{
    background-color: #0b5ed7;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-success:hover
{
    background: linear-gradient(45deg, #157347, #198754) !important;
    transform: scale(1.02) !important;
    box-shadow: 0 8px 15px rgba(25, 135, 84, 0.3) !important;
}

.navbar 
{
    position: relative;
    z-index: 2000 !important;
    background-image: linear-gradient(to top, #e6e9f0 0%, #eef1f5 100%);
}

.navbar .dropdown-menu 
{
    z-index: 1051 !important;
}

.nav-item 
{
    margin-left: 0;
}

.navbar-nav 
{
    margin-right: 20px;
}

.navbar
{
    min-height: 70px;
    background-color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
    padding: 0.5rem 0;
}

.nav-link-lg 
{
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-transform: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px !important;
    color: #444 !important;
    transition: all 0.2s ease;
}

.nav-link-lg i 
{
    font-size: 1.1rem;
    color: #198754;
}

.navbar .nav-link.text-dark.fw-bold 
{
    font-size: 1rem !important;
    text-transform: none !important;
    color: #444 !important;
    margin-right: 10px;
    font-weight: 600 !important;
}

.nav-link-custom 
{
    position: relative;
}

.nav-link-custom::after 
{
    content: '';
    position: absolute;
    width: 0;
    height: 2px !important;
    bottom: 2px !important;
    left: 50%;
    background: #198754 !important;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after 
{
    width: 100%;
}


.profile-dropdown a:hover i 
{
    filter: brightness(0.8);
}

.profile-dropdown .dropdown-menu 
{
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    left: auto !important;
    right: 0 !important;
    transform: translateY(10px) !important;
    z-index: 2100;
    margin-right: -40px;
}

.dropdown-item 
{
    padding: 10px 20px;
    transition: background 0.2s;
}

.dropdown-item:hover 
{
    background-color: #f8f9fa;
    color: #0d6efd;
}

.site-footer-rich 
{
    background-color: #0E151F;
    color: #e5e7eb;
    padding-top: 25px;
    margin-top: auto;
    font-family: 'Segoe UI', sans-serif;
}

.footer-title 
{
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-subtitle 
{
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1rem;
}

.footer-text 
{
    color: #9ca3af;
    font-size: 0.85rem;
    line-height: 1.5;
}

.contact-item 
{
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #9ca3af;
    font-size: 0.85rem;
}

.icon-box 
{
    width: 28px;
    height: 28px;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.footer-socials 
{
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-icon 
{
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #1f2937;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.9rem;
}

.social-icon:hover 
{
    background: #22c55e;
    color: white;
}

.footer-bottom-divider 
{
    height: 1.5px;
    background: #1f2937;
    margin-top: -50px;
}

.copyright, .authors 
{
    font-size: 0.75rem;
    color: #6b7280;
}

@media (min-width: 768px) 
{
    html 
    {
        font-size: 16px;
    }
}

@media (min-width: 992px) 
{
    .profile-dropdown:hover .dropdown-menu 
    {
        display: block;
        margin-top: 0;
    }
}

@keyframes fadeInUp 
{
    from 
    {
        opacity: 0;
        transform: translateY(20px);
    }

    to 
    {
        opacity: 1;
        transform: translateY(0);
    }
}