main > .container {
    padding: 90px 15px 30px;
}

/* Enhanced Breadcrumb Styling */
.breadcrumb {
    background: transparent;
    padding: 1.5rem 0 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
    border-radius: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
    font-weight: 600;
    font-size: 1.1em;
    margin: 0 0.75rem;
}

.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 400;
}

.breadcrumb-item a:hover {
    color: #0d6efd;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #495057;
    font-weight: 500;
}

/* Page Title Enhancement */
h1 {
    margin-bottom: 2rem;
    color: #212529;
    font-weight: 600;
    font-size: 2.2rem;
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #6f42c1);
    border-radius: 2px;
}

/* Content Area Enhancement */
#main {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100px);
    min-height: calc(100vh - 200px);
}

/* Responsive adjustments for better spacing */
@media (max-width: 767.98px) {
    main > .container {
        padding: 100px 15px 30px;
    }
    
    .breadcrumb {
        padding: 1rem 0 0.75rem 0;
        margin-bottom: 1.5rem;
    }
    
    h1 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
}

/* Login Page Layout */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.login-title {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.login-content {
    margin-top: 1rem;
}

.login-form-title {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #6c757d;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Enhanced form styling for login */
.site-login .form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.site-login .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.site-login .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    background: white;
}

.site-login .form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.site-login .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.site-login .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.site-login .btn-primary:active {
    transform: translateY(0);
}

/* Responsive adjustments for login */
@media (max-width: 576px) {
    .login-box {
        padding: 2rem 1.5rem;
        margin: 10px;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
    
    .login-form-title {
        font-size: 1.3rem;
    }
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* Global font */
body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

/* Enhanced Navigation Styling */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Enhanced Navigation Items */
.navbar-nav .nav-link {
    position: relative;
    padding: 0.75rem 1.25rem !important;
    margin: 0 0.25rem;
    font-weight: 500;
    color: #495057 !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(13, 110, 253, 0.1), transparent);
    transition: left 0.5s ease;
}

.navbar-nav .nav-link:hover::before {
    left: 100%;
}

.navbar-nav .nav-link:hover {
    color: #0d6efd !important;
    background-color: rgba(13, 110, 253, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

.navbar-nav .nav-link:active {
    transform: translateY(0);
}

/* Active state for current page */
.navbar-nav .nav-link.active,
.navbar-nav .nav-item.active .nav-link {
    color: #0d6efd !important;
    background-color: rgba(13, 110, 253, 0.15);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.2);
    position: relative;
}

.navbar-nav .nav-link.active::after,
.navbar-nav .nav-item.active .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #0d6efd;
    border-radius: 2px;
}

/* Enhanced Logout Button */
.navbar-nav .nav-item:last-child .nav-link,
.navbar-nav .nav-item:last-child a {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white !important;
    border: none;
    padding: 0.75rem 1.5rem !important;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.navbar-nav .nav-item:last-child .nav-link:hover,
.navbar-nav .nav-item:last-child a:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
    color: white !important;
    text-decoration: none;
}

.navbar-nav .nav-item:last-child .nav-link:active,
.navbar-nav .nav-item:last-child a:active {
    transform: translateY(0);
}

/* Responsive improvements */
@media (max-width: 991.98px) {
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0.25rem 0;
        border-radius: 6px;
    }
    
    .navbar-nav .nav-item:last-child .nav-link {
        margin: 0.5rem 0;
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    .navbar-nav .nav-link {
        padding: 1rem 1.25rem !important;
        margin: 0.125rem 0;
        border-left: 3px solid transparent;
    }
    
    .navbar-nav .nav-link:hover {
        border-left-color: #0d6efd;
        background-color: rgba(13, 110, 253, 0.05);
    }
    
    .navbar-nav .nav-item:last-child .nav-link {
        border-left: none;
        margin: 1rem 0;
    }
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(0, 0, 0, 0.55);
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(0, 0, 0, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.form-group {
    margin-bottom: 1rem;
}