/* static/css/style.css */

/* 1. Define a Modern Color Palette */
:root {
    --primary-color: #0d6efd; /* Bootstrap Blue */
    --primary-hover: #0b5ed7;
    --secondary-color: #6c757d; /* Bootstrap Gray */
    --light-gray: #f8f9fa;
    --dark-charcoal: #343a40;
    --white: #ffffff;
    --border-color: #dee2e6;
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* 2. Global Styles & Body Background */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--light-gray);
    color: var(--dark-charcoal);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main.container {
    flex: 1; /* Ensures the main content pushes the footer down */
}

/* 3. Navbar Enhancements */
.navbar {
    box-shadow: var(--shadow-sm);
    transition: background-color 0.3s ease-in-out;
}

.navbar-brand {
    font-weight: 600;
}

/* Add a subtle underline effect on nav-link hover */
.navbar-nav .nav-link {
    position: relative;
    padding-bottom: 0.5rem;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 60%;
}


/* 4. Card & Component Styling */
.card {
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

/* 5. Button Polish */
.btn {
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* 6. Footer Styling */
.footer {
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

/* 7. Logo Styling */
.logo-container {
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.logo-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.logo-container:hover::before {
    left: 100%;
}

.logo-container:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.logo-img {
    height: 32px;
    width: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-container:hover .logo-img {
    filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.2));
}