/* ===================================
   HUMARIQ - BLACK & YELLOW THEME
   Single unified theme with yellow accents
   =================================== */

/* Base CSS Variables */
:root {
    /* Primary Colors - Yellow System */
    --primary-yellow: #FFD700;
    --primary-color: #FFD700;
    --primary-hover: #FFC700;
    --primary-light: rgba(255, 215, 0, 0.1);
    --primary-rgb: 255, 215, 0;

    /* Text Colors */
    --text-white: #FFFFFF;
    --text-dark: #E8E8E8;
    --text-gray: #A0A0A0;
    --text-light: #707070;
    --text-muted: #8C8C8C;
    --text-color: #FFFFFF;

    /* Background Colors */
    --black: #000000;
    --bg-dark: #0A0A0A;
    --bg-darker: #050505;
    --bg-card: #1A1A1A;
    --bg-hover: #2A2A2A;

    /* Border Colors */
    --border-color: #333333;

    /* Input Colors */
    --input-bg: #1A1A1A;

    /* Status Colors */
    --success: #10B981;
    --success-color: #10B981;
    --error: #EF4444;
    --danger: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;

    /* Shadows with Yellow Tint */
    --shadow-sm: 0 1px 2px 0 rgba(255, 215, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(255, 215, 0, 0.15);
    --shadow-lg: 0 10px 15px -3px rgba(255, 215, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(255, 215, 0, 0.25);

    /* Secondary Colors */
    --secondary-color: #C0C0C0;
    --accent-color: #FFA500;
    --complement: #A8A8A8;

    /* Gradients */
    --gradient-start: #0A0A0A;
    --gradient-end: #1A1A1A;

    /* Glow Effects */
    --glow-subtle: 0 0 10px rgba(255, 215, 0, 0.3);
    --glow-medium: 0 0 20px rgba(255, 215, 0, 0.5);
    --glow-intense: 0 0 30px rgba(255, 215, 0, 0.8);

    /* Spacing Scale (8px grid) */
    --spacing-0: 0;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Typography Scale */
    --font-size-hero: 3rem;
    --font-size-h1: 2rem;
    --font-size-h2: 1.5rem;
    --font-size-h3: 1.2rem;
    --font-size-h4: 1.1rem;
    --font-size-lg: 1.125rem;
    --font-size-base: 1rem;
    --font-size-sm: 0.875rem;
    --font-size-xs: 0.75rem;

    /* Font Weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Border Radius */
    --border-radius-none: 0;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --border-radius-full: 9999px;

    /* Animation Timing */
    --transition-fast: 150ms;
    --transition-normal: 200ms;
    --transition-slow: 300ms;
    --easing-default: ease;
    --easing-in: cubic-bezier(0.4, 0, 1, 1);
    --easing-out: cubic-bezier(0, 0, 0.2, 1);
    --easing-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===================================
   GLOBAL STYLES
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: var(--bg-dark);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===================================
   LOGIN PAGE STYLES
   =================================== */

.login-page-header {
    display: none;
}

.login-page-header .header-logo {
    max-width: 200px;
}

.login-page-header .header-logo img {
    width: 100%;
    height: auto;
}

.login-container {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.login-left {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    color: var(--primary-color);
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.logo {
    max-width: 350px;
    width: 100%;
    height: auto;
    margin-bottom: 2.5rem;
    padding: 1rem;
}

.logo img {
    width: 100%;
    height: auto;
    display: block;
}

.logo span {
    color: #ffffff;
    opacity: 0.9;
}

.tagline {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-align: center;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.7rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-list li::before {
    content: '✓';
    background: rgba(255, 215, 0, 0.2);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    color: var(--primary-yellow);
}

/* Login Theme Selector - Hidden for single theme */
.login-theme-selector {
    display: none;
}

.login-right {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
    border-left: 2px solid var(--primary-color);
    box-shadow: -5px 0 20px rgba(var(--primary-rgb), 0.3);
}

.login-header {
    margin-bottom: 2.5rem;
}

.login-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg-dark);
    color: var(--text-dark);
    transition: all 0.3s ease;
    caret-color: var(--primary-color);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3), 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.forgot-password,
.link-primary {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover,
.link-primary:hover {
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: #000000;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.btn-login:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 4px 12px rgba(255, 215, 0, 0.3);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.demo-credentials {
    margin-top: 2rem;
    padding: 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.demo-credentials strong {
    color: var(--primary-color);
}

.footer-text {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--text-light);
}

.error-message {
    padding: 1rem;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid var(--danger);
    border-radius: 8px;
    color: var(--danger);
    margin-bottom: 1.5rem;
}

.hidden {
    display: none !important;
}

/* ===================================
   APP LAYOUT
   =================================== */

.app-container {
    max-width: 1400px;
    margin: 0 auto;
}

.app-header {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(51, 51, 51, 0.5);
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-link img {
    height: 50px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Keep old .logo-small for backwards compatibility */
.logo-small {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo-small:hover {
    opacity: 0.8;
}

.logo-small img {
    height: 50px;
    width: auto;
    display: block;
    object-fit: contain;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Global Header Search */
.header-search {
    position: relative;
    margin-left: auto;
}

.header-search-input {
    width: 300px;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.header-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.header-search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.header-search-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.header-search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.header-search-results.visible {
    display: block;
}

.search-result-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--bg-hover);
}

.search-result-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.125rem;
}

.search-result-details {
    font-size: 0.75rem;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-empty {
    padding: 1rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

.user-name {
    color: #ffffff;
    font-weight: 500;
}

.btn-logout {
    padding: 0.6rem 1.2rem;
    background: var(--border-color);
    color: var(--text-dark);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: var(--danger);
}

.main-content {
    padding: 2rem;
}

/* ===================================
   CARDS
   =================================== */

.card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 4px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.card h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: #000000;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

.btn-primary-small {
    background: var(--primary-color);
    color: #000000;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.btn-primary-small:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.btn-secondary {
    background: var(--border-color);
    color: var(--text-dark);
}

.btn-secondary-small {
    background: var(--bg-hover);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary-small:hover {
    background: var(--border-color);
    border-color: var(--text-muted);
    transform: translateY(-1px);
}

.btn-secondary:hover {
    background: #444444;
}

.btn-text {
    background: transparent;
    color: var(--text-light);
}

.btn-text:hover {
    color: var(--text-dark);
}

.btn-text.danger {
    color: var(--danger);
}

.btn-find-duplicates {
    background: var(--bg-hover);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-find-duplicates:hover {
    background: var(--border-color);
    border-color: var(--text-muted);
    transform: translateY(-1px);
}

/* Small Button Modifier */
.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

/* Danger Button */
.btn-danger {
    background: var(--danger);
    color: #ffffff;
    border: none;
}

.btn-danger:hover {
    background: #dc143c;
    transform: translateY(-1px);
}

/* Ghost Button (Transparent with Border) */
.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.btn-ghost:hover {
    background: var(--bg-hover);
    color: var(--text-dark);
    border-color: var(--text-muted);
}

/* Icon-Only Button */
.btn-icon {
    padding: 0.4rem;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 1.2rem;
}

.btn-icon:hover {
    background: var(--bg-hover);
}

.btn-find-duplicates .badge {
    background: var(--warning);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 4px;
}

.btn-find-duplicates .badge.hidden {
    display: none;
}

/* ===================================
   MOOD TRACKING
   =================================== */

.mood-scale {
    margin: 1.5rem 0;
}

.context-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.context-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    background: var(--bg-dark);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.context-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.context-option.selected {
    border-color: var(--primary-color);
    background: rgba(255, 215, 0, 0.1);
}

.context-icon {
    font-size: 2.5rem;
}

.context-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-dark);
}

.details-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.detail-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: var(--bg-dark);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.detail-option:hover {
    border-color: var(--primary-color);
}

.detail-option.selected {
    border-color: var(--primary-color);
    background: rgba(255, 215, 0, 0.1);
}

.detail-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.detail-option label {
    flex: 1;
    cursor: pointer;
    margin: 0;
}

.mood-scale label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.mood-scale input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--border-color);
    outline: none;
    -webkit-appearance: none;
}

.mood-scale input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.mood-scale input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
}

.mood-value {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin-top: 1rem;
    color: var(--primary-color);
}

.mood-emoji {
    font-size: 2.5rem;
    margin-left: 0.5rem;
}

/* ===================================
   STATS
   =================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-dark);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* ===================================
   CONTACTS
   =================================== */

.search-bar {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-bar input {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-dark);
    color: var(--text-dark);
    font-size: 1rem;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tab {
    padding: 0.6rem 1.2rem;
    background: var(--bg-dark);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab.active {
    background: var(--primary-color);
    color: #000000;
    border-color: var(--primary-color);
    font-weight: 600;
}

.tab:hover:not(.active) {
    border-color: var(--primary-color);
}

.contacts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    max-height: calc(100vh - 300px);
    padding-right: 0.5rem;
}

.contacts-list::-webkit-scrollbar {
    width: 8px;
}

.contacts-list::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-radius: 4px;
}

.contacts-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.contacts-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.loading-more {
    text-align: center;
    padding: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--primary-color);
    transform: translateX(4px);
}

/* Strengthen Your Connections - Grid Layout */
.connections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    padding: 1rem 0;
}

.connection-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-height: 240px;
}

.connection-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.connection-card-avatar {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.connection-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.connection-card-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #000000;
    font-size: 1.8rem;
    font-weight: 600;
}

.connection-card-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.connection-card-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
    max-height: 2.6em;
    width: 100%;
}

.connection-card-strategy {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    width: fit-content;
}

.connection-card-strategy.cultivate {
    background: rgba(34, 197, 94, 0.15);
    color: #22C55E;
}

.connection-card-strategy.nurture {
    background: rgba(59, 130, 246, 0.15);
    color: #3B82F6;
}

.connection-card-dates {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    width: 100%;
}

.connection-date {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.4;
}

.connection-date.last-experience {
    color: var(--text-light);
}

.connection-date.next-experience {
    font-weight: 600;
}

.connection-date.next-today {
    color: #EF4444;
}

.connection-date.next-soon {
    color: #F59E0B;
}

.connection-date.next-scheduled {
    color: #22C55E;
}

.connection-date.next-none {
    color: var(--text-light);
    opacity: 0.6;
}

/* Prominent date display - focused on Last/Next Contact */
.connection-card-dates-prominent {
    background: rgba(59, 130, 246, 0.08);
    border-left: 3px solid var(--primary-color);
    border-radius: 6px;
    padding: 0.75rem;
    margin: 0.5rem 0;
    gap: 0.5rem;
}

.connection-card-dates-prominent .connection-date {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.6;
}

.connection-card-dates-prominent .connection-date.last-experience {
    color: var(--primary-color);
}

.connection-card-dates-prominent .connection-date.next-soon {
    color: #10b981;
    font-weight: 700;
}

.connection-card-dates-prominent .connection-date.next-none {
    color: #ef4444;
    opacity: 0.8;
}

/* New contact item with highlight */
.new-contact-item {
    border-left: 3px solid var(--success);
    background: linear-gradient(to right, rgba(16, 185, 129, 0.05), var(--bg-dark));
}

/* Source badges */
.source-badge.source-manual,
.source-badge.source-linkedin,
.source-badge.source-hubspot,
.source-badge.source-microsoft365 {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
    font-weight: 600;
    border: none;
}

.source-badge.source-manual {
    background: rgba(107, 114, 128, 0.2);
    color: #9CA3AF;
}

.source-badge.source-linkedin {
    background: rgba(0, 119, 181, 0.2);
    color: #4A9DD5;
}

.source-badge.source-hubspot {
    background: rgba(255, 122, 89, 0.2);
    color: #FF9A7F;
}

.source-badge.source-microsoft365 {
    background: rgba(0, 120, 212, 0.2);
    color: #4A9FE8;
}

.contact-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.contact-avatar.large {
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

.contact-avatar-img {
    padding: 0;
    background: transparent;
    overflow: hidden;
}

.contact-avatar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.contact-info {
    flex: 1;
}

.contact-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.contact-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.contact-type-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--border-color);
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0.5rem 0;
}

.empty-state {
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
}

/* ===================================
   MODALS
   =================================== */

.modal {
    display: flex;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    padding: 1rem;
}

.modal.hidden {
    display: none;
}

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

.modal-content {
    background: var(--bg-card);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    position: relative;
}

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

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: var(--text-dark);
    margin: 0;
    font-size: 1.5rem;
}

.modal-close,
.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: absolute;
    top: 1rem;
    right: 1rem;
    line-height: 1;
}

.modal-close:hover,
.close-btn:hover {
    background: var(--bg-hover);
    color: var(--text-dark);
}

.modal-body {
    padding: 2rem;
}

.modal-body p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.contact-detail {
    text-align: center;
}

.contact-detail h2 {
    margin: 1rem 0;
}

.contact-info-section {
    margin: 2rem 0;
    text-align: left;
}

.contact-info-section p {
    padding: 0.5rem 0;
    color: var(--text-light);
}

.detail-stats {
    display: flex;
    justify-content: space-around;
    margin: 2rem 0;
}

.detail-stat {
    text-align: center;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

/* ===================================
   MOBILE MENU STYLES
   =================================== */

/* Mobile Menu Toggle (Hamburger Button) */
.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--primary-yellow);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: var(--bg-hover);
    border-color: var(--primary-yellow);
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Drawer */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: var(--bg-darker); /* #050505 */
    border-left: 2px solid var(--border-color);
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
    transition: right 0.3s ease;
}

.mobile-menu.open {
    right: 0;
}

/* Mobile Menu Header */
.mobile-menu-header {
    height: 70px;
    background: #000000;
    border-bottom: 2px solid var(--border-color);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-header img {
    height: 40px;
}

.mobile-menu-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-menu-close:hover {
    background: var(--bg-hover);
    color: var(--primary-yellow);
    border-color: var(--primary-yellow);
}

/* Mobile Menu User Section */
.mobile-menu-user {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-user .user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-yellow);
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.mobile-menu-user .user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.mobile-menu-user .user-avatar-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.mobile-menu-user .user-info {
    flex: 1;
}

.mobile-menu-user .user-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.25rem;
}

.mobile-menu-user .user-email {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Mobile Menu Items Container */
.mobile-menu-items {
    padding: 1rem 0;
}

/* Menu Section Titles */
.menu-section-title {
    padding: 1rem 1.5rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Mobile Menu Items */
.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    background: transparent;
    border-top: none;
    border-right: none;
    border-bottom: none;
    width: 100%;
    text-align: left;
    font-size: 1rem;
}

.mobile-menu-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.mobile-menu-item:hover {
    background: var(--bg-hover);
    color: var(--text-white);
    transform: translateX(4px);
}

.mobile-menu-item.active {
    background: var(--bg-hover);
    border-left-color: var(--primary-yellow);
    color: var(--primary-yellow);
}

.mobile-menu-item.menu-action {
    color: var(--text-light);
}

.mobile-menu-item.menu-action:hover {
    color: var(--error);
}

/* Prevent body scroll when menu open */
body.menu-open {
    overflow: hidden;
}

/* Breadcrumb Navigation */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-left: 1rem;
}

.breadcrumb-item {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.breadcrumb-item:hover {
    color: var(--primary-yellow);
}

.breadcrumb-item.current {
    color: var(--text-white);
    font-weight: 600;
}

.breadcrumb-separator {
    color: var(--text-muted);
    user-select: none;
}

/* ===================================
   SOURCE PILLS & FILTERS
   =================================== */

.source-pill {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 6px;
    vertical-align: middle;
    cursor: help;
}

.source-hubspot {
    background-color: #FF7A59;
    color: white;
}

.source-linkedin {
    background-color: #0077B5;
    color: white;
}

.source-microsoft365 {
    background-color: #0078D4;
    color: white;
}

.source-manual {
    background-color: #FFD700;
    color: #000000;
}

.source-filter {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background-color: var(--bg-card);
    color: var(--text-dark);
    cursor: pointer;
    min-width: 150px;
}

.source-filter:focus {
    outline: none;
    border-color: var(--primary-color);
}

.source-filter option {
    padding: 0.5rem;
}

/* ===================================
   HIDE REASON STYLES
   =================================== */

.hide-reason-text {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.hide-reason-badge {
    background-color: #7f1d1d;
    color: #fecaca;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* ===================================
   BADGE STYLES
   =================================== */

.badge {
    display: inline-block;
    background: #ff4757;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
    min-width: 20px;
    text-align: center;
}

.badge.hidden {
    display: none;
}

/* ===================================
   EXPERIENCE FORM STYLES
   =================================== */

.form-step {
    min-height: 200px;
}

.experience-type-buttons,
.experience-subtype-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.experience-type-btn,
.experience-subtype-btn {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-dark);
}

.experience-type-btn:hover,
.experience-subtype-btn:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.experience-type-btn.selected,
.experience-subtype-btn.selected {
    background: var(--primary-light);
    border-color: var(--primary-color);
    border-width: 3px;
}

.experience-icon {
    font-size: 32px;
}

.strategy-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.strategy-btn {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.strategy-btn:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.strategy-btn.selected {
    background: var(--primary-light);
    border-color: var(--primary-color);
    border-width: 3px;
}

.strategy-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.strategy-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.strategy-content strong {
    font-size: 16px;
    color: var(--text-dark);
}

.strategy-content small {
    font-size: 13px;
    color: var(--text-light);
}

/* ===================================
   CONTACT SOURCES SECTION
   =================================== */

.contact-sources-section,
.merged-contacts-section {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--bg-dark);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.contact-sources-section h3,
.merged-contacts-section h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.sources-summary {
    margin: 0 0 1rem 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.source-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.source-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
}

.source-badge-hubspot {
    border-left: 3px solid #ff7a59;
}

.source-badge-linkedin {
    border-left: 3px solid #0077b5;
}

.source-badge-manual {
    border-left: 3px solid #FFD700;
}

.source-icon {
    font-size: 1.2rem;
}

.source-name {
    font-weight: 600;
    color: var(--text-dark);
}

.source-contact-id {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--bg-dark);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.sources-detail {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.field-sources-list h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: var(--text-dark);
}

.field-source-item {
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.field-source-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.field-source-values {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.field-source-value {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 4px;
    background: var(--bg-dark);
}

.field-source-value.selected {
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid var(--primary-color);
}

.source-indicator {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.source-indicator.selected {
    color: var(--primary-color);
}

.source-name-small {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    min-width: 120px;
}

.field-value {
    color: var(--text-dark);
    flex: 1;
}

.no-conflicts {
    padding: 1rem;
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}

/* ===================================
   MERGED CONTACTS SECTION
   =================================== */

.merged-contacts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.merged-contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
}

.merged-contact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.merged-contact-header strong {
    font-size: 1rem;
    color: var(--text-dark);
}

.merged-contact-id {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--bg-dark);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.merged-contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.merged-contact-details > div {
    font-size: 0.9rem;
    color: var(--text-light);
}

.merged-contact-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===================================
   REVIEW STATUS FILTER TABS
   =================================== */

.review-filter-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.review-tab {
    padding: 0.75rem 1.25rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.review-tab span {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.review-tab.active {
    background: var(--primary-color);
    color: #000000;
    border-color: var(--primary-color);
    font-weight: 600;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.review-tab.active span {
    background: rgba(0, 0, 0, 0.15);
}

.review-tab:hover:not(.active) {
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* Type Filter Tabs */
.type-filter-tabs {
    display: flex;
    gap: 0.5rem;
    margin: -0.5rem 0 1.5rem 0;
    flex-wrap: wrap;
    padding: 1rem;
    background: var(--bg-dark);
    border-radius: 8px;
}

.type-filter-tabs.hidden {
    display: none;
}

.type-tab {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.type-tab.active {
    background: var(--bg-hover);
    color: var(--text-dark);
    border-color: var(--text-muted);
    font-weight: 500;
}

.type-tab:hover:not(.active) {
    background: var(--bg-hover);
    border-color: var(--text-muted);
}

/* ===================================
   BULK REVIEW TOOLBAR
   =================================== */

.bulk-review-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.bulk-review-toolbar.hidden {
    display: none;
}

.bulk-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.bulk-actions.hidden {
    display: none;
}

#selected-count {
    font-weight: 600;
    color: var(--primary-color);
}

.stage-select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-dark);
    color: var(--text-dark);
    font-size: 0.875rem;
}

/* Contact Card Enhancements for Review Mode */
.contact-card.bulk-mode {
    cursor: pointer;
    position: relative;
}

.contact-card.bulk-mode::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-card);
}

.contact-card.bulk-mode.selected::before {
    background: var(--primary-color);
    border-color: var(--primary-color);
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    font-weight: bold;
    font-size: 14px;
}

.contact-card.bulk-mode .contact-info {
    margin-left: 2rem;
}

/* ===================================
   REVIEW STATUS BADGES
   =================================== */

.review-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.review-badge.needs-review {
    background: #78350F;
    color: #FDE68A;
}

.review-badge.cultivate {
    background: #064E3B;
    color: #A7F3D0;
}

.review-badge.nurture {
    background: #1E3A8A;
    color: #BFDBFE;
}

/* ===================================
   THEME TOGGLE (Hidden for single theme)
   =================================== */

.theme-toggle {
    display: none;
}

/* ===================================
   DASHBOARD PROFILE SPLIT PANEL
   =================================== */

.dashboard-split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    min-height: 350px;
    align-items: stretch;
}

/* Single column mode when no profile */
.dashboard-split-container.single-column {
    grid-template-columns: 1fr;
}

/* Left: Profile Background Panel */
.profile-background-panel {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 2rem;
    border-radius: 12px;
    overflow: hidden;
    min-height: 350px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Dark overlay for text readability (using ::before pseudo-element) */
.profile-background-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
}

/* Profile content container - sits above overlay */
.profile-content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
}

/* Hexagram overlay - transparent geometric overlay */
.hexagram-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    max-width: 350px;
    max-height: 350px;
    z-index: 1.5;
    opacity: 0.15;
    pointer-events: none;
    animation: hexagram-rotate 60s linear infinite;
}

.hexagram-overlay svg {
    width: 100%;
    height: 100%;
}

/* Hexagram rotation animation */
@keyframes hexagram-rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Dark overlay for text readability */
.profile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* Profile information overlay */
.profile-info {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: #FFFFFF;
}

/* Profile initials (shown when no photo) */
.profile-initials {
    display: none;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    color: #000000;
    font-size: 3rem;
    font-weight: bold;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 4px solid rgba(0, 0, 0, 0.4);
}

/* Profile name */
.profile-name {
    font-size: 2rem;
    font-weight: bold;
    margin: 0 0 0.5rem 0;
    color: #FFFFFF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Profile title */
.profile-title {
    font-size: 1.2rem;
    margin: 0 0 0.75rem 0;
    color: var(--primary-color);
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Profile bio */
.profile-bio {
    font-size: 0.9rem;
    margin: 0;
    color: #E8E8E8;
    line-height: 1.5;
    max-width: 90%;
    margin: 0 auto;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Right: Mood Check Panel */
.mood-check-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

/* ===================================
   BOARD LOGOS SECTION
   =================================== */

/* Board logos section container */
.board-logos-section {
    margin-top: 2rem;
}

/* Board logos horizontal container */
.board-logos-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.board-logos-container::-webkit-scrollbar {
    height: 6px;
}

.board-logos-container::-webkit-scrollbar-track {
    background: transparent;
}

.board-logos-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.board-logos-container::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Individual board logo item */
.board-logo-item {
    position: relative;
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.board-logo-item:hover {
    transform: translateY(-4px);
}

.board-logo-item:active {
    transform: translateY(-2px);
}

/* Board logo image wrapper */
.board-logo-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.board-logo-item:hover .board-logo-wrapper {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* Board logo image */
.board-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Board logo icon fallback (emoji) */
.board-logo-icon {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Board logo tooltip */
.board-logo-tooltip {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.board-logo-item:hover .board-logo-tooltip {
    opacity: 1;
}

/* Board logo member count badge */
.board-logo-member-count {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
    z-index: 5;
}

/* Combined boards and stats section */
.combined-boards-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 1rem 0 !important;
}

.combined-boards-stats .stats-grid {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Board text badges (pills) */
.board-badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.board-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--text-dark);
}

.board-badge:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.board-badge .member-count {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-left: 0.25rem;
}

/* Contact summary bar */
.contact-summary-bar {
    padding: 1rem;
    background: var(--bg-dark);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1rem;
    color: var(--text-light);
}

.contact-summary-bar strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.contact-summary-bar .highlight {
    color: var(--primary-color);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .login-container {
        grid-template-columns: 1fr;
    }

    .login-left {
        padding: 2rem;
    }

    .login-right {
        padding: 2rem;
    }

    .app-header {
        height: 60px;
        padding: 0 1rem;
    }

    .mobile-menu {
        width: 280px;
        right: -280px;
    }

    .breadcrumbs {
        margin-left: 0.5rem;
    }

    .logo-small {
        padding: 0.5rem 1.25rem;
    }

    .header-right {
        gap: 0.5rem;
    }

    .header-search-input {
        width: 180px;
    }

    .user-name {
        display: none;
    }

    .main-content {
        padding: 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    /* Dashboard split panel - stack vertically on mobile */
    .dashboard-split-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        min-height: auto;
    }

    .profile-background-panel {
        min-height: 280px;
        padding: 1.5rem;
    }

    .profile-name {
        font-size: 1.5rem;
    }

    .profile-title {
        font-size: 1rem;
    }

    .profile-bio {
        font-size: 0.85rem;
    }

    .profile-initials {
        width: 80px;
        height: 80px;
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .connections-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .modal-content {
        width: 95%;
        margin: 1rem;
    }

    .modal-header {
        padding: 1rem 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-footer {
        padding: 1rem 1.5rem;
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .breadcrumbs {
        display: none; /* Hide breadcrumbs on very small screens */
    }

    .header-search {
        display: none; /* Hide search on very small screens */
    }

    .mobile-menu {
        width: 280px;
    }

    .mobile-menu-header img {
        height: 32px;
    }

    .logo-link img, .logo-small img {
        height: 40px;
    }

    .connections-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.glow {
    text-shadow: 0 0 5px var(--primary-color), 0 0 10px var(--primary-color);
}

h1.glow,
h2.glow {
    text-shadow: 0 0 5px var(--primary-color), 0 0 10px var(--primary-color);
}
