/*
 * AIM Consolidated CSS - Projects Page Optimized
 * Created: January 2025
 * Purpose: Single optimized CSS file for Projects page containing only essential styles
 *
 * Includes:
 * - Design tokens and variables
 * - CSS reset and base styles
 * - Navigation (50px height, green logo)
 * - Card components for Project displays
 * - Grid layout (5-column responsive)
 * - Button components
 * - Utility classes
 * - Projects-specific styles
 */

/* ==========================================================================
   1. DESIGN TOKENS AND VARIABLES - Foundation
   ========================================================================== */

:root {
    /* Base unit: 4px - All spacing is based on this unit */
    --space-base: 0.25rem; /* 4px */

    /* Spacing Scale - T-shirt sizing */
    --space-0: 0;
    --space-xs: 0.25rem;    /* 4px */
    --space-sm: 0.5rem;     /* 8px */
    --space-md: 1rem;       /* 16px */
    --space-lg: 1.5rem;     /* 24px */
    --space-xl: 2rem;       /* 32px */
    --space-2xl: 3rem;      /* 48px */
    --space-3xl: 4rem;      /* 64px */
    --space-4xl: 6rem;      /* 96px */
    --space-5xl: 8rem;      /* 128px */

    /* Micro spacing */
    --space-px: 1px;
    --space-0-5: 0.125rem;  /* 2px */
    --space-1-5: 0.375rem;  /* 6px */
    --space-2-5: 0.625rem;  /* 10px */
    --space-3-5: 0.875rem;  /* 14px */

    /* Typography */
    --font-primary: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Courier New', monospace;

    /* Font sizes */
    --text-xs: 0.75rem;     /* 12px */
    --text-sm: 0.875rem;    /* 14px */
    --text-base: 1rem;      /* 16px */
    --text-lg: 1.125rem;    /* 18px */
    --text-xl: 1.25rem;     /* 20px */
    --text-2xl: 1.5rem;     /* 24px */
    --text-3xl: 1.875rem;   /* 30px */
    --text-4xl: 2.25rem;    /* 36px */
    --text-5xl: 3rem;       /* 48px */

    /* Font weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* Line heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;

    /* Border radius — defined in theme-definitions.css (authoritative token source) */

    /* Borders */
    --border-0: 0;
    --border-1: 1px;
    --border-2: 2px;

    /* Shadows — defined in theme-definitions.css (authoritative token source) */

    /* Z-index scale */
    --z-10: 10;
    --z-20: 20;
    --z-30: 30;
    --z-40: 40;
    --z-50: 50;
    --z-modal: 1050;
    --z-fixed: 1030;

    /* Transitions */
    --duration-150: 150ms;
    --duration-200: 200ms;
    --duration-300: 300ms;
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-colors: color var(--duration-150) var(--ease-in-out), background-color var(--duration-150) var(--ease-in-out), border-color var(--duration-150) var(--ease-in-out);
    --transition-all: all var(--duration-150) var(--ease-in-out);

    /* Color System — chains to derived system in theme-definitions.css */
    --color-white: #ffffff;
    --color-black: #000000;

    /* Semantic colors (independent of primary — universal meaning) */
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-danger: #EF4444;
    --color-info: #0EA5E9;
    --accent-color: #E8A450;

    /* Neutral palette (Slate — blue-tinted, modern) */
    --color-neutral-lightest: #F1F5F9;
    --color-neutral-light: #94A3B8;
    --color-neutral-medium: #64748B;
    --color-neutral-dark: #1E293B;
    --color-neutral-darkest: #0F172A;

    /* Theme colors — derived from brand-primary via theme-definitions.css */
    --body-bg-color: var(--surface-base, #E8EEF6);
    --body-text-color: #1A1F2E;
    --dashboard-bg: var(--surface-raised, #fff);

    /* Interactive colors — derived */
    --main-link-color: var(--interactive-base);
    --main-link-highlight: var(--interactive-hover);
    --main-button-text: var(--color-white);

    /* Border colors — derived */
    --primary-border: var(--primary-color);

    /* Text hierarchy */
    --text-primary: var(--body-text-color);
    --text-secondary: var(--color-neutral-dark);
    --text-tertiary: var(--color-neutral-medium);
    --text-inverse: var(--main-button-text);

    /* Component tokens */
    --card-padding: var(--space-lg);
    --card-header-padding: var(--space-md) var(--space-lg);
    --card-border-width: var(--border-1);
    --card-border-radius: var(--radius-lg);
    --container-padding-x: var(--space-lg);
    --container-max-width: 1200px;

    /* Navigation colors */
    --color-nav-bg: var(--primary-color);
    --color-nav-text: var(--color-white);
    --color-nav-hover: rgba(255, 255, 255, 0.1);
    --color-nav-active: rgba(255, 255, 255, 0.2);

    /* Missing variable aliases (referenced by 31+ CSS files) */
    --color-text: var(--body-text-color);
    --card-bg: var(--surface-raised);
    --card-border: var(--border-subtle);
    --card-radius: var(--radius-lg);
    --text-muted: var(--color-neutral-medium);
    --table-border-color: var(--border-subtle);
    --table-header-bg: var(--surface-overlay);
    --color-surface: var(--surface-raised);
    --theme-primary: var(--primary-color);
    --color-surface-subtle: rgba(30, 58, 95, 0.05);
}

/* ==========================================================================
   2. CSS RESET AND BASE STYLES - Modern Reset
   ========================================================================== */

/* Box sizing reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Remove default margin and padding */
* {
    margin: 0;
    padding: 0;
}

/* HTML and body setup */
html {
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
    scroll-behavior: smooth;
    position: relative;
    min-height: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background-color: var(--surface-base);
    margin-bottom: var(--space-3xl);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Estates management page uses its own full-height layout — keep body padding for navbar */

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-semibold);
    line-height: var(--leading-tight);
    color: var(--text-primary);
    margin: 0;
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-base); }
h6 { font-size: var(--text-sm); }

p {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    margin: 0;
}

/* Links */
a {
    color: var(--interactive-base);
    text-decoration: none;
    transition: var(--transition-colors);
}

a:hover {
    color: var(--interactive-hover);
    text-decoration: underline;
}

/* List reset */
ul, ol {
    list-style: none;
}

/* Media elements */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   3. NAVIGATION SYSTEM - 50px Height with Green Logo
   ========================================================================== */

.navbar {
    background-color: var(--color-nav-bg);
    height: 60px;
    max-height: 60px;
    min-height: 60px;
    padding: 0 16px;
    margin: 0;
    top: 0;
    position: fixed;
    width: 100vw;
    z-index: var(--z-fixed);
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: visible;
    box-sizing: border-box;
}

/* Navigation container */
.nav-container {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    height: 50px;
    max-height: 50px;
    overflow: visible;
    padding: 0;
    margin: 0;
}

/* Logo container */
.navbar .navbar-brand {
    height: 50px;
    width: 50px;
    min-width: 50px;
    max-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0 10px 0 0;
    overflow: hidden;
    flex-shrink: 0;
    color: var(--color-nav-text);
    text-decoration: none;
}

.navbar .navbar-brand:hover {
    color: var(--color-nav-hover);
    text-decoration: none;
}

/* Green circular logo */
.brand-logo-circle {
    width: 40px;
    height: 40px;
    background-color: var(--color-success-medium, #00a86b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 24px;
    font-weight: bold;
    font-family: sans-serif;
}

/* Logo image sizing */
.navbar .navbar-brand img,
.navbar img {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
    display: block;
}

/* Navigation collapse container */
.navbar-collapse {
    flex-basis: 100%;
    flex-grow: 1;
    align-items: center;
    display: flex;
    justify-content: flex-end;
    margin-left: auto;
}

/* Navigation list */
.navbar .navbar-nav {
    height: 50px;
    max-height: 50px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0px;
    margin: 0;
    padding: 0;
    overflow: visible;
}

/* Navigation items */
.navbar .nav-item {
    height: 50px;
    display: flex;
    align-items: center;
}

/* Navigation links */
.navbar .nav-link,
.navbar .nav-bar-link,
.navbar .dropdown-toggle {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    margin: 0;
    background: transparent;
    border: none;
    color: var(--color-nav-text);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    line-height: 1;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.navbar .nav-link:hover,
.navbar .nav-bar-link:hover,
.navbar .dropdown-toggle:hover {
    background-color: var(--color-nav-hover);
    color: var(--color-nav-text);
    text-decoration: none;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    z-index: 10000;
    display: none;
    float: none;
    min-width: 200px;
    max-width: 300px;
    padding: 0.5rem 0;
    margin: 2px 0 0 0;
    font-size: 0.875rem;
    color: var(--color-white);
    text-align: left;
    list-style: none;
    background-color: var(--brand-primary);
    background-clip: padding-box;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
    transform: none;
    overflow: visible;
}

.dropdown-menu.show {
    display: block;
}

/* Navbar dropdown positioning */
.navbar .dropdown-menu.show {
    position: fixed;
    top: 50px;
    left: auto;
    right: 20px;
    transform: none;
    margin: 0;
    z-index: 999999;
    background-color: var(--brand-primary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    width: 250px;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    clear: both;
    font-weight: 400;
    color: var(--color-white);
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.btn-group {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
}

/* User dropdown and text elements */
.navbar .navbar-text,
.navbar .dropdown {
    height: 50px;
    display: flex;
    align-items: center;
    margin: 0;
}

.navbar .navbar-text {
    padding: 0 5px;
    color: var(--color-nav-text);
    font-size: 14px;
    font-weight: 500;
}

/* Bootstrap responsive support */
.navbar-expand-sm .navbar-collapse {
    display: flex;
    flex-basis: auto;
}

.navbar-toggler {
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
    line-height: 1;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 0.25rem;
    transition: box-shadow 0.15s ease-in-out;
}

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    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.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ==========================================================================
   4. LAYOUT CONTAINERS - Full Width Support
   ========================================================================== */

/* Container width fixes */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding-x);
    padding-right: var(--container-padding-x);
}

/* Sticky navbar - stays at top when scrolling */
body > header {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.main {
    padding-top: 0;
    height: 100%;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: var(--container-padding-x);
    padding-right: var(--container-padding-x);
}

#pageContent {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: var(--container-padding-x);
    padding-right: var(--container-padding-x);
}

/* ==========================================================================
   5. CARD COMPONENTS - Project Display Cards
   ========================================================================== */

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: var(--surface-raised);
    background-clip: border-box;
    border: var(--card-border-width) solid var(--border-subtle);
    border-radius: var(--card-border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-all);
    color: var(--text-primary);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

/* Card structure */
.card-body {
    flex: 1 1 auto;
    padding: var(--card-padding);
    color: var(--text-primary);
}

.card-title {
    margin-bottom: var(--space-sm);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    line-height: var(--leading-tight);
    color: var(--text-primary);
}

.card-text {
    color: var(--text-primary);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
}

/* Card header and footer */
.card-header {
    padding: var(--card-header-padding);
    margin-bottom: 0;
    background-color: var(--surface-overlay);
    border-bottom: var(--card-border-width) solid var(--border-subtle);
    border-top-left-radius: calc(var(--card-border-radius) - var(--card-border-width));
    border-top-right-radius: calc(var(--card-border-radius) - var(--card-border-width));
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

/* Enhanced card styling for Projects page */
.Projects-section .card {
    background-color: rgba(128, 128, 128, 0.15);
    border: var(--card-border-width) solid rgba(128, 128, 128, 0.25);
    box-shadow: var(--shadow-md);
    height: 100%;
    min-height: 200px;
}

.Projects-section .card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.Projects-section .card .card-header {
    background-color: rgba(128, 128, 128, 0.25);
    color: var(--text-primary);
    font-weight: var(--font-semibold);
    border-bottom: var(--border-2) solid var(--border-subtle);
}

/* ==========================================================================
   6. BUTTON COMPONENTS - Essential Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    line-height: var(--leading-normal);
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: var(--border-1) solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-colors);
    user-select: none;
    appearance: none;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Button variants */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-inverse);
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--interactive-hover);
    border-color: var(--interactive-hover);
    color: var(--text-inverse);
    box-shadow: var(--shadow-primary);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-inverse);
}

.btn-secondary:hover:not(:disabled) {
    background-color: var(--secondary-border);
    border-color: var(--secondary-border);
    color: var(--text-inverse);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background-color: var(--color-success);
    border-color: var(--color-success);
    color: var(--color-white);
}

.btn-success:hover:not(:disabled) {
    background-color: var(--color-success-dark);
    border-color: var(--color-success-dark);
}

.btn-warning {
    background-color: var(--color-warning);
    border-color: var(--color-warning);
    color: var(--color-black);
}

.btn-warning:hover:not(:disabled) {
    background-color: var(--color-warning-dark);
    border-color: var(--color-warning-dark);
}

.btn-danger {
    background-color: var(--color-danger);
    border-color: var(--color-danger);
    color: var(--color-white);
}

.btn-danger:hover:not(:disabled) {
    background-color: var(--color-danger-dark);
    border-color: var(--color-danger-dark);
}

.btn-info {
    background-color: var(--color-info);
    border-color: var(--color-info);
    color: var(--color-white);
}

.btn-info:hover:not(:disabled) {
    background-color: var(--color-info-dark);
    border-color: var(--color-info-dark);
}

.btn-light {
    background-color: var(--color-neutral-lightest, #f8f9fa);
    border-color: var(--color-neutral-light, #adb5bd);
    color: var(--body-text-color);
}

.btn-light:hover:not(:disabled) {
    background-color: var(--color-neutral-light, #adb5bd);
    border-color: var(--color-neutral-medium, #6c757d);
}

.btn-outline-primary {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover:not(:disabled) {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-inverse);
}

.btn-outline-secondary {
    background-color: transparent;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline-secondary:hover:not(:disabled) {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-inverse);
}

/* btn-outline — neutral border, theme-aware text for dark mode */
.btn-outline {
    background-color: transparent;
    border-color: var(--color-border, #dee2e6);
    color: var(--color-text, var(--body-text-color, #212529));
}

.btn-outline:hover:not(:disabled) {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-inverse);
}

/* Button sizes */
.btn-sm {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--text-sm);
}

.btn-lg {
    padding: var(--space-md) var(--space-lg);
    font-size: var(--text-base);
}

/* ==========================================================================
   7. UTILITY CLASSES - Essential Spacing and Layout
   ========================================================================== */

/* Margin utilities */
.m-0 { margin: var(--space-0); }
.m-1 { margin: var(--space-xs); }
.m-2 { margin: var(--space-sm); }
.m-3 { margin: var(--space-md); }
.m-4 { margin: var(--space-lg); }
.m-auto { margin: auto; }

.mt-0 { margin-top: var(--space-0); }
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }

.mb-0 { margin-bottom: var(--space-0); }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }

/* Padding utilities */
.p-0 { padding: var(--space-0); }
.p-1 { padding: var(--space-xs); }
.p-2 { padding: var(--space-sm); }
.p-3 { padding: var(--space-md); }
.p-4 { padding: var(--space-lg); }

/* Text utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }

/* Display utilities */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* Flexbox utilities */
.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-end { justify-content: flex-end; }
.align-items-center { align-items: center; }

/* Width utilities */
.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* Bootstrap responsive classes */
.d-sm-inline-flex {
    display: flex;
}

@media (min-width: 576px) {
    .navbar-expand-sm {
        flex-flow: row nowrap;
        justify-content: flex-start;
    }

    .navbar-expand-sm .navbar-nav {
        flex-direction: row;
    }

    .navbar-expand-sm .navbar-collapse {
        display: flex;
        flex-basis: auto;
    }

    .navbar-expand-sm .navbar-toggler {
        display: none;
    }
}

/* ==========================================================================
   8. ProjectS-SPECIFIC STYLES - Page-Specific Optimizations
   ========================================================================== */

/* Force full-width layout */
body, html {
    margin: 0;
    padding: 0;
    overflow-x: clip;
    width: 100%;
}

/* Projects section full width */
.Projects-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 20px 0;
    position: relative;
    background: var(--body-bg-color);
}

/* Projects grid - 5-column responsive layout */
.Projects-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 0 30px;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

/* Projects heading */
.Projects-heading {
    text-align: center;
    width: 100%;
    margin: 40px auto 30px auto;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Project card containers */
.Project-card-container {
    width: 100%;
}

.section-title {
    color: var(--color-primary);
    border-bottom: 3px solid var(--color-primary);
    padding-bottom: 8px;
    margin-bottom: 25px;
    font-weight: 600;
    font-size: 1.5rem;
}

/* Project card styling */
.Project-card {
    background-color: var(--surface-raised);
    border: 1px solid var(--color-border, var(--color-gray-200));
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.Project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.Project-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.Project-image-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--surface-raised);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 15px 10px;
    box-sizing: border-box;
    flex: 1.5;
}

.Project-logo {
    width: 90%;
    height: auto;
    max-width: 90%;
    max-height: 120px;
    min-width: unset;
    min-height: unset;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.Project-card:hover .Project-logo {
    transform: scale(1.05);
}

.Project-card .card-body {
    text-align: center;
    padding: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0.5;
}

.Project-card .card-body h5,
.Project-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
    word-break: break-word;
    text-align: center;
}

/* Override link colors for Projects */
.Projects-section a {
    color: inherit;
    text-decoration: none;
}

.Projects-section a:hover {
    color: inherit;
    text-decoration: none;
}

/* Alert styling */
.alert {
    padding: var(--space-sm) var(--space-md);
    border: var(--border-1) solid transparent;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.alert-danger {
    color: var(--color-error-700);
    background-color: var(--color-error-50);
    border-color: var(--color-error-200);
}

.alert-warning {
    color: var(--color-warning-dark, #664d03);
    background-color: var(--color-warning-lightest, #fff3cd);
    border-color: var(--color-warning-light, #ffecb5);
}

/* ==========================================================================
   9. RESPONSIVE DESIGN - Projects Grid Breakpoints
   ========================================================================== */

/* Responsive grid - adapts to zoom levels and screen sizes */
/* 5 columns: Default for large screens and 100% zoom */

/* 4 columns: Medium large screens or zoomed in slightly */
@media (max-width: 1400px) {
    .Projects-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 3 columns: Medium screens or moderate zoom */
@media (max-width: 1100px) {
    .Projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 2 columns: Small screens or significant zoom */
@media (max-width: 800px) {
    .Projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .container {
        margin-top: var(--space-4xl);
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    .main, #pageContent {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }
}

/* 1 column: Very small screens or high zoom levels */
@media (max-width: 500px) {
    .Projects-grid {
        grid-template-columns: 1fr;
    }

    .Projects-heading {
        font-size: 2rem;
    }
}

/* Mobile navbar */
@media (max-width: 575.98px) {
    .navbar-collapse:not(.show) {
        display: none;
    }

    .navbar-collapse.show {
        display: flex;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-nav-bg);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1000;
        padding: 10px 0;
    }
}

/* ==========================================================================
   10. UTILITY EXTENSIONS AND ANIMATIONS
   ========================================================================== */

/* Common utility combinations */
.center-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.full-size {
    width: 100%;
    height: 100%;
}

/* Animation utilities */
.fade-in {
    animation: fadeIn var(--duration-300) ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Performance optimizations */
* {
    will-change: auto;
}

/* Accessibility enhancements */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   11. PRINT STYLES
   ========================================================================== */

@media print {
    .navbar,
    .footer,
    .btn,
    .no-print {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
        line-height: 1.4;
    }

    .container {
        max-width: none !important;
        padding: 1in !important;
        margin: 0 !important;
    }

    .Project-card {
        break-inside: avoid;
        margin-bottom: 0.5in;
    }
}

/* Projects Page - Full Width Layout */
.Projects-page-layout {
    margin: 0;
    padding: 0;
    width: 100%;
}

.Projects-page-layout main,
.Projects-page-layout .container,
.Projects-page-layout .container-fluid,
.Projects-page-layout .page-content {
    max-width: none;
    width: 100%;
    padding: 0;
    margin: 0;
}

/* ==========================================================================
   END OF AIM CONSOLIDATED CSS
   ========================================================================== */

/* ==========================================================================
   BOOTSTRAP UTILITY REPLACEMENTS
   Added to replace Bootstrap CSS removed from _Layout.cshtml (Feb 13, 2026).
   Only includes utilities actively used by 82+ .cshtml pages.
   ========================================================================== */

/* Grid System */
.container-fluid { width: 100%; padding-right: 0.75rem; padding-left: 0.75rem; margin: 0 auto; }
.row { display: flex; flex-wrap: wrap; margin-right: -0.75rem; margin-left: -0.75rem; }
.row > * { flex-shrink: 0; width: 100%; max-width: 100%; padding-right: 0.75rem; padding-left: 0.75rem; }
.g-3 { gap: 1rem; }
[class*="col-"] { flex: 0 0 auto; }
.col-12 { width: 100%; }
.col-6 { width: 50%; }
.col-4 { width: 33.333%; }
.col-3 { width: 25%; }
@media (min-width: 576px) {
  .col-sm-5 { width: 41.667%; }
  .col-sm-6 { width: 50%; }
  .col-sm-7 { width: 58.333%; }
}
@media (min-width: 768px) {
  .col-md-3 { width: 25%; }
  .col-md-4 { width: 33.333%; }
  .col-md-5 { width: 41.667%; }
  .col-md-6 { width: 50%; }
  .col-md-7 { width: 58.333%; }
  .col-md-8 { width: 66.667%; }
  .col-md-9 { width: 75%; }
  .col-md-12 { width: 100%; }
}
@media (min-width: 992px) {
  .col-lg-3 { width: 25%; }
  .col-lg-4 { width: 33.333%; }
  .col-lg-6 { width: 50%; }
  .col-lg-8 { width: 66.667%; }
}

/* Flex Utilities (not already defined above) */
.d-inline-flex { display: inline-flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-grow-1 { flex-grow: 1; }
.align-items-start { align-items: flex-start; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }

/* Spacing Utilities (not already defined above) */
.mb-5 { margin-bottom: 3rem; }
.ms-1 { margin-left: 0.25rem; }
.ms-2 { margin-left: 0.5rem; }
.me-1 { margin-right: 0.25rem; }
.me-2 { margin-right: 0.5rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.pb-1 { padding-bottom: 0.25rem; }
.pb-2 { padding-bottom: 0.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.pt-0 { padding-top: 0; }
.pt-2 { padding-top: 0.5rem; }
.ps-0 { padding-left: 0; }
.pe-0 { padding-right: 0; }
.p-5 { padding: 3rem; }

/* Form Styles */
.form-label { display: block; font-weight: 500; margin-bottom: 0.5rem; color: var(--text-primary); font-size: var(--text-sm); }
.form-control { display: block; width: 100%; padding: 0.5rem 0.75rem; font-size: var(--text-sm); line-height: var(--leading-normal); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background-color: var(--main-input-background, var(--surface-raised)); color: var(--text-primary); transition: border-color 0.15s ease; }
.form-control:focus { border-color: var(--interactive-base); outline: 0; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }
.form-select { display: block; width: 100%; padding: 0.5rem 2rem 0.5rem 0.75rem; font-size: var(--text-sm); line-height: var(--leading-normal); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background-color: var(--main-input-background, var(--surface-raised)); color: var(--text-primary); appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 16px 12px; }
.form-select:focus { border-color: var(--interactive-base); outline: 0; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }
.form-group { margin-bottom: 1rem; }
.form-check { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.form-check-input { width: 1rem; height: 1rem; border: 1px solid var(--border-subtle); border-radius: 0.25rem; appearance: none; background-color: var(--main-input-background, var(--surface-raised)); }
.form-check-input:checked { background-color: var(--primary-color); border-color: var(--primary-color); }
.form-check-label { font-size: var(--text-sm); cursor: pointer; }

/* Table Styles */
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--text-sm); }
.table th, .table td { padding: 0.75rem; border-bottom: 1px solid var(--border-subtle); text-align: left; vertical-align: middle; }
.table thead th { background-color: var(--surface-overlay); font-weight: 600; }
.table-striped tbody tr:nth-child(odd) { background-color: rgba(0, 0, 0, 0.02); }
.table-hover tbody tr:hover { background-color: rgba(0, 0, 0, 0.04); }
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-bordered { border: 1px solid var(--border-subtle); }
.table-bordered th, .table-bordered td { border: 1px solid var(--border-subtle); }

/* Background and Text Utilities (not already defined above) */
.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }
.bg-success { background-color: var(--color-success); }
.bg-danger { background-color: var(--color-danger); }
.bg-warning { background-color: var(--color-warning); }
.bg-info { background-color: var(--color-info); }
.bg-light { background-color: var(--color-neutral-lightest); }
.bg-dark { background-color: var(--color-neutral-darkest); }
.bg-white { background-color: var(--surface-raised); }
.text-white { color: var(--color-white); }
.text-end { text-align: right; }
.text-start { text-align: left; }
.text-danger { color: var(--color-danger); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-info { color: var(--color-info); }
.text-muted { color: var(--color-neutral-medium); }
.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }
.fw-normal { font-weight: 400; }

/* Alert Utilities (not already defined above) */
.alert-info {
    color: var(--color-info-700, #0c5460);
    background-color: var(--color-info-100, #d1ecf1);
    border-color: var(--color-info-200, #bee5eb);
}

.alert-success {
    color: var(--color-success-dark, #155724);
    background-color: var(--color-success-lightest, #d4edda);
    border-color: var(--color-success-light, #c3e6cb);
}

/* Visually Hidden (accessible screen-reader utility) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Misc Utilities */
.border-0 { border: 0; }
.border-bottom { border-bottom: 1px solid var(--border-subtle); }
.rounded { border-radius: var(--radius-md); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.overflow-hidden { overflow: hidden; }
.position-relative { position: relative; }
.float-end { float: right; }
.float-start { float: left; }
.btn-close { background: transparent; border: 0; font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0.25rem; opacity: 0.5; color: inherit; }
.btn-close:hover { opacity: 1; }
.btn-close::before { content: '\00d7'; }
.badge { display: inline-flex; align-items: center; padding: 0.25rem 0.5rem; font-size: 0.75rem; font-weight: 600; border-radius: 9999px; color: var(--color-white); }
.btn-group > .btn { border-radius: 0; }
.btn-group > .btn:first-child { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.btn-group > .btn:last-child { border-radius: 0 var(--radius-md) var(--radius-md) 0; }

/* ==========================================================================
   Nav Tabs (Bootstrap replacement - used by 7+ files)
   ========================================================================== */
.nav { display: flex; flex-wrap: wrap; padding-left: 0; margin-bottom: 0; list-style: none; }
.nav-tabs { border-bottom: 2px solid var(--border-subtle, #dee2e6); }
.nav-item { margin-bottom: -2px; }
.nav-link { display: block; padding: 0.5rem 1rem; color: var(--text-secondary, #6c757d); text-decoration: none; border: 2px solid transparent; border-top-left-radius: var(--radius-md, 6px); border-top-right-radius: var(--radius-md, 6px); cursor: pointer; background: none; font-size: var(--text-sm, 0.875rem); transition: color 0.15s ease, border-color 0.15s ease; }
.nav-link:hover { color: var(--text-primary, #212529); border-bottom-color: var(--border-subtle, #dee2e6); }
.nav-link.active { color: var(--color-primary); border-bottom: 2px solid var(--color-primary); font-weight: 600; }
.nav-link.inactive { color: var(--text-secondary, #6c757d); }

/* ==========================================================================
   Modal System (Bootstrap replacement - used by 48+ files)
   ========================================================================== */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1050; overflow-y: auto; outline: 0; }
.modal.fade { opacity: 0; transition: opacity 0.15s linear; }
.modal.fade.show { opacity: 1; }
.modal.show { display: block; }
.modal-backdrop { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 1040; }
.modal-dialog { position: relative; width: auto; margin: 1.75rem auto; max-width: 500px; pointer-events: none; }
.modal-dialog-centered { display: flex; align-items: center; min-height: calc(100% - 3.5rem); }
.modal-dialog-lg { max-width: 800px; }
.modal-content { position: relative; display: flex; flex-direction: column; width: 100%; pointer-events: auto; background-color: var(--surface-raised, #fff); border: 1px solid var(--border-subtle, #dee2e6); border-radius: var(--radius-lg, 8px); box-shadow: var(--shadow-lg, 0 4px 16px rgba(0, 0, 0, 0.15)); outline: 0; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem; border-bottom: 1px solid var(--border-subtle, #dee2e6); }
.modal-title { margin: 0; font-weight: 600; font-size: 1.1rem; color: var(--text-primary, #212529); }
.modal-body { position: relative; flex: 1 1 auto; padding: 1rem; }
.modal-footer { display: flex; align-items: center; justify-content: flex-end; padding: 0.75rem 1rem; border-top: 1px solid var(--border-subtle, #dee2e6); gap: 0.5rem; }

/* ==========================================================================
   Alert Dismissible (Bootstrap replacement)
   ========================================================================== */
.alert-dismissible { position: relative; padding-right: 3rem; }
.alert-dismissible .btn-close { position: absolute; top: 0.5rem; right: 0.5rem; }

/* ==========================================================================
   Z-Index Overrides
   ========================================================================== */

/* ==========================================================================
   Notifications (merged from notifications.css)
   ========================================================================== */
/* Notification Bell & Dropdown */
.notification-badge {
    position: absolute;
    top: 2px;
    right: 0;
    background: var(--color-error-500);
    color: var(--color-white);
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
    padding: 0 4px;
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 400px;
    max-height: 520px;
    background: var(--surface-raised);
    border: 1px solid var(--border-light, var(--color-border));
    border-radius: var(--card-radius, 8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    z-index: 100000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    color: var(--color-white);
    background: var(--theme-primary, var(--color-primary));
    flex-shrink: 0;
}

.notification-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

html body .navbar .notification-header .btn-link,
html body .navbar .notification-header .btn-link:focus,
html body .navbar .notification-header .btn-link:active,
html body .navbar .notification-header .btn-link:focus-visible {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 400;
    text-shadow: none;
    box-shadow: none;
    outline: none;
    background: none;
    border-color: transparent;
}

html body .navbar .notification-header .btn-link:hover {
    color: var(--color-white);
    text-decoration: underline;
    box-shadow: none;
    outline: none;
    background: none;
}

/* ── Override navbar text color for notification dropdown content ── */

html body .navbar .notification-dropdown,
html body .navbar .notification-dropdown *,
html body .navbar .notification-dropdown a,
html body .navbar .notification-dropdown span,
html body .navbar .notification-dropdown div,
html body .navbar .notification-dropdown button,
html body .navbar .notification-dropdown p {
    color: var(--color-text-primary);
    text-shadow: none;
    font-weight: 400;
}

/* Restore Font Awesome Solid icon font-weight (fas needs 900 to render glyphs) */
html body .navbar .notification-dropdown .fas,
html body .navbar .notification-dropdown .fa-solid {
    font-weight: 900;
}

html body .navbar .notification-header,
html body .navbar .notification-header *,
html body .navbar .notification-header a,
html body .navbar .notification-header span,
html body .navbar .notification-header button {
    color: var(--color-white);
    font-weight: 600;
    text-shadow: none;
}

/* ── Filter Tabs ── */

.notification-tabs {
    display: flex;
    border-bottom: 1px solid var(--color-border-light);
    background: var(--surface-base);
    flex-shrink: 0;
}

html body .navbar .notification-tab {
    flex: 1;
    padding: 7px 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    border: none;
    background: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    text-shadow: none;
}

html body .navbar .notification-tab:hover {
    color: var(--color-text-primary);
    background: var(--color-bg-surface-hover);
}

html body .navbar .notification-tab.active {
    color: var(--theme-primary, var(--color-primary));
    border-bottom-color: var(--theme-primary, var(--color-primary));
    font-weight: 600;
}

/* ── Notification List ── */

.notification-list {
    flex: 1;
    max-height: 380px;
    overflow-y: auto;
    background: var(--surface-raised);
}

/* ── Notification Item (div container) ── */

.notification-dropdown .notification-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--color-border-light);
    transition: background 0.15s;
    position: relative;
}

.notification-dropdown .notification-item:hover {
    background: var(--color-bg-surface-hover);
}

.notification-dropdown .notification-item.unread {
    background: var(--color-aim-light);
}

.notification-dropdown .notification-item.unread:hover {
    background: var(--color-aim-light);
}

.notification-dropdown .notification-item.flagged {
    border-left: 3px solid var(--color-state-warning);
    padding-left: 11px;
}

/* ── Avatar with Type Badge ── */

.notification-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

html body .navbar .notification-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--theme-primary, var(--color-primary));
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    text-shadow: none;
}

html body .navbar .notification-type-icon {
    position: absolute;
    bottom: -2px;
    right: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--surface-raised);
    border: 1.5px solid var(--color-border, var(--color-gray-200));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    color: var(--color-text-secondary);
    text-shadow: none;
}

html body .navbar .notification-type-icon i {
    color: inherit;
}

/* ── Body Link ── */

html body .navbar .notification-dropdown .notification-body {
    flex: 1;
    min-width: 0;
    color: var(--color-text-primary);
    text-shadow: none;
    text-decoration: none;
    font-weight: 400;
}

html body .navbar .notification-dropdown .notification-body:hover {
    text-decoration: none;
}

html body .navbar .notification-dropdown .notification-message {
    font-size: 0.82rem;
    line-height: 1.3;
    margin-bottom: 2px;
    color: var(--color-text-primary);
    text-shadow: none;
}

html body .navbar .notification-dropdown .notification-message strong {
    color: var(--color-black);
    font-weight: 600;
}

html body .navbar .notification-dropdown .notification-meta {
    font-size: 0.72rem;
    color: var(--color-text-secondary);
    text-shadow: none;
    font-weight: 400;
}

/* ── Per-Item Actions (visible on hover) ── */

html body .navbar .notification-item-actions {
    display: none;
    position: absolute;
    top: 6px;
    right: 8px;
    gap: 2px;
    background: var(--surface-raised);
    border: 1px solid var(--color-border, var(--color-gray-200));
    border-radius: 4px;
    padding: 2px 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

html body .navbar .notification-item:hover .notification-item-actions {
    display: flex;
}

html body .navbar .notification-item-actions button {
    border: none;
    background: none;
    cursor: pointer;
    padding: 3px 5px;
    font-size: 0.72rem;
    color: var(--color-text-tertiary);
    border-radius: 3px;
    transition: color 0.15s, background 0.15s;
    text-shadow: none;
}

html body .navbar .notification-item-actions button:hover {
    color: var(--color-text);
    background: var(--color-bg-surface-hover);
}

html body .navbar .notification-item-actions .notification-flag-btn {
    color: var(--color-interactive-disabled);
}

html body .navbar .notification-item.flagged .notification-item-actions .notification-flag-btn {
    color: var(--color-state-warning);
}

/* ── Load More ── */

html body .navbar .notification-load-more {
    border-top: 1px solid var(--color-border, #eee);
    background: var(--surface-base);
    flex-shrink: 0;
}

html body .navbar .notification-load-more .btn-link {
    font-size: 0.8rem;
    color: var(--theme-primary, var(--color-primary));
    text-decoration: none;
    text-shadow: none;
    padding: 8px;
}

html body .navbar .notification-load-more .btn-link:hover {
    text-decoration: underline;
}

/* Empty / loading state */
html body .navbar .notification-dropdown .text-muted {
    color: var(--color-text-tertiary);
    text-shadow: none;
    font-weight: 400;
}

/* ═══════════════════════════════════════════
   Dark Theme Overrides — AIM Dark
   ═══════════════════════════════════════════ */

body[data-theme="aim-dark"] .notification-dropdown {
    background: #2c2e3a;
    border-color: rgba(98, 114, 164, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

body[data-theme="aim-dark"] .notification-header {
    background: #6272a4;
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

body[data-theme="aim-dark"] .notification-tabs {
    background: #353748;
    border-bottom-color: rgba(98, 114, 164, 0.3);
}

body[data-theme="aim-dark"] .navbar .notification-tab {
    color: #aaa;
}

body[data-theme="aim-dark"] .navbar .notification-tab:hover {
    color: #ddd;
    background: rgba(98, 114, 164, 0.15);
}

body[data-theme="aim-dark"] .navbar .notification-tab.active {
    color: #9bb3e0;
    border-bottom-color: #9bb3e0;
}

body[data-theme="aim-dark"] .notification-list {
    background: #2c2e3a;
}

body[data-theme="aim-dark"] .notification-dropdown .notification-item {
    border-bottom-color: rgba(98, 114, 164, 0.2);
}

body[data-theme="aim-dark"] .notification-dropdown .notification-item:hover {
    background: rgba(98, 114, 164, 0.2);
}

body[data-theme="aim-dark"] .notification-dropdown .notification-item.unread {
    background: rgba(98, 114, 164, 0.15);
}

body[data-theme="aim-dark"] .notification-dropdown .notification-item.unread:hover {
    background: rgba(98, 114, 164, 0.25);
}

body[data-theme="aim-dark"] .navbar .notification-dropdown .notification-body {
    color: #f0f0f0;
}

body[data-theme="aim-dark"] .navbar .notification-dropdown .notification-message {
    color: #f0f0f0;
}

body[data-theme="aim-dark"] .navbar .notification-dropdown .notification-message strong {
    color: var(--color-white);
}

body[data-theme="aim-dark"] .navbar .notification-dropdown .notification-meta {
    color: #999;
}

body[data-theme="aim-dark"] .navbar .notification-type-icon {
    background: #3a3d4e;
    border-color: #555;
    color: #bbb;
}

body[data-theme="aim-dark"] .navbar .notification-item-actions {
    background: #3a3d4e;
    border-color: #555;
}

body[data-theme="aim-dark"] .navbar .notification-item-actions button {
    color: #aaa;
}

body[data-theme="aim-dark"] .navbar .notification-item-actions button:hover {
    color: #eee;
    background: rgba(98, 114, 164, 0.3);
}

body[data-theme="aim-dark"] .navbar .notification-load-more {
    background: #353748;
    border-top-color: rgba(98, 114, 164, 0.3);
}

body[data-theme="aim-dark"] .navbar .notification-load-more .btn-link {
    color: #9bb3e0;
}

body[data-theme="aim-dark"] .navbar .notification-dropdown .text-muted {
    color: #999;
}

body[data-theme="aim-dark"] .navbar .notification-group {
    border-bottom-color: rgba(98, 114, 164, 0.2);
}

body[data-theme="aim-dark"] .navbar .notification-group-header:hover {
    background: rgba(98, 114, 164, 0.2);
}

body[data-theme="aim-dark"] .navbar .notification-group-icon {
    background: rgba(98, 114, 164, 0.2);
    color: #8097c4;
}

body[data-theme="aim-dark"] .navbar .notification-group-title {
    color: #f0f0f0;
}

body[data-theme="aim-dark"] .navbar .notification-group-meta {
    color: #999;
}

body[data-theme="aim-dark"] .navbar .notification-group-toggle {
    color: #999;
}

body[data-theme="aim-dark"] .navbar .notification-group-children {
    background: #353748;
    border-top-color: rgba(98, 114, 164, 0.2);
}

body[data-theme="aim-dark"] .navbar .notification-group-child {
    border-left-color: rgba(98, 114, 164, 0.4);
}

/* ═══════════════════════════════════════════
   Dark Theme Overrides — Cornerstone Dark
   ═══════════════════════════════════════════ */

body[data-theme="cornerstone-dark"] .notification-dropdown {
    background: #1f2e33;
    border-color: rgba(0, 82, 107, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

body[data-theme="cornerstone-dark"] .notification-header {
    background: #00526B;
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

body[data-theme="cornerstone-dark"] .notification-tabs {
    background: #253a40;
    border-bottom-color: rgba(0, 82, 107, 0.3);
}

body[data-theme="cornerstone-dark"] .navbar .notification-tab {
    color: #8aacb5;
}

body[data-theme="cornerstone-dark"] .navbar .notification-tab:hover {
    color: #c0dce3;
    background: rgba(0, 82, 107, 0.15);
}

body[data-theme="cornerstone-dark"] .navbar .notification-tab.active {
    color: #5ec4db;
    border-bottom-color: #5ec4db;
}

body[data-theme="cornerstone-dark"] .notification-list {
    background: #1f2e33;
}

body[data-theme="cornerstone-dark"] .notification-dropdown .notification-item {
    border-bottom-color: rgba(0, 82, 107, 0.2);
}

body[data-theme="cornerstone-dark"] .notification-dropdown .notification-item:hover {
    background: rgba(0, 82, 107, 0.2);
}

body[data-theme="cornerstone-dark"] .notification-dropdown .notification-item.unread {
    background: rgba(0, 82, 107, 0.15);
}

body[data-theme="cornerstone-dark"] .notification-dropdown .notification-item.unread:hover {
    background: rgba(0, 82, 107, 0.25);
}

body[data-theme="cornerstone-dark"] .navbar .notification-dropdown .notification-body {
    color: #e0ecee;
}

body[data-theme="cornerstone-dark"] .navbar .notification-dropdown .notification-message {
    color: #e0ecee;
}

body[data-theme="cornerstone-dark"] .navbar .notification-dropdown .notification-message strong {
    color: var(--color-white);
}

body[data-theme="cornerstone-dark"] .navbar .notification-dropdown .notification-meta {
    color: #8aacb5;
}

body[data-theme="cornerstone-dark"] .navbar .notification-type-icon {
    background: #2a3c42;
    border-color: #3d5a63;
    color: #8aacb5;
}

body[data-theme="cornerstone-dark"] .navbar .notification-item-actions {
    background: #2a3c42;
    border-color: #3d5a63;
}

body[data-theme="cornerstone-dark"] .navbar .notification-item-actions button {
    color: #8aacb5;
}

body[data-theme="cornerstone-dark"] .navbar .notification-item-actions button:hover {
    color: #e0ecee;
    background: rgba(0, 82, 107, 0.3);
}

body[data-theme="cornerstone-dark"] .navbar .notification-load-more {
    background: #253a40;
    border-top-color: rgba(0, 82, 107, 0.3);
}

body[data-theme="cornerstone-dark"] .navbar .notification-load-more .btn-link {
    color: #5ec4db;
}

body[data-theme="cornerstone-dark"] .navbar .notification-dropdown .text-muted {
    color: #8aacb5;
}

body[data-theme="cornerstone-dark"] .navbar .notification-group {
    border-bottom-color: rgba(0, 82, 107, 0.2);
}

body[data-theme="cornerstone-dark"] .navbar .notification-group-header:hover {
    background: rgba(0, 82, 107, 0.2);
}

body[data-theme="cornerstone-dark"] .navbar .notification-group-icon {
    background: rgba(0, 82, 107, 0.2);
    color: #5aa8c0;
}

body[data-theme="cornerstone-dark"] .navbar .notification-group-title {
    color: #e0ecee;
}

body[data-theme="cornerstone-dark"] .navbar .notification-group-meta {
    color: #8aacb5;
}

body[data-theme="cornerstone-dark"] .navbar .notification-group-toggle {
    color: #8aacb5;
}

body[data-theme="cornerstone-dark"] .navbar .notification-group-children {
    background: #253a40;
    border-top-color: rgba(0, 82, 107, 0.2);
}

body[data-theme="cornerstone-dark"] .navbar .notification-group-child {
    border-left-color: rgba(0, 82, 107, 0.4);
}

/* ═══════════════════════════════════════════
   Light Theme Override — Cornerstone Light
   ═══════════════════════════════════════════ */

body[data-theme="cornerstone-light"] .notification-header {
    background: #003e52;
}

body[data-theme="cornerstone-light"] .navbar .notification-avatar {
    background: #003e52;
}

body[data-theme="cornerstone-light"] .navbar .notification-tab.active {
    color: #003e52;
    border-bottom-color: #003e52;
}

body[data-theme="cornerstone-light"] .navbar .notification-load-more .btn-link {
    color: #003e52;
}

body[data-theme="cornerstone-light"] .navbar .notification-group-icon {
    background: #e6f3f7;
    color: #003e52;
}

/* ═══════════════════════════════════════════
   Grouped Notifications (Phase 4) — Dropdown
   ═══════════════════════════════════════════ */

.notification-group {
    border-bottom: 1px solid var(--color-border-light);
}

.notification-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s;
}

.notification-group-header:hover {
    background: var(--color-bg-surface-hover);
}

html body .navbar .notification-group-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-aim-light);
    color: var(--color-aim-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    text-shadow: none;
}

html body .navbar .notification-group-icon i {
    color: inherit;
    text-shadow: none;
}

.notification-group-info {
    flex: 1;
    min-width: 0;
}

html body .navbar .notification-group-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.3;
    text-shadow: none;
}

html body .navbar .notification-group-meta {
    font-size: 0.72rem;
    color: var(--color-text-secondary);
    font-weight: 400;
    text-shadow: none;
}

html body .navbar .notification-group-toggle {
    flex-shrink: 0;
    padding: 4px 6px;
    color: var(--color-text-tertiary);
    font-size: 0.75rem;
    transition: transform 0.2s;
    text-shadow: none;
}

.notification-group.expanded .notification-group-toggle i {
    transform: rotate(180deg);
}

.notification-group-children {
    border-top: 1px solid var(--color-border-light);
    background: var(--surface-base);
}

.notification-group-children .notification-item {
    padding-left: 28px;
}

.notification-group-child {
    border-left: 3px solid var(--color-aim-light);
}

/* ═══════════════════════════════════════════
   @Mention Autocomplete Dropdown
   ═══════════════════════════════════════════ */

.mention-dropdown {
    background: var(--surface-raised);
    border: 1px solid var(--color-border, var(--color-gray-200));
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 240px;
    overflow-y: auto;
}

.mention-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.1s;
}

.mention-item:hover {
    background: var(--color-aim-light);
}

.mention-item.mention-empty {
    color: var(--color-text-tertiary);
    cursor: default;
    font-size: 0.82rem;
}

.mention-item.mention-empty:hover {
    background: transparent;
}

.mention-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--theme-primary, var(--color-primary));
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 600;
    flex-shrink: 0;
}

.mention-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mention-name {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--color-text);
}

.mention-email {
    font-size: 0.7rem;
    color: var(--color-text-tertiary);
}

/* Dark theme overrides for mention dropdown */

body[data-theme="aim-dark"] .mention-dropdown {
    background: #2c2e3a;
    border-color: rgba(98, 114, 164, 0.4);
}

body[data-theme="aim-dark"] .mention-item:hover {
    background: rgba(98, 114, 164, 0.2);
}

body[data-theme="aim-dark"] .mention-name {
    color: #f0f0f0;
}

body[data-theme="aim-dark"] .mention-email {
    color: #999;
}

body[data-theme="aim-dark"] .mention-item.mention-empty {
    color: #999;
}

body[data-theme="cornerstone-dark"] .mention-dropdown {
    background: #1f2e33;
    border-color: rgba(0, 82, 107, 0.4);
}

body[data-theme="cornerstone-dark"] .mention-item:hover {
    background: rgba(0, 82, 107, 0.2);
}

body[data-theme="cornerstone-dark"] .mention-name {
    color: #e0ecee;
}

body[data-theme="cornerstone-dark"] .mention-email {
    color: #8aacb5;
}

body[data-theme="cornerstone-dark"] .mention-item.mention-empty {
    color: #8aacb5;
}

body[data-theme="cornerstone-light"] .mention-avatar {
    background: #003e52;
}
.unified-filter-modal { z-index: 999999; }

/* ==========================================================================
   Extended Button Styles (merged from components/buttons.css)
   ========================================================================== */

/* Extra Small button */
.btn-xs {
    padding: var(--space-0-5) var(--space-sm);
    font-size: var(--text-xs);
    min-height: 1.5rem;
    height: 1.5rem;
}

/* Medium button (explicit, matches default) */
.btn-md {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-sm);
    min-height: var(--btn-height-md);
    height: var(--btn-height-md);
}

/* Extra Large button */
.btn-xl {
    padding: var(--space-lg) var(--space-xl);
    font-size: var(--text-lg);
    min-height: var(--btn-height-xl);
    height: var(--btn-height-xl);
}

/* Square button (icon only) */
.btn-square {
    width: var(--btn-height-md);
    height: var(--btn-height-md);
    padding: 0;
}

.btn-square.btn-sm {
    width: var(--btn-height-sm);
    height: var(--btn-height-sm);
}

.btn-square.btn-lg {
    width: var(--btn-height-lg);
    height: var(--btn-height-lg);
}

.btn-square.btn-xl {
    width: var(--btn-height-xl);
    height: var(--btn-height-xl);
}

/* Circle button */
.btn-circle {
    border-radius: var(--radius-full);
}

/* Pill button */
.btn-pill {
    border-radius: var(--radius-full);
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
}

/* Loading state */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::before {
    content: '';
    position: absolute;
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: var(--radius-full);
    animation: btn-loading-spin 1s linear infinite;
}

@keyframes btn-loading-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Block button (full width) */
.btn-block {
    display: flex;
    width: 100%;
}

/* Vertical button group */
.btn-group-vertical {
    display: inline-flex;
    flex-direction: column;
    vertical-align: middle;
}

.btn-group-vertical > .btn {
    width: 100%;
    border-radius: 0;
    margin-top: -1px;
}

.btn-group-vertical > .btn:first-child {
    border-top-left-radius: var(--radius-md);
    border-top-right-radius: var(--radius-md);
    margin-top: 0;
}

.btn-group-vertical > .btn:last-child {
    border-bottom-left-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
}

/* Toolbar button */
.btn-toolbar {
    color: var(--body-text-color);
}

.btn-toolbar:hover {
    background-color: var(--color-info-100);
}

.btn-toolbar .selected {
    background-color: var(--primary-border);
    color: var(--body-text-color);
}

/* Action buttons (small utility) */
.action-btn {
    width: 1.375rem;
    height: 1.375rem;
    padding: var(--space-0-5);
    margin: 0 var(--space-px);
    font-size: var(--text-2xs);
    border: var(--border-1) solid var(--border-subtle);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-colors);
    background-color: var(--surface-raised);
    color: var(--text-primary);
}

.action-btn:hover {
    background-color: var(--primary-alpha-10);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.action-btn.view-btn {
    background-color: var(--color-info-lightest);
    color: var(--color-info-dark);
    border-color: var(--color-info);
}

.action-btn.edit-btn {
    background-color: var(--color-warning-lightest);
    color: var(--color-warning-dark);
    border-color: var(--color-warning);
}

.action-btn.delete-btn {
    background-color: var(--color-danger-lightest);
    color: var(--color-danger-dark);
    border-color: var(--color-danger);
}

.action-btn.digital-twin-btn {
    background-color: var(--color-info-lightest);
    color: var(--color-info-dark);
    border-color: var(--color-info);
}

/* View mode buttons (site details / layout toggle) */
.view-mode-btn {
    background: transparent;
    border: var(--border-1) solid var(--primary-color);
    color: var(--primary-color);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-colors);
    font-size: var(--text-sm);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    text-decoration: none;
    font-weight: var(--font-medium);
}

.view-mode-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-inverse);
    text-decoration: none;
}

.view-mode-btn.active {
    background-color: var(--primary-color);
    color: var(--text-inverse);
    border-color: var(--primary-color);
}

.view-mode-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: var(--color-neutral-light);
    color: var(--color-neutral-light);
    background: transparent;
}

/* Layout switcher */
.layout-switcher .btn.active {
    background-color: var(--sites-primary-color, var(--color-primary));
    color: var(--color-white);
    border-color: var(--sites-primary-color, var(--color-primary));
}

.layout-switcher .btn:not(.active) {
    background-color: transparent;
    color: var(--sites-primary-color, var(--color-primary));
    border-color: var(--sites-border-color, var(--color-border));
}

.layout-switcher .btn:not(.active):hover {
    background-color: var(--sites-table-hover, var(--color-bg-surface-hover));
}

/* Dropzone button */
.btn-dropzone {
    align-items: center;
    justify-content: center;
    display: flex;
    cursor: pointer;
    position: relative;
    height: 35px;
    width: auto;
    padding-top: 20px;
}

.btn-dropzone:hover {
    background-color: var(--color-bg-surface-hover);
    color: var(--color-text-muted);
}

.btn-dropzone input[type=file] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.btn-dropzone-drag {
    background-color: palegreen;
}

/* Action status boxes */
.completed, .live, .due-soon, .overdue {
    color: var(--color-black);
    min-height: 150px;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 5px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1020;
}

.completed { background-color: var(--brand-primary, #8481c7); }
.live { background-color: var(--color-success-medium, #81c784); }
.due-soon { background-color: var(--color-warning-medium, #ffb74d); }
.overdue { background-color: var(--color-danger-medium, #e33371); }

.completed:hover, .live:hover, .due-soon:hover, .overdue:hover {
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.completed.selected, .live.selected, .due-soon.selected, .overdue.selected {
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: bold;
}

/* Pagination */
.page-link {
    cursor: pointer;
    width: 100%;
}

.page-link:disabled {
    cursor: default;
    pointer-events: none;
    opacity: 0.65;
    color: grey;
}

.pagination {
    max-width: 800px;
    width: 100%;
    margin-left: 10px;
}

/* Back button */
.aim-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0.5rem;
    margin-right: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 0.375rem;
    background-color: var(--color-bg-surface);
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.aim-back-button:hover {
    background-color: var(--color-bg-muted);
    color: var(--color-text-secondary);
    border-color: var(--color-border-strong);
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.15);
}

.aim-back-button:active {
    background-color: var(--color-bg-muted);
    transform: scale(0.97);
}

.aim-back-button:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
}

/* Accessibility: high contrast mode */
@media (prefers-contrast: high) {
    .btn {
        border-width: var(--border-2);
    }

    .btn-primary,
    .btn-success,
    .btn-danger,
    .btn-info {
        border-color: currentColor;
    }
}

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
    .btn {
        transition: none;
    }

    .btn-loading::before {
        animation: none;
    }
}

/* Mobile: action buttons larger on touch */
@media (max-width: 640px) {
    .action-btn {
        width: 2rem;
        height: 2rem;
        font-size: var(--text-xs);
    }
}