/* ========================================
   JHUB AFRICA TRACKER - UNIFIED STYLESHEET
   Complete styling system with consistent color scheme
   ======================================== */

/* ========================================
   COLOR SYSTEM - JHUB AFRICA BRAND
   ======================================== */
:root {
    /* Primary Brand Colors */
    --jhub-primary: #2c409a;      /* Primary Blue */
    --jhub-alert: #fd1616;        /* Alert Red */
    --jhub-success: #3fa845;      /* Success Green */
    --jhub-black: #000000;        /* Pure Black */
    --jhub-purple: #0e015b;       /* Deep Purple */
    
    /* Color Variants */
    --jhub-primary-light: #3b54c7;
    --jhub-primary-dark: #253683;
    --jhub-primary-darker: #1f2d6c;
    
    --jhub-success-light: #56c05c;
    --jhub-success-dark: #328637;
    --jhub-success-darker: #2c7630;
    
    --jhub-alert-light: #ff4444;
    --jhub-alert-dark: #dc1414;
    
    --jhub-purple-light: #1a0a8a;
    
    /* Bootstrap Color Overrides */
    --bs-primary: #2c409a;
    --bs-primary-rgb: 44, 64, 154;
    --bs-success: #3fa845;
    --bs-success-rgb: 63, 168, 69;
    --bs-danger: #fd1616;
    --bs-danger-rgb: 253, 22, 22;
    
    /* Neutral Colors */
    --jhub-light: #f8f9fa;
    --jhub-light-gray: #e9ecef;
    --jhub-gray: #6c757d;
    --jhub-dark-gray: #343a40;
    --jhub-white: #ffffff;
    
    /* Semantic Colors */
    --color-info: #17a2b8;
    --color-warning: #ffc107;
    
    /* Typography */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Spacing & Layout */
    --border-radius-sm: 0.25rem;
    --border-radius: 0.375rem;
    --border-radius-lg: 0.5rem;
    --border-radius-xl: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    
    /* Transitions */
    --transition-fast: all 0.15s ease-in-out;
    --transition-base: all 0.3s ease-in-out;
    --transition-slow: all 0.5s ease-in-out;
}

/* ========================================
   GLOBAL RESET & BASE STYLES
   ======================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--jhub-dark-gray);
    background-color: var(--jhub-light);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-semibold);
    line-height: 1.2;
    color: var(--jhub-purple);
    margin-bottom: 0.75rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--jhub-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--jhub-primary-dark);
    text-decoration: none;
}

strong, b {
    font-weight: var(--font-weight-bold);
}

/* ========================================
   BUTTONS - UNIFIED SYSTEM
   ======================================== */
.btn {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-medium);
    border-radius: var(--border-radius);
    padding: 0.625rem 1.5rem;
    transition: var(--transition-base);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn:focus {
    outline: 2px solid var(--jhub-primary);
    outline-offset: 2px;
    box-shadow: none;
}

/* Primary Button */
.btn-primary {
    background: var(--jhub-primary);
    color: var(--jhub-white);
    border: 2px solid var(--jhub-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--jhub-primary-dark);
    border-color: var(--jhub-primary-dark);
    color: var(--jhub-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    background: var(--jhub-primary-darker);
    border-color: var(--jhub-primary-darker);
    transform: translateY(0);
}

/* Success Button */
.btn-success {
    background: var(--jhub-success);
    color: var(--jhub-white);
    border: 2px solid var(--jhub-success);
}

.btn-success:hover,
.btn-success:focus {
    background: var(--jhub-success-dark);
    border-color: var(--jhub-success-dark);
    color: var(--jhub-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Danger Button */
.btn-danger {
    background: var(--jhub-alert);
    color: var(--jhub-white);
    border: 2px solid var(--jhub-alert);
}

.btn-danger:hover,
.btn-danger:focus {
    background: var(--jhub-alert-dark);
    border-color: var(--jhub-alert-dark);
    color: var(--jhub-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Secondary Button */
.btn-secondary {
    background: var(--jhub-purple);
    color: var(--jhub-white);
    border: 2px solid var(--jhub-purple);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--jhub-purple-light);
    border-color: var(--jhub-purple-light);
    color: var(--jhub-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Outline Buttons */
.btn-outline-primary {
    background: transparent;
    color: var(--jhub-primary);
    border: 2px solid var(--jhub-primary);
}

.btn-outline-primary:hover {
    background: var(--jhub-primary);
    color: var(--jhub-white);
    border-color: var(--jhub-primary);
}

.btn-outline-success {
    background: transparent;
    color: var(--jhub-success);
    border: 2px solid var(--jhub-success);
}

.btn-outline-success:hover {
    background: var(--jhub-success);
    color: var(--jhub-white);
    border-color: var(--jhub-success);
}

.btn-outline-danger {
    background: transparent;
    color: var(--jhub-alert);
    border: 2px solid var(--jhub-alert);
}

.btn-outline-danger:hover {
    background: var(--jhub-alert);
    color: var(--jhub-white);
    border-color: var(--jhub-alert);
}

/* Button Sizes */
.btn-sm {
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
}

/* ========================================
   CARDS - UNIFIED SYSTEM
   ======================================== */
.card {
    background: var(--jhub-white);
    border: 1px solid var(--jhub-light-gray);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition-base);
    margin-bottom: 1.5rem;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, var(--jhub-primary) 0%, var(--jhub-purple) 100%);
    color: var(--jhub-white);
    border-bottom: none;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    padding: 1rem 1.5rem;
    font-weight: var(--font-weight-semibold);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background: var(--jhub-light);
    border-top: 1px solid var(--jhub-light-gray);
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    padding: 1rem 1.5rem;
}

/* Card Variants with Border Accents */
.card.border-left-primary {
    border-left: 4px solid var(--jhub-primary);
}

.card.border-left-success {
    border-left: 4px solid var(--jhub-success);
}

.card.border-left-danger {
    border-left: 4px solid var(--jhub-alert);
}

.card.border-left-warning {
    border-left: 4px solid var(--color-warning);
}

.card.border-left-info {
    border-left: 4px solid var(--color-info);
}

/* ========================================
   FORMS - UNIFIED SYSTEM
   ======================================== */
.form-control,
.form-select {
    border: 2px solid var(--jhub-light-gray);
    border-radius: var(--border-radius);
    padding: 0.625rem 1rem;
    font-size: 1rem;
    transition: var(--transition-fast);
    background: var(--jhub-white);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--jhub-primary);
    box-shadow: 0 0 0 0.2rem rgba(44, 64, 154, 0.25);
    outline: none;
}

.form-label {
    font-weight: var(--font-weight-medium);
    color: var(--jhub-purple);
    margin-bottom: 0.5rem;
}

.form-check-input {
    border: 2px solid var(--jhub-primary);
}

.form-check-input:checked {
    background-color: var(--jhub-primary);
    border-color: var(--jhub-primary);
}

.form-check-input:focus {
    border-color: var(--jhub-primary);
    box-shadow: 0 0 0 0.2rem rgba(44, 64, 154, 0.25);
}

/* Form Validation */
.is-invalid {
    border-color: var(--jhub-alert) !important;
}

.is-valid {
    border-color: var(--jhub-success) !important;
}

.invalid-feedback {
    color: var(--jhub-alert);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.valid-feedback {
    color: var(--jhub-success);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ========================================
   ALERTS - UNIFIED SYSTEM
   ======================================== */
.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: rgba(63, 168, 69, 0.1);
    color: var(--jhub-success-darker);
    border-left: 4px solid var(--jhub-success);
}

.alert-danger {
    background: rgba(253, 22, 22, 0.1);
    color: var(--jhub-alert-dark);
    border-left: 4px solid var(--jhub-alert);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
    border-left: 4px solid var(--color-warning);
}

.alert-info {
    background: rgba(23, 162, 184, 0.1);
    color: #0c5460;
    border-left: 4px solid var(--color-info);
}

.alert-primary {
    background: rgba(44, 64, 154, 0.1);
    color: var(--jhub-primary-darker);
    border-left: 4px solid var(--jhub-primary);
}

/* ========================================
   BADGES - UNIFIED SYSTEM
   ======================================== */
.badge {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    border-radius: var(--border-radius);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.bg-primary {
    background-color: var(--jhub-primary) !important;
    color: var(--jhub-white);
}

.bg-success {
    background-color: var(--jhub-success) !important;
    color: var(--jhub-white);
}

.bg-danger {
    background-color: var(--jhub-alert) !important;
    color: var(--jhub-white);
}

.bg-warning {
    background-color: var(--color-warning) !important;
    color: var(--jhub-black);
}

.bg-info {
    background-color: var(--color-info) !important;
    color: var(--jhub-white);
}

.bg-secondary {
    background-color: var(--jhub-purple) !important;
    color: var(--jhub-white);
}

/* ========================================
   TABLES - UNIFIED SYSTEM
   ======================================== */
.table {
    width: 100%;
    margin-bottom: 1rem;
    background-color: var(--jhub-white);
}

.table thead th {
    background: var(--jhub-light);
    color: var(--jhub-purple);
    font-weight: var(--font-weight-semibold);
    border-bottom: 2px solid var(--jhub-primary);
    padding: 1rem;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.table tbody tr {
    border-bottom: 1px solid var(--jhub-light-gray);
    transition: var(--transition-fast);
}

.table tbody tr:hover {
    background-color: rgba(44, 64, 154, 0.05);
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* ========================================
   NAVIGATION - PUBLIC NAVBAR
   ======================================== */
.public-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    padding: 1.2rem 0;
    transition: var(--transition-base);
}

.public-navbar.scrolled {
    padding: 0.8rem 0;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
}

.public-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0;
    margin: 0;
}

.public-navbar .navbar-brand img {
    height: 55px;
    width: auto;
    transition: var(--transition-base);
}

.public-navbar.scrolled .navbar-brand img {
    height: 45px;
}

.public-navbar .nav-link {
    color: var(--jhub-black);
    font-weight: var(--font-weight-semibold);
    font-size: 0.95rem;
    padding: 0.5rem 1.2rem;
    margin: 0 0.25rem;
    border-radius: 999px;
    position: relative;
    transition: var(--transition-base);
}

.public-navbar .nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 0;
    height: 3px;
    background: var(--jhub-success);
    border-radius: 3px;
    transform: translateX(-50%);
    transition: var(--transition-base);
}

.public-navbar .nav-link:hover {
    color: var(--jhub-purple);
}

.public-navbar .nav-link:hover::after,
.public-navbar .nav-link.active::after {
    width: 60%;
}

.public-navbar .btn-nav-cta {
    background: linear-gradient(135deg, var(--jhub-success), var(--jhub-success-dark));
    color: var(--jhub-white) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 999px;
    font-weight: var(--font-weight-bold);
    margin-left: 1rem;
    box-shadow: 0 5px 20px rgba(63, 168, 69, 0.3);
}

.public-navbar .btn-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(63, 168, 69, 0.4);
}

.public-navbar .btn-login-link {
    color: var(--jhub-purple) !important;
    border: 2px solid rgba(14, 1, 91, 0.15);
    border-radius: 999px;
    font-weight: var(--font-weight-semibold);
    padding: 0.55rem 1.4rem;
    margin-left: 0.5rem;
    transition: var(--transition-base);
}

.public-navbar .btn-login-link:hover {
    border-color: var(--jhub-purple);
    color: var(--jhub-white) !important;
    background: var(--jhub-purple);
}

.public-navbar .btn-nav-cta::after,
.public-navbar .btn-login-link::after {
    display: none;
}

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

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

.public-navbar .navbar-toggler-icon {
    filter: invert(20%);
}

/* Dropdown Menu */
.dropdown-menu {
    background: var(--jhub-white);
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 220px;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    color: var(--jhub-dark-gray);
    font-weight: var(--font-weight-medium);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dropdown-item i {
    color: var(--jhub-success);
    font-size: 1rem;
    width: 20px;
}

.dropdown-item:hover {
    background: var(--jhub-light);
    color: var(--jhub-purple);
    padding-left: 2rem;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: var(--jhub-light-gray);
}

/* ========================================
   DASHBOARD SIDEBAR
   ======================================== */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--jhub-primary) 0%, var(--jhub-purple) 100%);
    color: var(--jhub-white);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: var(--transition-base);
    z-index: 1000;
    box-shadow: var(--shadow-xl);
}

.sidebar-brand {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.sidebar-brand img {
    max-width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.875rem 1.5rem;
    margin: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: var(--font-weight-medium);
    transition: var(--transition-fast);
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1.125rem;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--jhub-white);
    transform: translateX(5px);
}

.sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    font-weight: var(--font-weight-semibold);
}

/* Main Content Area */
.main-content {
    margin-left: 260px;
    padding: 2rem;
    min-height: 100vh;
    background: var(--jhub-light);
    transition: var(--transition-base);
}

/* ========================================
   DASHBOARD TOP NAVBAR
   ======================================== */
.dashboard-navbar {
    background: var(--jhub-white);
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--jhub-light-gray);
    padding: 1rem 2rem;
    margin-left: 260px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.user-badge {
    background: rgba(44, 64, 154, 0.1);
    color: var(--jhub-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-lg);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: var(--font-weight-medium);
}

/* ========================================
   HERO SECTION - LANDING PAGE
   ======================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--jhub-primary) 0%, var(--jhub-purple) 100%);
    color: var(--jhub-white);
    position: relative;
    overflow: hidden;
    padding: 100px 0 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(63, 168, 69, 0.15) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(253, 22, 22, 0.1) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20px, 20px) rotate(5deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: var(--font-weight-bold);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--jhub-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: var(--font-weight-normal);
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-cta .btn {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    border-radius: 3rem;
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features-section {
    padding: 5rem 0;
    background: var(--jhub-white);
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius-xl);
    background: var(--jhub-white);
    border: 2px solid var(--jhub-light-gray);
    transition: var(--transition-base);
    height: 100%;
}

.feature-card:hover {
    border-color: var(--jhub-primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--jhub-primary) 0%, var(--jhub-purple) 100%);
    color: var(--jhub-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.feature-title {
    color: var(--jhub-purple);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ========================================
   AUTHENTICATION PAGES
   ======================================== */
.auth-body {
    background: linear-gradient(135deg, var(--jhub-primary-light) 0%, var(--jhub-purple) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: var(--jhub-white);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 3rem;
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
}

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

.auth-logo {
    margin-bottom: 1.5rem;
}

.auth-logo i {
    font-size: 3.5rem;
    color: var(--jhub-primary);
}

.auth-header h2 {
    color: var(--jhub-purple);
    font-size: 1.875rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--jhub-gray);
    font-size: 1rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--jhub-gray);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--jhub-light-gray);
}

.auth-divider span {
    padding: 0 1rem;
    font-size: 0.875rem;
}

.login-option-card {
    border: 2px solid var(--jhub-light-gray);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition-base);
    cursor: pointer;
    text-align: center;
}

.login-option-card:hover {
    border-color: var(--jhub-primary);
    background: rgba(44, 64, 154, 0.05);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.login-option-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.login-option-card.admin .login-option-icon {
    color: var(--jhub-primary);
}

.login-option-card.mentor .login-option-icon {
    color: var(--jhub-success);
}

.login-option-card.project .login-option-icon {
    color: var(--jhub-purple);
}

/* ========================================
   FOOTER
   ======================================== */
.public-footer {
    background: var(--jhub-white);
    color: var(--jhub-dark-gray);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.footer-brand {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo-link img {
    height: 38px;
    width: auto;
    display: block;
    transition: var(--transition-base);
}

.footer-logo-link .footer-logo-text {
    display: inline-flex;
    align-items: center;
    font-weight: var(--font-weight-semibold);
    font-size: 1rem;
    letter-spacing: 0.04em;
    color: var(--jhub-purple);
    text-transform: uppercase;
}

.footer-description {
    color: var(--jhub-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-heading {
    font-size: 1.2rem;
    font-weight: var(--font-weight-bold);
    color: var(--jhub-black);
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 15px;
}

.footer-heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: var(--jhub-success);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--jhub-gray);
    text-decoration: none;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.footer-links a i {
    font-size: 0.85rem;
    color: var(--jhub-success);
}

.footer-links a:hover {
    color: var(--jhub-success);
    transform: translateX(6px);
}

.public-footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--jhub-light);
    color: var(--jhub-black);
    border-radius: 12px;
    margin-right: 0.75rem;
    transition: var(--transition-base);
    font-size: 1.1rem;
}

.public-footer .social-links a:hover {
    background: var(--jhub-success);
    color: var(--jhub-white);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--jhub-gray);
    margin: 0;
}

/* ========================================
   STATISTICS/METRICS CARDS
   ======================================== */
.stat-card {
    background: var(--jhub-white);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition-base);
}

.stat-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.stat-icon.primary {
    background: rgba(44, 64, 154, 0.1);
    color: var(--jhub-primary);
}

.stat-icon.success {
    background: rgba(63, 168, 69, 0.1);
    color: var(--jhub-success);
}

.stat-icon.danger {
    background: rgba(253, 22, 22, 0.1);
    color: var(--jhub-alert);
}

.stat-icon.warning {
    background: rgba(255, 193, 7, 0.1);
    color: var(--color-warning);
}

.stat-value {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--jhub-purple);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--jhub-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   PROGRESS BARS
   ======================================== */
.progress {
    height: 1.25rem;
    background-color: var(--jhub-light-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--jhub-primary) 0%, var(--jhub-purple) 100%);
    transition: width 0.6s ease;
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
}

.progress-bar.bg-success {
    background: linear-gradient(90deg, var(--jhub-success) 0%, var(--jhub-success-dark) 100%);
}

.progress-bar.bg-danger {
    background: linear-gradient(90deg, var(--jhub-alert) 0%, var(--jhub-alert-dark) 100%);
}

/* ========================================
   BREADCRUMBS
   ======================================== */
.breadcrumb {
    background: var(--jhub-white);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.breadcrumb-item a {
    color: var(--jhub-primary);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--jhub-gray);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--jhub-gray);
}

/* ========================================
   PAGINATION
   ======================================== */
.pagination .page-link {
    color: var(--jhub-primary);
    border: 1px solid var(--jhub-light-gray);
    padding: 0.5rem 0.75rem;
    margin: 0 0.125rem;
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
}

.pagination .page-link:hover {
    background: var(--jhub-primary);
    color: var(--jhub-white);
    border-color: var(--jhub-primary);
}

.pagination .page-item.active .page-link {
    background: var(--jhub-primary);
    border-color: var(--jhub-primary);
    color: var(--jhub-white);
}

/* ========================================
   MODALS
   ======================================== */
.modal-content {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    background: linear-gradient(135deg, var(--jhub-primary) 0%, var(--jhub-purple) 100%);
    color: var(--jhub-white);
    border-bottom: none;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    padding: 1.5rem;
}

.modal-title {
    color: var(--jhub-white);
    font-weight: var(--font-weight-semibold);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: 1px solid var(--jhub-light-gray);
    padding: 1rem 2rem;
}

.btn-close {
    filter: brightness(0) invert(1);
}

/* ========================================
   TOOLTIPS
   ======================================== */
.tooltip-inner {
    background: var(--jhub-purple);
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: var(--jhub-purple);
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: var(--jhub-purple);
}

.tooltip.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: var(--jhub-purple);
}

.tooltip.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: var(--jhub-purple);
}

/* ========================================
   PROJECT CARDS
   ======================================== */
.project-card {
    background: var(--jhub-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

.project-card-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(44, 64, 154, 0.05) 0%, rgba(14, 1, 91, 0.05) 100%);
    border-bottom: 3px solid var(--jhub-primary);
}

.project-title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    color: var(--jhub-purple);
    margin-bottom: 0.5rem;
}

.project-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--jhub-gray);
}

.project-card-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.project-description {
    color: var(--jhub-dark-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tag {
    background: var(--jhub-light);
    color: var(--jhub-primary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.813rem;
    font-weight: var(--font-weight-medium);
}

.project-card-footer {
    padding: 1rem 1.5rem;
    background: var(--jhub-light);
    border-top: 1px solid var(--jhub-light-gray);
}

/* ========================================
   STAGE TIMELINE
   ======================================== */
.stage-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    position: relative;
}

.stage-timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--jhub-light-gray);
    z-index: 1;
}

.stage-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    background-color: var(--jhub-white);
    padding: 0 0.5rem;
    flex: 1;
}

.stage-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.5rem;
    border: 3px solid;
    background: var(--jhub-white);
}

.stage-step.completed .stage-number {
    background-color: var(--jhub-success);
    color: var(--jhub-white);
    border-color: var(--jhub-success);
}

.stage-step.active .stage-number {
    background-color: var(--jhub-primary);
    color: var(--jhub-white);
    border-color: var(--jhub-primary);
    box-shadow: 0 0 0 4px rgba(44, 64, 154, 0.2);
}

.stage-step.pending .stage-number {
    background-color: var(--jhub-white);
    color: var(--jhub-gray);
    border-color: var(--jhub-light-gray);
}

.stage-info {
    font-size: 0.75rem;
    color: var(--jhub-gray);
    max-width: 100px;
}

.stage-step.completed .stage-info {
    color: var(--jhub-success);
    font-weight: var(--font-weight-medium);
}

.stage-step.active .stage-info {
    color: var(--jhub-primary);
    font-weight: var(--font-weight-semibold);
}

/* ========================================
   LOADING STATES
   ======================================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-border {
    border-color: var(--jhub-primary);
    border-right-color: transparent;
}

.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid var(--jhub-primary);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 992px) {
    .sidebar {
        margin-left: -260px;
    }
    
    .sidebar.show {
        margin-left: 0;
    }
    
    .main-content,
    .dashboard-navbar {
        margin-left: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .public-page {
        padding-top: 80px;
    }
    
    .public-navbar {
        padding: 0.8rem 0;
    }
    
    .public-navbar .navbar-brand img {
        height: 42px;
    }
    
    .public-navbar .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        padding: 1rem;
        border-radius: var(--border-radius-lg);
        margin-top: 0.75rem;
        box-shadow: var(--shadow-lg);
    }
    
    .public-navbar .btn-login-link,
    .public-navbar .btn-nav-cta {
        width: 100%;
        margin: 0.35rem 0 0;
        text-align: center;
    }
    
    .public-navbar .nav-link::after {
        display: none;
    }

    .footer-logo-link img {
        height: 34px;
    }
    
    .hero-section {
        padding: 80px 0 60px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .features-section {
        padding: 3rem 0;
    }
    
    .auth-card {
        padding: 2rem;
    }
    
    .stage-timeline {
        overflow-x: auto;
    }
    
    .stage-info {
        font-size: 0.625rem;
    }
}

@media (max-width: 576px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .card-body {
        padding: 1rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .sidebar,
    .navbar,
    .btn,
    .dropdown,
    .pagination,
    .modal,
    .alert {
        display: none !important;
    }
    
    .main-content {
        margin: 0;
        padding: 0;
    }
    
    body {
        background: white;
    }
    
    .card {
        border: 1px solid black;
        box-shadow: none;
        page-break-inside: avoid;
    }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */
.sr-only,
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

:focus {
    outline: 2px solid var(--jhub-primary);
    outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--jhub-primary);
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--jhub-purple);
    color: var(--jhub-white);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
    border-radius: var(--border-radius);
}

.skip-link:focus {
    top: 6px;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-primary { color: var(--jhub-primary) !important; }
.text-success { color: var(--jhub-success) !important; }
.text-danger { color: var(--jhub-alert) !important; }
.text-secondary { color: var(--jhub-purple) !important; }
.text-muted { color: var(--jhub-gray) !important; }

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--jhub-primary) 0%, var(--jhub-purple) 100%) !important;
}

.bg-gradient-success {
    background: linear-gradient(135deg, var(--jhub-success) 0%, var(--jhub-success-dark) 100%) !important;
}

.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow { box-shadow: var(--shadow) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-xl { box-shadow: var(--shadow-xl) !important; }

.rounded { border-radius: var(--border-radius) !important; }
.rounded-lg { border-radius: var(--border-radius-lg) !important; }
.rounded-xl { border-radius: var(--border-radius-xl) !important; }

/* ========================================
   ROLE-SPECIFIC THEME VARIATIONS
   ======================================== */
/* Admin Theme */
.admin-theme .sidebar {
    background: linear-gradient(180deg, var(--jhub-primary) 0%, var(--jhub-primary-dark) 100%);
}

.admin-theme .user-badge {
    background: rgba(44, 64, 154, 0.1);
    color: var(--jhub-primary);
}

/* Mentor Theme */
.mentor-theme .sidebar {
    background: linear-gradient(180deg, var(--jhub-success) 0%, var(--jhub-success-dark) 100%);
}

.mentor-theme .user-badge {
    background: rgba(63, 168, 69, 0.1);
    color: var(--jhub-success);
}

.mentor-theme .btn-primary {
    background: var(--jhub-success);
    border-color: var(--jhub-success);
}

.mentor-theme .btn-primary:hover {
    background: var(--jhub-success-dark);
    border-color: var(--jhub-success-dark);
}

/* Project Theme */
.project-theme .sidebar {
    background: linear-gradient(180deg, var(--jhub-purple) 0%, var(--jhub-black) 100%);
}

.project-theme .user-badge {
    background: rgba(14, 1, 91, 0.1);
    color: var(--jhub-purple);
}

/* ========================================
   END OF UNIFIED STYLESHEET
   ======================================== */
.public-page {
    padding-top: 110px;
}
