/**
 * G-CONNECT Professional CSS - Clean & Modern Design System
 * File: assets/css/style.css
 * Version: 2.0 - Professional Edition
 */

/* I caratteri usano i fallback di sistema, senza richieste a servizi esterni. */

/* ===================== CSS VARIABLES ===================== */
:root {
    /* Primary Colors - Grownnectia Brand */
    --primary-color: #0056b3;
    --primary-dark: #003d82;
    --primary-light: #2979c3;
    --primary-gradient: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
    
    /* Secondary Colors */
    --secondary-color: #FFD700;
    --secondary-dark: #e6c200;
    --secondary-light: #ffed4e;
    --secondary-gradient: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    
    /* Status Colors */
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    
    /* Neutral Colors - Refined Palette */
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    
    /* Shadows - Professional Depth */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-md: 0 2px 8px -2px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 16px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 8px 24px -6px rgba(0, 0, 0, 0.12);
    --shadow-2xl: 0 12px 32px -8px rgba(0, 0, 0, 0.14);
    --shadow-gold: 0 8px 24px -6px rgba(255, 215, 0, 0.15);
    
    /* Border Radius - Consistent Scaling */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-full: 9999px;
    
    /* Transitions - Smooth & Professional */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Spacing Scale */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: 2.25rem; font-weight: 800; }
h2 { font-size: 1.875rem; font-weight: 700; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; font-weight: 600; }

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-base);
}

a:hover {
    text-decoration: none;
}

/* ===================== NAVBAR - Professional Header ===================== */
.navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px) saturate(180%);
    box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.05);
    padding: 0.875rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.02em;
}

.navbar-brand i {
    color: var(--secondary-color);
    font-size: 1.75rem;
}

.navbar-nav .nav-link {
    color: var(--gray-600) !important;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 1rem !important;
    margin: 0 0.125rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background: var(--gray-100);
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(0, 86, 179, 0.08);
    font-weight: 600;
}

.navbar .badge {
    font-size: 0.625rem;
    padding: 0.25rem 0.5rem;
    font-weight: 700;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: var(--radius-full);
}

.navbar .bi-bell {
    font-size: 1.125rem;
}

/* ===================== CARDS - Clean Professional Design ===================== */
.card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 86, 179, 0.15);
}

.card-header {
    background: white;
    color: var(--gray-900);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

.card-body {
    padding: 1.5rem;
}

.card-premium {
    background: white;
    border: 2px solid var(--secondary-color);
    box-shadow: var(--shadow-gold);
    position: relative;
}

.card-premium::before {
    display: none;
}

/* ===================== BUTTONS - Modern & Accessible ===================== */
.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    letter-spacing: -0.01em;
    box-shadow: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
}

.btn-warning {
    background: var(--secondary-color);
    color: var(--gray-900);
    font-weight: 700;
}

.btn-warning:hover {
    background: var(--secondary-dark);
    color: var(--gray-900);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
}

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

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

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

.btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.875rem;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===================== DASHBOARD STATS - Clean & Minimal ===================== */
.stat-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--primary-color);
}

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

.stat-card.success::before {
    background: var(--success-color);
}

.stat-card.warning::before {
    background: var(--warning-color);
}

.stat-card.danger::before {
    background: var(--danger-color);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.stat-card.primary .stat-icon {
    background: rgba(0, 86, 179, 0.1);
    color: var(--primary-color);
}

.stat-card.gold .stat-icon {
    background: rgba(255, 215, 0, 0.15);
    color: var(--secondary-dark);
}

.stat-card.success .stat-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.stat-card.warning .stat-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.stat-card.danger .stat-icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.stat-card .stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.375rem;
    color: var(--gray-900);
}

.stat-card .stat-label {
    color: var(--gray-500);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.stat-card .stat-change {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
}

.stat-change.positive {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.stat-change.negative {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

/* ===================== FORMS - Clean Input Design ===================== */
.form-control, .form-select {
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    transition: all var(--transition-base);
    background-color: white;
    color: var(--gray-900);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.08);
    background-color: white;
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    letter-spacing: -0.01em;
}

.input-group-text {
    background: var(--gray-100);
    border: 1.5px solid var(--gray-200);
    color: var(--gray-600);
}

.form-floating > label {
    color: var(--gray-500);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary-color);
}

/* ===================== PROFILE & USER CARDS ===================== */
.profile-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.profile-header {
    height: 140px;
    background: var(--primary-gradient);
    position: relative;
}

.profile-header::after {
    display: none;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    border: 4px solid white;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    position: relative;
    margin-top: -60px;
    z-index: 1;
}

.avatar-sm {
    width: 40px;
    height: 40px;
    border-width: 2px;
}

.avatar-md {
    width: 80px;
    height: 80px;
    border-width: 3px;
}

.avatar-status {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    border: 3px solid white;
}

.avatar-status.online {
    background: var(--success-color);
}

.avatar-status.offline {
    background: var(--gray-400);
}

/* ===================== EVENT CARDS ===================== */
.event-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    position: relative;
}

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

.event-card .event-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.event-card .event-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: white;
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.event-card .event-date .day {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.event-card .event-date .month {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--gray-500);
    letter-spacing: 0.05em;
}

.event-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--secondary-color);
    color: var(--gray-900);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ===================== CONNECTION/MATCHING CARDS ===================== */
.connection-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.connection-card:hover {
    border-color: rgba(0, 86, 179, 0.15);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.match-score {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-full);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 3px solid;
    flex-shrink: 0;
}

.match-score.high {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border-color: var(--success-color);
}

.match-score.medium {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
    border-color: var(--warning-color);
}

.match-score.low {
    background: rgba(163, 163, 163, 0.1);
    color: var(--gray-500);
    border-color: var(--gray-400);
}

.match-score .percent {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    line-height: 1;
}

.match-score .label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

/* ===================== SKILLS & TAGS ===================== */
.skill-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    margin: 0.25rem;
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

.skill-tag:hover {
    background: var(--gray-200);
}

.skill-tag.matched {
    background: rgba(255, 215, 0, 0.15);
    color: var(--secondary-dark);
    border-color: var(--secondary-color);
    font-weight: 600;
}

.skill-tag.primary {
    background: rgba(0, 86, 179, 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ===================== TIMELINE/AGENDA ===================== */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
}

.timeline-item {
    position: relative;
    padding-bottom: 1.75rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: white;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 0 3px var(--gray-100);
}

.timeline-item.active::before {
    background: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15);
}

.timeline-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

/* ===================== TABLES ===================== */
.table-responsive {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.table {
    background: white;
    margin-bottom: 0;
}

.table thead th {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-700);
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    padding: 1rem;
    text-transform: uppercase;
}

.table tbody tr {
    transition: all var(--transition-fast);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.table tbody tr:hover {
    background: var(--gray-50);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: transparent;
}

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

.modal-header {
    background: white;
    color: var(--gray-900);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 1.5rem;
}

.modal-header .btn-close {
    filter: none;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1.25rem 1.5rem;
    background: white;
}

/* ===================== ALERTS & NOTIFICATIONS ===================== */
.alert {
    border: 1px solid;
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    box-shadow: none;
}

.alert-primary {
    background: rgba(0, 86, 179, 0.06);
    border-color: rgba(0, 86, 179, 0.15);
    color: var(--primary-dark);
}

.alert-warning {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
    color: var(--secondary-dark);
}

.alert-success {
    background: rgba(16, 185, 129, 0.06);
    border-color: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.notification-dot {
    width: 8px;
    height: 8px;
    background: var(--danger-color);
    border-radius: var(--radius-full);
    position: absolute;
    top: -2px;
    right: -2px;
}

.notification-item {
    padding: 1rem;
    border-left: 3px solid var(--info-color);
    margin-bottom: 0.75rem;
    background: white;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.notification-item:hover {
    background-color: var(--gray-50);
}

.notification-item.unread {
    border-left-color: var(--warning-color);
    background-color: rgba(255, 215, 0, 0.04);
}

/* ===================== LOADING STATES ===================== */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.spinner-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-border {
    width: 2.5rem;
    height: 2.5rem;
    border-width: 0.25rem;
    color: var(--primary-color);
}

/* ===================== ANIMATIONS ===================== */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bellRing {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(14deg); }
    20%, 40% { transform: rotate(-14deg); }
}

.animate-slide-up {
    animation: slideInUp 0.4s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out;
}

/* ===================== HEATMAP ===================== */
.heatmap-container {
    position: relative;
    background: var(--gray-100);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-xl);
    padding: 1rem;
    height: 500px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.heatmap-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* ===================== CHARTS CONTAINER ===================== */
.chart-container {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    height: 400px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-100);
}

/* ===================== QR CODE ===================== */
.qr-container {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.qr-code {
    padding: 1rem;
    background: white;
    border-radius: var(--radius-lg);
    display: inline-block;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* ===================== SPONSOR BADGES ===================== */
.sponsor-badge {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
}

.sponsor-badge.gold {
    background: var(--secondary-color);
    color: var(--gray-900);
}

.sponsor-badge.silver {
    background: #C0C0C0;
    color: white;
}

.sponsor-badge.bronze {
    background: #CD7F32;
    color: white;
}

/* ===================== AUTH PAGES ===================== */
.auth-container {
    max-width: 420px;
    margin: 3rem auto;
}

.auth-card {
    padding: 2rem;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

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

.auth-header h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* ===================== POSITION CARDS ===================== */
.position-card {
    border-left: 3px solid var(--info-color);
    position: relative;
}

.position-card .applicant-count {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--info-color);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
}

/* ===================== TEAM MEMBERS ===================== */
.team-member {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    transition: all var(--transition-base);
}

.team-member:hover {
    background: var(--gray-100);
}

.team-member img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    margin-right: 0.75rem;
}

/* ===================== PROXIMITY INDICATOR ===================== */
.proximity-badge {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--success-color);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    display: none;
    font-weight: 600;
    font-size: 0.9375rem;
}

.proximity-badge.active {
    display: block;
    animation: pulse 2s infinite;
}

/* ===================== QR SCANNER ===================== */
.qr-scanner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9998;
    backdrop-filter: blur(4px);
}

.qr-scanner-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    border: 3px solid white;
    border-radius: var(--radius-xl);
}

/* ===================== PARTNER METRICS ===================== */
.metric-box {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--gray-900);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.metric-box h3 {
    font-size: 2.25rem;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    color: var(--primary-color);
}

/* ===================== FOOTER ===================== */
footer {
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: auto;
    padding: 2rem 0;
}

/* ===================== UTILITIES ===================== */
.bg-gradient-primary { 
    background: var(--primary-gradient) !important;
    color: white;
}

.bg-gradient-gold { 
    background: var(--secondary-gradient) !important; 
    color: var(--gray-900);
}

.text-gradient-primary {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-gold { 
    box-shadow: var(--shadow-gold) !important; 
}

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

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

/* ===================== RESPONSIVE DESIGN ===================== */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-card .stat-number {
        font-size: 1.875rem;
    }
    
    .connection-card {
        flex-direction: column;
        text-align: center;
    }
    
    .timeline {
        padding-left: 30px;
    }
    
    .timeline::before {
        left: 12px;
    }
    
    .timeline-item::before {
        left: -18px;
    }
    
    .chart-container {
        height: 300px;
    }
    
    .auth-container {
        margin: 1.5rem;
    }
    
    .heatmap-container {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .match-score {
        width: 60px;
        height: 60px;
    }
    
    .match-score .percent {
        font-size: 1.25rem;
    }
}

/* ===================== PRINT STYLES ===================== */
@media print {
    .navbar,
    .btn,
    footer,
    .proximity-badge {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid var(--gray-300) !important;
    }
}
