/* ===== GLOBAL DESIGN SYSTEM ===== */

/* CSS Variables */
:root {
    /* Colors */
    --primary-green: #28a745;
    --primary-green-dark: #1e7e34;
    --text-light: #ffffff;
    --text-dark: #333333;
    --text-muted: #6c757d;
    --border-light: #e9ecef;
    --shadow-light: rgba(0,0,0,0.1);
    --shadow-medium: rgba(0,0,0,0.15);
    
    /* Spacing */
    --card-padding: 1.5rem;
    --card-radius: 12px;
    --card-min-height: 120px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s ease;
}

/* ===== GLOBAL CARD SYSTEM ===== */
.info-card {
    background: var(--card-bg-color, var(--text-light));
    border-radius: var(--card-radius);
    padding: var(--card-padding);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 4px var(--shadow-light);
    transition: transform var(--transition-fast);
    height: 100%;
    min-height: var(--card-min-height);
    border-bottom: 3px solid var(--primary-green);
}

.info-card:hover {
    transform: translateY(-2px);
}

.info-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-light);
    flex-shrink: 0;
}

.info-card-content {
    flex: 1;
}

.info-card-content h6 {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.info-card-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.info-card-label {
    font-size: 0.8rem;
    color: #888;
}

/* ===== GLOBAL NUTRIENT CARDS ===== */
.nutrient-card {
    background: var(--text-light);
    border-radius: var(--card-radius);
    padding: var(--card-padding);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 4px var(--shadow-light);
    transition: all var(--transition-smooth);
    height: 100%;
    min-height: 140px;
    border-bottom: 3px solid var(--primary-green);
    cursor: pointer;
}

.nutrient-card:hover {
    transform: translateY(-2px);
}

.nutrient-card.nutrient-exceeded {
    border-bottom-color: #dc3545;
    background-color: #fff5f5;
}

.nutrient-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-light);
    flex-shrink: 0;
}

.nutrient-card.nutrient-exceeded .nutrient-card-icon {
    background-color: #dc3545;
}

.nutrient-card-content {
    flex: 1;
}

.nutrient-card-content h6 {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.nutrient-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.25rem;
}

.nutrient-goal {
    font-size: 0.8rem;
    color: #888;
}

.nutrient-chart-container {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.nutrient-chart-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.chart-percentage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    color: var(--text-dark);
    z-index: 10;
    pointer-events: none;
    text-align: center;
    line-height: 1;
}

/* ===== GLOBAL HEADERS ===== */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: var(--card-radius);
    box-shadow: 0 4px 15px var(--shadow-light);
    margin-bottom: 2rem;
}

.page-header h2 {
    color: white;
    font-weight: 600;
}

.page-header .text-muted {
    color: rgba(255,255,255,0.8) !important;
}

/* ===== GLOBAL BUTTONS ===== */
.btn-outline-primary {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

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

.btn-success {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

/* ===== GLOBAL MODALS ===== */
.modal-header {
    background: var(--primary-green);
    color: var(--text-light);
    border-bottom: none;
}

.modal-header .btn-close {
    filter: invert(1);
}

/* ===== GLOBAL FORMS ===== */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* ===== GLOBAL CARD HEADERS ===== */
.card-header.bg-primary-green {
    background-color: var(--primary-green-dark) !important;
    color: var(--text-light) !important;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-green);
}

.card-header.bg-primary-green h5,
.card-header.bg-primary-green h6 {
    color: var(--text-light) !important;
    font-weight: 600;
    margin: 0;
}

/* ===== UNIFIED PAGE HEADER ===== */
.page-header-container {
    margin-bottom: 1.5rem;
    margin-top: 1.25rem; /* Spacing from menu (when no banner) or from expiry banner (when visible) */
    border-bottom: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    background: #fafbfc;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.page-header-title-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.page-header-title-section h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    line-height: 1.2;
    margin-top: 0;
}

.page-header-title-section .page-header-subtitle-badge {
    display: inline-flex;
    align-items: center;
    background: #f0f4f8;
    color: var(--text-muted);
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-light);
}

.page-header-actions-container {
    background: #e8f5e9;
    border: 1px solid var(--primary-green);
    border-radius: 8px;
    padding: 0.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header-actions {
    flex-shrink: 0;
}

/* Visual separator between primary and secondary actions */
.page-header-actions-separator {
    width: 1px;
    height: 24px;
    background-color: #dee2e6;
    margin: 0 0.5rem;
    flex-shrink: 0;
}

/* Primary buttons (full buttons) in header */
.page-header-actions .btn:not(.btn-icon-only) {
    padding: 0.5rem 1rem;
    font-weight: 500;
    min-height: 38px;
}

.page-header-actions .btn-success:not(.btn-icon-only) {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
}

.page-header-actions .btn-success:not(.btn-icon-only):hover {
    background-color: var(--primary-green-dark);
    border-color: var(--primary-green-dark);
}

.page-header-actions .btn-primary:not(.btn-icon-only) {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

/* Icon-only buttons for secondary actions */
.btn-icon-only {
    width: auto;
    height: 38px;
    min-width: 38px;
    padding: 0 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    transition: all var(--transition-fast);
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: var(--text-dark);
}

.btn-icon-only.btn-success,
.btn-icon-only.btn-outline-success {
    border-color: var(--primary-green);
    color: var(--primary-green);
    background-color: #f8f9fa;
}

.btn-icon-only.btn-success:hover,
.btn-icon-only.btn-outline-success:hover {
    background-color: rgba(40, 167, 69, 0.1);
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.btn-icon-only.btn-primary,
.btn-icon-only.btn-outline-primary {
    border-color: #0d6efd;
    color: #0d6efd;
    background-color: #f8f9fa;
}

.btn-icon-only.btn-primary:hover,
.btn-icon-only.btn-outline-primary:hover {
    background-color: rgba(13, 110, 253, 0.1);
    border-color: #0d6efd;
    color: #0d6efd;
}

.btn-icon-only.btn-danger,
.btn-icon-only.btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
    background-color: #f8f9fa;
}

.btn-icon-only.btn-danger:hover,
.btn-icon-only.btn-outline-danger:hover {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
    color: #dc3545;
}

.btn-icon-only.btn-info,
.btn-icon-only.btn-outline-info {
    border-color: #0dcaf0;
    color: #0dcaf0;
    background-color: #f8f9fa;
}

.btn-icon-only.btn-info:hover,
.btn-icon-only.btn-outline-info:hover {
    background-color: rgba(13, 202, 240, 0.1);
    border-color: #0dcaf0;
    color: #0dcaf0;
}

/* Icon-only Exchange Diet header button (Patients Details) */
.btn-icon-only.exchange-diet-icon-btn {
    border-color: var(--dark-green);
    color: var(--dark-green);
}

.btn-icon-only.exchange-diet-icon-btn i {
    font-size: 1.1rem;
}

.btn-icon-only i {
    font-size: 1rem;
    margin: 0;
}

.btn-icon-only:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px var(--shadow-light);
}

.btn-icon-only:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn-icon-only.disabled,
.btn-icon-only:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.page-header-secondary-actions {
    /* No separator needed - all actions are icon-only now */
}

/* Responsive header adjustments */
@media (max-width: 768px) {
    .page-header-container {
        padding: 0.75rem 1rem;
    }
    
    .page-header-container .d-flex {
        flex-direction: column;
        align-items: stretch !important;
        gap: 1rem;
    }
    
    .page-header-title-section {
        width: 100%;
    }
    
    .page-header-title-section h1 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }
    
    .page-header-actions-container {
        width: 100%;
        padding: 0.75rem;
    }
    
    .page-header-actions {
        width: 100%;
        display: flex !important;
        flex-direction: row !important;
        justify-content: center;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.75rem;
    }
    
    .page-header-actions > * {
        flex-shrink: 0;
    }
    
    .page-header-actions .btn:not(.btn-icon-only) {
        padding: 0.5rem 1rem;
        min-height: 38px;
    }
    
    .page-header-actions-separator {
        width: 100%;
        height: 1px;
        margin: 0.5rem 0;
        background-color: #dee2e6;
    }
    
    .btn-icon-only {
        width: auto;
        height: 38px;
        min-width: 38px;
        flex-shrink: 0;
        display: inline-flex !important;
    }
    
    .btn-icon-only i {
        font-size: 1rem;
    }
}

/* ===== GLOBAL RESPONSIVE ===== */
@media (max-width: 768px) {
    .info-card,
    .nutrient-card {
        min-height: 100px;
        padding: 1rem;
    }
    
    .info-card-icon,
    .nutrient-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .nutrient-chart-container {
        width: 50px;
        height: 50px;
    }
}

/* ===== GLOBAL ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

.slide-in-up {
    animation: slideInUp 0.3s ease-out;
}

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

/* ===== BEAUTIFUL CARD ANIMATIONS (from diet-view.css) ===== */
@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cardBounce {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

@keyframes chartGrow {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes iconPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ===== CARD LOADING ANIMATIONS ===== */
.info-card,
.nutrient-card {
    animation: cardSlideIn 0.6s ease-out;
}

.info-card:nth-child(1),
.nutrient-card:nth-child(1) { animation-delay: 0.1s; }
.info-card:nth-child(2),
.nutrient-card:nth-child(2) { animation-delay: 0.2s; }
.info-card:nth-child(3),
.nutrient-card:nth-child(3) { animation-delay: 0.3s; }
.info-card:nth-child(4),
.nutrient-card:nth-child(4) { animation-delay: 0.4s; }
.info-card:nth-child(5),
.nutrient-card:nth-child(5) { animation-delay: 0.5s; }
.info-card:nth-child(6),
.nutrient-card:nth-child(6) { animation-delay: 0.6s; }

/* ===== CHART ANIMATIONS ===== */
.nutrient-chart-container canvas {
    animation: chartGrow 0.8s ease-out;
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

.chart-percentage {
    animation: fadeIn 1s ease-out;
    animation-delay: 0.5s;
    animation-fill-mode: both;
}

/* ===== ICON ANIMATIONS ===== */
.info-card-icon,
.nutrient-card-icon {
    animation: iconPulse 0.5s ease-out;
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

/* ===== HOVER ENHANCEMENTS ===== */
.info-card:hover,
.nutrient-card:hover {
    animation: cardBounce 0.3s ease-out;
}

.info-card:hover .info-card-icon,
.nutrient-card:hover .nutrient-card-icon {
    animation: iconPulse 0.3s ease-out;
}

/* ===== LOADING STATES ===== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-green);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2e7d32;
}

/* ===== TABBED INTERFACE ===== */
.tabbed-container {
    background: white;
    border-radius: var(--card-radius);
    box-shadow: 0 2px 4px var(--shadow-light);
    overflow: hidden;
}

.tab-nav {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tab-nav::-webkit-scrollbar {
    display: none;
}

.tab-nav-item {
    flex: 1;
    min-width: 120px;
}

.tab-nav-link {
    display: block;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #6c757d;
    font-weight: 500;
    text-align: center;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.tab-nav-link:hover {
    color: var(--primary-green);
    background: rgba(40, 167, 69, 0.05);
}

.tab-nav-link.active {
    color: var(--primary-green);
    border-bottom-color: var(--primary-green);
    background: white;
}

.tab-nav-link i {
    margin-left: 0.5rem;
    font-size: 0.9rem;
}

.tab-content {
    padding: 0;
}

.tab-pane {
    display: none;
    padding: 2rem;
    animation: fadeInUp 0.3s ease-out;
}

.tab-pane.active {
    display: block;
}

.tab-pane-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.tab-pane-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.tab-pane-actions {
    display: flex;
    gap: 0.5rem;
}

.tab-pane-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Responsive Tab Navigation */
@media (max-width: 768px) {
    .tab-nav {
        flex-direction: column;
    }
    
    .tab-nav-item {
        flex: none;
        min-width: auto;
    }
    
    .tab-nav-link {
        text-align: right;
        padding: 0.75rem 1rem;
        border-bottom: none;
        border-right: 3px solid transparent;
    }
    
    .tab-nav-link.active {
        border-right-color: var(--primary-green);
        border-bottom-color: transparent;
    }
    
    .tab-pane {
        padding: 1rem;
    }
    
    .tab-pane-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .tab-pane-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Tab Content Specific Styles */
.tab-content .list-group-item {
    border: none;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0;
}

.tab-content .list-group-item:last-child {
    border-bottom: none;
}

.tab-content .list-group-item:hover {
    background: #f8f9fa;
}

/* ===== WEIGHT CONCLUSION SECTION ===== */
.weight-conclusion {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid var(--primary-green);
    border-radius: var(--card-radius);
    padding: 1rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.weight-conclusion:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.weight-conclusion .conclusion-header {
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.weight-conclusion .conclusion-text {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.5;
}
.contact-link {
    transition: all 0.3s ease;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
}

.contact-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.contact-link.whatsapp:hover {
    background-color: rgba(37, 211, 102, 0.1);
}

.contact-link.email:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

.contact-link i {
    font-size: 1.1rem;
}
.info-section {
    background: #f8f9fa;
    border-radius: var(--card-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-green);
    transition: all 0.3s ease;
}

.info-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.section-title {
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
}

.section-title i {
    color: var(--primary-green);
    font-size: 1.1rem;
}

.info-list dt {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.info-list dd {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
    font-weight: 500;
}

.info-list dt:last-child,
.info-list dd:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Responsive adjustments for info sections */
@media (max-width: 768px) {
    .info-section {
        padding: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .section-title {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .info-list dt,
    .info-list dd {
        padding: 0.25rem 0;
        font-size: 0.9rem;
    }
}

/* ============================================
   PATIENT NAME LINKS - Modern Minimal Design
   ============================================ */

/* Base Patient Name Link Style - Clean & Minimal */
.patient-name-link {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
    transition: all 0.2s ease;
    position: relative;
    display: inline-block;
    cursor: pointer;
    padding: 0.125rem 0;
}

/* Subtle hover effect - just slightly darker */
.patient-name-link:hover {
    color: #2c5282;
    text-decoration: none;
}

/* Very subtle underline that appears only on hover */
.patient-name-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.patient-name-link:hover::after {
    opacity: 0.3;
    transform: scaleX(1);
    transform-origin: left;
}

/* Hide all icons by default */
.patient-name-link .patient-link-icon {
    display: none;
}

/* Focus state for accessibility - minimal but visible */
.patient-name-link:focus {
    outline: none;
    color: #2c5282;
}

.patient-name-link:focus::after {
    opacity: 0.5;
    transform: scaleX(1);
}

/* Context-specific styles */

/* In tables - slightly bolder on hover */
.patients-table .patient-name-link:hover {
    font-weight: 600;
}

/* In cards - keep the existing size and weight */
.info-card .patient-name-link {
    font-size: inherit;
    color: inherit;
}

.info-card .patient-name-link:hover {
    color: #1e7e34;
}

/* In dashboard schedule items */
.schedule-item .patient-name-link {
    font-weight: inherit;
    font-size: inherit;
}

/* Variants - no visual difference, just semantic */
.patient-name-link.patient-name-link-sm,
.patient-name-link.patient-name-link-lg {
    /* Inherit parent styles */
}

/* Page header specific - light color override */
.page-header .patient-name-link {
    color: rgba(255, 255, 255, 0.95);
}

.page-header .patient-name-link:hover {
    color: rgba(255, 255, 255, 1);
}

.page-header .patient-name-link::after {
    background: rgba(255, 255, 255, 0.8);
}

/* Mobile - keep it simple */
@media (max-width: 768px) {
    .patient-name-link:hover {
        /* On mobile, just show the color change, no underline animation */
    }
}

/* ============================================
   END PATIENT NAME LINKS
   ============================================ */
