/* Global Roboto Font */
html, body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

/* Apply Roboto to all text elements */
h1, h2, h3, h4, h5, h6,
p, span, div, a, button, input, textarea, select,
label, li, td, th, .card, .btn, .form-control, .form-select {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

/* Improved Navbar Styles */
.navbar-custom {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 0.75rem 0;
    font-weight: 400;
}

.navbar-custom .navbar-brand {
    font-weight: 500;
    font-size: 1.25rem;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
}

.navbar-custom .navbar-brand:hover {
    opacity: 0.9;
}

.navbar-custom .navbar-brand i {
    font-size: 1.3rem;
}

.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 400;
    padding: 0.5rem 1rem !important;
    transition: all 0.2s;
    border-radius: 4px;
    margin: 0 0.25rem;
}

.navbar-custom .nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-custom .nav-link i {
    font-size: 0.95rem;
}

.navbar-custom .navbar-text {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 400;
}

.navbar-custom .navbar-text strong {
    font-weight: 500;
    color: #ffffff;
}

.navbar-custom .dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.navbar-custom .dropdown-item {
    padding: 0.6rem 1.25rem;
    font-weight: 400;
    transition: all 0.2s;
}

.navbar-custom .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #2c3e50;
}

.navbar-custom .dropdown-item i {
    width: 20px;
    text-align: center;
    color: #6c757d;
}

.navbar-custom .dropdown-item:hover i {
    color: #2c3e50;
}

.navbar-custom .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-custom .navbar-toggler:focus {
    box-shadow: none;
}

.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

