/* ==========================================================================
   HOLA ULTRA-RESPONSIVE PROFILE DESIGN SYSTEM (Mobile to 4K Ultra-HD)
   ========================================================================== */

:root {
    /*--bg-dark-workspace: #090d16;*/
    /*--bg-card-workspace: #111827;*/
    --bg-card-workspace: #2283c7;
    --bg-white: #fff;
    --bg-dark-workspace: #f8f8f8;
    --border-white: #fff;
    /*--border-workspace: #1f2937;*/
    --border-workspace: #2582C5;
    --bg-green: #94C93B;
    --text-green: #94C93B;
    --text-bright: #f9fafb;
    --text-muted-gray: #9ca3af;
    --text-dark-gray: #525252;
    --text-dark-black: #1a1a1a;
    /*--accent-indigo: #6366f1;*/
    --accent-indigo: #2582C5;
    /*--accent-indigo-hover: #4f46e5;*/
    --accent-indigo-hover: #94C93B;
    
    /* Fluid typography architecture using dynamic clamping */
    --font-size-h1: clamp(1.5rem, 1rem + 2.5vw, 2.5rem);
    --font-size-h2: clamp(1.2rem, 0.9rem + 1.5vw, 1.75rem);
    --font-container-padding: clamp(1rem, 0.5rem + 3vw, 4rem);

    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body.hola-dashboard-body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark-workspace);
    color: var(--text-bright);
    font-family: var(--font-family);
    min-height: 100vh;
    box-sizing: border-box;
}

body.hola-dashboard-body *, 
body.hola-dashboard-body *::before, 
body.hola-dashboard-body *::after {
    box-sizing: border-box;
}

/* Master Layout Grid Matrix splits sidebar and core inputs */
.hola-profile-workspace {
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: 100vh;
}

/* Sidebar Styling Component */
.hola-profile-sidebar {
    background-color: var(--bg-card-workspace);
    border-right: 1px solid var(--border-workspace);
    padding: var(--font-container-padding);
    color: var(--text-white);
}

.hola-sidebar-sticky {
    position: sticky;
    top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--text-white);
}

.hola-avatar-badge {
    width: 96px;
    height: 96px;
    /*background: linear-gradient(135deg, #818cf8, #4f46e5);*/
    background: linear-gradient(135deg, var(--bg-green), var(--bg-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 20px;
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.4);
}

.hola-profile-sidebar h3 {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 600;
}

.hola-profile-sidebar p {
    margin: 0 0 16px 0;
    color: var(--text-white);
    font-size: 14px;
}

.hola-role-tag {
    background-color: rgba(99, 102, 241, 0.15);
    color: var(--text-white);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.hola-divider {
    width: 100%;
    border: 0;
    border-top: 1px solid var(--border-workspace);
    margin: 32px 0;
}

.hola-back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-white);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.hola-back-link:hover {
    color: var(--text-green);
}

/* Content Frame Area styling */
.hola-profile-content {
    padding: var(--font-container-padding);
    max-width: 1000px; /* Constrained form field layout width for readability */
    width: 100%;
    margin: 0 auto;
}

.hola-content-header {
    margin-bottom: 40px;
}

.hola-content-header h1 {
    font-size: var(--font-size-h1);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0 0 8px 0;
     color: var(--text-dark-black);
}

.hola-content-header p {
    color: var(--text-dark-gray);
    margin: 0;
    font-size: 16px;
}

/* Sections Inside Forms */
.hola-form-section {
    background-color: var(--bg-white);
    border: 1px solid var(--border-white);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;


    border-radius: var(--radius-lg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 10px 10px -5px rgba(0, 0, 0, 0.15);
    animation: authFadeUp 0.5s ease-out;
    color: var(--text-dark-black);
}

.hola-form-section h2 {
    font-size: var(--font-size-h2);
    font-weight: 700;
    margin: 0 0 24px 0;
}

.section-meta-text {
    /*color: var(--text-muted-gray);*/
    color: var(--text-dark-gray);
    font-size: 14px;
    font-weight: 400;
    margin: -16px 0 24px 0;
}

/* Responsive Form Fields Grid components */
.hola-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.hola-profile-form .form-group {
    margin-bottom: 20px;
}

.hola-profile-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    /*color: var(--text-muted-gray);*/
    color: var(--text-dark-gray);
    margin-bottom: 8px;
}

.hola-profile-form .form-control {
    width: 100%;
    padding: 14px 16px;
    background-color: rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-white);
    border-radius: 8px;
    color: var(--text-dark-gray);
    font-size: 15px;
    transition: all 0.2s ease;
}

.hola-profile-form .form-control:focus {
    outline: none;
    border-color: var(--accent-indigo);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Form Action Buttons Configuration styles */
.hola-form-actions {
    display: flex;
    justify-content: flex-end;
}

.btn-save {
    background-color: var(--accent-indigo);
    color: var(--text-white);
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-save:hover {
    background-color: var(--accent-indigo-hover);
    transform: translateY(-1px);
}

/* Status Notifications Alert Banners */
.hola-ui-alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
}
.hola-alert-success { background-color: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.hola-alert-danger { background-color: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }

/* ==========================================================================
   VIEWPORT BREAKPOINT LAYOUT ADAPTATION MODIFIERS
   ========================================================================== */

/* Tablet Optimization Layer */
@media (max-width: 1024px) {
    .hola-profile-workspace {
        grid-template-columns: 1fr; /* Snap main view layout stack vertically */
    }
    .hola-profile-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-workspace);
        padding: 40px 20px;
    }
    .hola-sidebar-sticky {
        position: static;
    }
}

/* Mobile Devices Breakpoint */
@media (max-width: 640px) {
    .hola-form-grid {
        grid-template-columns: 1fr; /* Break two column fields flat into single lines */
        gap: 0;
    }
    .hola-form-section {
        padding: 20px;
    }
    .btn-save {
        width: 100%; /* Stretch button block sizing to touch target limits */
    }
    .hola-profile-form .form-control {
        font-size: 16px; /* Prevents auto zoom-shifting behaviors in mobile Safari panels */
    }
}

/* ==========================================================================
   ULTRA HIGH RESOLUTION SCALING ENGINE (2K & 4K Optimization Layer)
   ========================================================================== */
@media (min-width: 2000px) {
    .hola-profile-workspace {
        grid-template-columns: 400px 1fr; /* Grant layout tracking balance to side bars */
    }
    .hola-profile-content {
        max-width: 1400px; /* Expand interface layouts line-lengths naturally */
    }
    .hola-form-grid {
        gap: 40px;
    }
    .hola-profile-form .form-control {
        padding: 18px 24px;
        font-size: 18px; /* upscale control size visually metrics match dot pitch ratios */
    }
    .btn-save {
        padding: 20px 48px;
        font-size: 18px;
    }
}