/* Remove default margin and padding from the body and html */
body, html {
    margin: 0;
    padding: 0;
}

/* Site Navigation Styles */
:root {
    --primary-color: #1a365d;      /* Navy blue - conveys trust and professionalism */
    --secondary-color: #2c5282;    /* Slightly lighter navy for hover states */
    --accent-color: #c5a47e;       /* Warm gold accent for highlights */
    --text-light: #ffffff;         /* White text for contrast */
    --text-dark: #1a202c;          /* Dark text for light backgrounds */
    --hover-bg: rgba(255, 255, 255, 0.1);  /* Slight white overlay for hover states */
}

/* Navbar Styling */
.navbar {
    background: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 0;
    margin: 0;
    border-bottom: 3px solid var(--accent-color);
}

/* Add padding to the main content to prevent it from being hidden behind the fixed navbar */
body {
    padding-top: 0;
}

/* Brand Styling */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-light) !important;
    letter-spacing: 0.5px;
}

.navbar-brand i {
    color: var(--accent-color);
    margin-right: 8px;
}

/* Navigation Links */
.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    background-color: var(--hover-bg);
    color: var(--text-light) !important;
}

/* Active and Show States */
.navbar-nav .nav-item.show .nav-link,
.navbar-nav .nav-link.active {
    color: var(--accent-color) !important;
    font-weight: 600;
    background-color: transparent;
    position: relative;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background-color: var(--accent-color);
}

/* Dropdown Menu */
.dropdown-menu {
    background-color: var(--primary-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
}

.dropdown-item {
    color: var(--text-light);
    padding: 0.5rem 1.5rem;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.dropdown-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0.25rem 0;
}

/* Login/Register Buttons */
#loginLink {
    background-color: var(--accent-color);
    color: var(--primary-color) !important;
    border-radius: 4px;
    padding: 0.5rem 1.2rem !important;
    margin-left: 0.5rem !important;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

#loginLink:hover, 
#loginLink:active, 
#loginLink:focus {
    background-color: #d4b48e !important;
    color: var(--primary-color) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Mobile Menu Toggle */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.15rem var(--accent-color);
}

.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(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--primary-color);
        margin-top: 0.5rem;
        padding: 1rem;
        border-radius: 4px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
        padding: 0.75rem 1rem;
    }
    
    .dropdown-menu {
        margin-left: 1rem;
        width: calc(100% - 2rem);
        border: none;
        box-shadow: none;
    }
}

.icon-shape {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.table > :not(caption) > * > * {
    padding: 1rem 0.5rem;
}

.table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.btn-group .btn {
    border-radius: 0;
}

    .btn-group .btn:first-child {
        border-top-left-radius: 0.25rem !important;
        border-bottom-left-radius: 0.25rem !important;
    }

    .btn-group .btn:last-child {
        border-top-right-radius: 0.25rem !important;
        border-bottom-right-radius: 0.25rem !important;
    }