/**
 * Pinnacle Coaching Tree Pro - Modern UI Styles
 * File: assets/css/tree-pro.css
 * Location: pinnacle-coaching-tree-pro/assets/css/tree-pro.css
 * UPDATED: With custom brand colors
 */

:root {
    /* Brand Colors - Updated */
    --primary-color: var(--e-global-color-primary);
    --secondary-color: var(--e-global-color-secondary);
    --hover-color: var(--e-global-color-6538edc);
    
    /* Supporting Colors */
    --success-color: #4CAF50;
    --danger-color: #f44336;
    --warning-color: #ff9800;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --border-color: #E0E4E8;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
    
    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    /* Transition */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== RESET & BASE ========== */
* {
    box-sizing: border-box;
}

/* ========== WRAPPER ========== */
.pinnacle-tree-pro-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    min-height: 100vh;
}

/* ========== HERO SECTION ========== */
.tree-hero-section {
    margin-bottom: 30px;
}

.hero-content {
    text-align: center;
    margin-bottom: 30px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background-image: linear-gradient(180deg, var(--e-global-color-secondary) 0%, var(--e-global-color-primary) 100%);
    color: white;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
    animation: fadeInDown 0.6s ease;
}

.badge-icon {
    width: 50px;
}

.hero-badge span {
    font-size: 20px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    background-image: linear-gradient(180deg, var(--e-global-color-secondary) 0%, var(--e-global-color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 10px 0;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-subtitle {
    display: block;
    font-size: 18px;
    color: var(--text-light);
    font-weight: 400;
    margin-top: 10px;
    background: none;
    -webkit-text-fill-color: var(--text-light);
}

/* ========== STATS GRID ========== */
.tree-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.stat-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-image: linear-gradient(180deg, var(--e-global-color-primary) 0%, var(--e-global-color-secondary) 100%);
    transform: scaleY(0);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--e-global-color-primary);
}

.stat-card:hover::before {
    transform: scaleY(1);
}

.stat-icon {
    font-size: 40px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eeabf 0%, #764ba215 100%);
    border-radius: var(--radius-sm);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.magnifie {
    width: 20px;
}

/* ========== ACTION BAR ========== */
.tree-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.6s ease 0.6s both;
}

.action-left,
.action-right {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.btn-view-mode {
    padding: 10px 20px;
	position: relative;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-view-mode .icon {
    font-size: 16px;
}

.btn-view-mode:hover {
    border-color: var(--e-global-color-primary);
    background: var(--e-global-color-6538edc);
    color: white;
}

.btn-view-mode.active {
    background-image: linear-gradient(180deg, var(--e-global-color-primary) 0%, var(--e-global-color-secondary) 100%);
    color: white;
    border-color: transparent;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-image: linear-gradient(180deg, var(--e-global-color-secondary) 0%, var(--e-global-color-primary) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background-image: linear-gradient(180deg, var(--e-global-color-primary) 0%, var(--e-global-color-secondary) 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-image: linear-gradient(180deg, var(--e-global-color-secondary) 0%, var(--e-global-color-primary) 100%);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--e-global-color-primary);
    background-image: linear-gradient(0deg, var(--e-global-color-secondary) 0%, var(--e-global-color-primary) 100%);
    color: white;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

/* ========== CONTROLS BAR ========== */
.tree-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease 0.8s both;
}

.controls-group {
    display: flex;
    gap: 8px;
}

.control-btn {
    height: 40px;
    padding: 0 15px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.control-btn:hover {
    border-color: var(--e-global-color-primary);
    background: var(--e-global-color-6538edc);
    color: white;
    transform: scale(1.05);
}

.controls-info {
    color: var(--text-light);
    font-size: 13px;
}

/* ========== MAIN CONTENT ========== */
.tree-main-content {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    animation: fadeInUp 0.6s ease 1s both;
    min-height: 600px;
}

.tree-canvas {
    width: 100%;
    height: 700px;
    position: relative;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #fdfbfb 0%, #f6f9fc 100%);
}

/* ========== EMPTY STATE ========== */
.tree-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 60px 20px;
    text-align: center;
}

.empty-illustration {
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.empty-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.empty-description {
    font-size: 16px;
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* ========== MODAL ========== */
.tree-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    overflow-y: auto;
}

.tree-modal.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9998;
}

.modal-container {
    position: relative;
    background: white;
    margin: 40px auto;
    max-width: 600px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-large {
    max-width: 900px;
}

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

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

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-title .icon {
    font-size: 28px;
}

.modal-close {
    background: linear-gradient(180deg, var(--e-global-color-secondary) 0%, var(--e-global-color-primary) 100%);
    border: none;
    font-size: 24px !important;
    color: #fff;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    padding: 0 !important;
}

.modal-close:hover {
    background: var(--bg-light);
    color: #fff;
    transform: rotate(180deg);
}

.modal-body {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
}

/* ========== FORM ========== */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.step-number {
    width: 40px;
    height: 40px;
    background-image: linear-gradient(180deg, var(--e-global-color-secondary) 0%, var(--e-global-color-primary) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.step-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.required {
    color: var(--danger-color);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
    background: white;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--e-global-color-primary);
    box-shadow: 0 0 0 4px rgba(var(--e-global-color-primary-rgb), 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.search-input-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--text-light);
    pointer-events: none;
}

/* ========== RELATIONSHIP CARDS ========== */
.relationship-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.relationship-card {
    cursor: pointer;
    position: relative;
}

.relationship-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.card-content {
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    background: white;
}

.relationship-card:hover .card-content {
    border-color: var(--e-global-color-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.relationship-card input:checked+.card-content {
    background-image: linear-gradient(180deg, var(--e-global-color-secondary) 0%, var(--e-global-color-primary) 100%);
    border-color: transparent;
    color: white;
}

.card-icon {
    display: block;
    font-size: 32px;
    margin-bottom: 10px;
}

.card-title {
    display: block;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
}

.card-desc {
    display: block;
    font-size: 12px;
    opacity: 0.8;
}

/* ========== FORM ACTIONS ========== */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

/* ========== SEARCH RESULTS ========== */
.search-results-dropdown {
    position: absolute;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-top: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
	padding: 10px;
    display: none;
}

.search-results-dropdown.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

.search-result-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

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

.search-result-item:hover {
    background: var(--e-global-color-6538edc);
    color: white;
}

.search-result-item img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
}

.search-result-info {
    flex: 1;
}

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

.search-result-item:hover .search-result-name {
    color: white;
}

.search-result-position {
    font-size: 12px;
    color: var(--text-light);
}

.search-result-item:hover .search-result-position {
    color: rgba(255, 255, 255, 0.9);
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-light);
}

/* ========== SELECTED COACH CARD ========== */
.selected-coach-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(var(--e-global-color-primary-rgb), 0.1) 0%, rgba(var(--e-global-color-secondary-rgb), 0.1) 100%);
    border: 2px solid var(--e-global-color-primary);
    border-radius: var(--radius-md);
    margin-top: 12px;
}

.coach-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: var(--shadow-sm);
}

.coach-info {
    flex: 1;
}

.coach-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.coach-position {
    font-size: 13px;
    color: var(--text-light);
}

.btn-remove-selection {
    background: linear-gradient(180deg, var(--e-global-color-secondary) 0%, var(--e-global-color-primary) 100%);
    border: none;
    font-size: 24px !important;
    color: #fff;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    padding: 0 !important;
/*     transition: var(--transition); */
}

.btn-remove-selection:hover {
  
    color: #fff;
    transform: rotate(180deg);
}

/* ========== SUGGESTIONS GRID ========== */
.suggestions-intro {
    color: var(--text-light);
    margin-bottom: 24px;
    text-align: center;
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.suggestion-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.suggestion-card:hover {
    border-color: var(--e-global-color-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ========== PENDING REQUESTS ========== */
.pending-requests-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pending-request-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: var(--transition);
}

.pending-request-card:hover {
    border-color: var(--e-global-color-primary);
    box-shadow: var(--shadow-md);
}

/* ========== LOGIN PROMPT ========== */
.pinnacle-tree-login-prompt {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-card {
    max-width: 500px;
    text-align: center;
    background: white;
    padding: 60px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.login-icon {
    font-size: 80px;
    margin-bottom: 24px;
}

.login-card h3 {
    font-size: 28px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.login-card p {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background-image: linear-gradient(180deg, var(--e-global-color-secondary) 0%, var(--e-global-color-primary) 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background-image: linear-gradient(180deg, var(--e-global-color-primary) 0%, var(--e-global-color-secondary) 100%);
}

/* ========== LIST VIEW STYLES ========== */
.tree-list-view {
    width: 100%;
    min-height: 600px;
    padding: 30px;
    background: linear-gradient(135deg, #fdfbfb 0%, #f6f9fc 100%);
}

.list-container {
    max-width: 1200px;
    margin: 0 auto;
}

.list-section {
    margin-bottom: 40px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    animation: fadeInUp 0.4s ease;
}

.list-section-header {
    padding: 10px 30px;
    margin: 0px 0 20px 0;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-items-grid {
    padding: 10px;
}

.list-section-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.count-badge {
    background-image: linear-gradient(180deg, var(--e-global-color-secondary) 0%, var(--e-global-color-primary) 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.list-section-content {
    padding: 20px;
}

.list-connection-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    transition: var(--transition);
}

.list-connection-card:last-child {
    margin-bottom: 0;
}

.list-connection-card:hover {
    border-color: var(--e-global-color-primary);
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.card-avatar {
    position: relative;
    flex-shrink: 0;
}

.card-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: var(--shadow-md);
    object-fit: cover;
}

.avatar-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: white;
    box-shadow: var(--shadow-sm);
}

.mentor-badge {
    background-image: linear-gradient(135deg, var(--e-global-color-secondary) 0%, var(--e-global-color-primary) 100%);
}

.mentee-badge {
    background-image: linear-gradient(135deg, var(--e-global-color-primary) 0%, var(--e-global-color-secondary) 100%);
}

.colleague-badge {
    background: var(--e-global-color-6538edc);
}

.card-content {
    flex: 1;
}

.card-name {
    margin: 0 0 6px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.card-position {
    font-size: 15px;
    font-weight: 600;
    color: var(--e-global-color-primary);
    margin-bottom: 4px;
}

.card-org {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.card-years {
    font-size: 13px;
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--bg-light);
    border-radius: 12px;
}

.card-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-view-profile,
.btn-send-message {
    width: 44px;
    height: 44px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
	padding: 20px !important;
}

.btn-view-profile:hover,
.btn-send-message:hover {
    border-color: var(--e-global-color-primary);
    background: var(--e-global-color-6538edc);
    transform: scale(1.1);
}

.list-empty-section {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

/* Mentor Section Color */
.mentor-section .list-section-header {
    border-left: 4px solid var(--e-global-color-secondary);
}

/* Mentee Section Color */
.mentee-section .list-section-header {
    border-left: 4px solid var(--e-global-color-primary);
}

/* Colleague Section Color */
.colleague-section .list-section-header {
    border-left: 4px solid var(--e-global-color-6538edc);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .pinnacle-tree-pro-wrapper {
        padding: 15px;
    }

    .hero-title {
        font-size: 32px;
    }

    .tree-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-icon {
        font-size: 32px;
        width: 50px;
        height: 50px;
    }

    .stat-value {
        font-size: 24px;
    }

    .tree-action-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
    }

    .action-left,
    .action-right {
        width: 100%;
        flex-direction: column;
    }

    .btn-view-mode,
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .tree-controls-bar {
        flex-direction: column;
        gap: 10px;
    }

    .controls-info {
        text-align: center;
    }

    .tree-canvas {
        height: 500px;
    }

    .relationship-cards {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-container {
        margin: 20px;
        max-width: calc(100% - 40px);
    }

    .modal-header {
        padding: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-title {
        font-size: 20px;
    }

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

    .empty-title {
        font-size: 22px;
    }

    .empty-description {
        font-size: 14px;
    }
    
    .tree-list-view {
        padding: 15px;
    }
    
    .list-section-header {
        padding: 16px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .list-section-header h3 {
        font-size: 18px;
    }
    
    .list-section-content {
        padding: 15px;
    }
    
    .list-connection-card {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }
    
    .card-content {
        text-align: center;
    }
    
    .card-actions {
        width: 100%;
        justify-content: center;
    }
    
    .card-years {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

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

    .modal-container {
        margin: 0;
        max-width: 100%;
        border-radius: 0;
        height: 100vh;
    }

    .modal-body {
        max-height: calc(100vh - 80px);
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions button {
        width: 100%;
    }
    
    .card-avatar img {
        width: 64px;
        height: 64px;
    }
    
    .card-name {
        font-size: 18px;
    }
    
    .card-position {
        font-size: 14px;
    }
    
    .btn-view-profile,
    .btn-send-message {
        width: 40px;
        height: 40px;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.list-connection-card {
    animation: slideInRight 0.4s ease;
}

.list-connection-card:nth-child(1) { animation-delay: 0.1s; }
.list-connection-card:nth-child(2) { animation-delay: 0.15s; }
.list-connection-card:nth-child(3) { animation-delay: 0.2s; }
.list-connection-card:nth-child(4) { animation-delay: 0.25s; }
.list-connection-card:nth-child(5) { animation-delay: 0.3s; }
.list-connection-card:nth-child(n+6) { animation-delay: 0.35s; }

/* ========== SCROLLBAR STYLING ========== */
.modal-body::-webkit-scrollbar,
.search-results-dropdown::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track,
.search-results-dropdown::-webkit-scrollbar-track {
    background: var(--bg-light);
}

.modal-body::-webkit-scrollbar-thumb,
.search-results-dropdown::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover,
.search-results-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* ========== UTILITY CLASSES ========== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }

.vis-tooltip {
    display: none !important;
}

/* END OF FILE */