:root {
    /* Palette from image */
    --benito-orange: #f4a73b;
    /* Primary Orange */
    --benito-orange-dark: #647611;
    /* Olive Green (Secondary/Hover) */
    --benito-orange-light: #fad47f;
    /* Light Yellow (Highlights) */

    --benito-dark: #344c5c;
    /* Dark Slate Blue (Main BG) */
    --benito-dark-light: #68a16c;
    /* Muted Green (Secondary BG/Accents) */

    --benito-beige: #cac49f;
    /* Beige (Cards/Text Alt) */

    --white: #FFFFFF;
    --gray-light: #F5F5F5;
    --gray: #CCCCCC;
    --gray-dark: #666666;
    --success: #68a16c;
    /* Using the Muted Green for success */
    --error: #F44336;
}

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #344c5c 0%, #2a3d4a 50%, #1f2d36 100%);
    color: var(--white);
    line-height: 1.6;
    min-height: 100vh;
}

/* Welcome Screen */
.welcome-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.welcome-container {
    text-align: center;
    max-width: 600px;
    animation: fadeIn 0.8s ease-out;
    position: relative;
    z-index: 10;
}

.benito-avatar {
    margin-bottom: 2rem;
}

/* Simple Cute Cat Mascot */
.cat-mascot {
    width: 200px;
    height: 240px;
    margin: 0 auto;
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.cat-head {
    width: 140px;
    height: 120px;
    background: linear-gradient(135deg, var(--benito-orange-light) 0%, var(--benito-orange) 100%);
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(255, 102, 0, 0.4);
}

.cat-ears {
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
}

.ear {
    width: 40px;
    height: 50px;
    background: linear-gradient(135deg, var(--benito-orange-light) 0%, var(--benito-orange-dark) 100%);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    position: relative;
}

.ear::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 22px;
    background: rgba(255, 255, 255, 0.3);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.cat-face {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

.cat-eyes {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 15px;
}

.eye {
    width: 22px;
    height: 30px;
    background: var(--benito-dark);
    border-radius: 50%;
    position: relative;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.5);
}

.eye::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
}

.cat-nose {
    width: 12px;
    height: 10px;
    background: rgba(0, 0, 0, 0.4);
    clip-path: polygon(50% 100%, 0% 0%, 100% 0%);
    margin: 0 auto 8px;
}

.cat-body {
    width: 120px;
    height: 100px;
    background: linear-gradient(135deg, var(--benito-orange-light) 0%, var(--benito-orange) 100%);
    border-radius: 50% 50% 60% 60%;
    margin: -20px auto 0;
    position: relative;
    box-shadow: 0 15px 40px rgba(255, 102, 0, 0.3);
}

.cat-stripe {
    width: 60%;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin: 25px auto 10px;
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.text-orange {
    color: var(--benito-orange);
    text-shadow: 0 0 20px rgba(255, 102, 0, 0.5);
}

.benito-message {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--benito-orange);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.benito-message p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    line-height: 1.8;
}

.benito-message strong {
    color: var(--white);
    font-weight: 700;
}

/* Login Screen */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-container {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.6s ease-out;
    position: relative;
    z-index: 20;
}

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

.logo h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--white);
}

.highlight {
    color: var(--benito-orange);
    text-shadow: 0 0 15px rgba(255, 102, 0, 0.5);
}

.tagline {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
    font-size: 1rem;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 12px;
}

.tab {
    flex: 1;
    padding: 0.8rem;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
}

.tab.active {
    background: var(--benito-orange);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

/* Forms */
.auth-form {
    display: block;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    color: var(--white);
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--benito-orange);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Buttons */
.btn {
    padding: 0.9rem 1.8rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--benito-orange) 0%, var(--benito-orange-dark) 100%);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 102, 0, 0.5);
}

.btn-large {
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-google {
    background: var(--white);
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-google:hover {
    background: #f8f8f8;
    transform: translateY(-2px);
}

/* Auth Divider */
.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
    background: var(--benito-dark-light);
    padding: 0 1rem;
    position: relative;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Error Messages */
.error-message {
    background: rgba(244, 67, 54, 0.15);
    color: #ff6b6b;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 3px solid var(--error);
    font-size: 0.9rem;
}

.error-message.hidden {
    display: none;
}

/* Info Section */
.info-section {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.info-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.link {
    color: var(--benito-orange);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.link:hover {
    color: var(--benito-orange-light);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.hidden {
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--benito-orange);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 2rem;
    }

    .login-container {
        padding: 2rem 1.5rem;
    }

    .cat-mascot {
        transform: scale(0.85);
    }
}

/* =========================================
   ADMIN DASHBOARD STYLES
   ========================================= */

/* Admin Header */
.header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo-header h1 {
    font-size: 1.5rem;
    color: var(--white);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-admin {
    background: var(--benito-orange);
    color: var(--white);
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    vertical-align: middle;
}

.user-name {
    margin-right: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Main Content Layout */
.main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Benito Tip Card */
.benito-card {
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.1) 0%, rgba(255, 102, 0, 0.05) 100%);
    border: 1px solid rgba(255, 102, 0, 0.3);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.benito-mini {
    width: 40px;
    height: 40px;
    background: var(--benito-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: var(--white);
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(255, 102, 0, 0.4);
}

.benito-tip {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 0.95rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--benito-orange);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section Tabs */
.tabs-admin {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.tab-admin {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 8px;
}

.tab-admin:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.tab-admin.active {
    color: var(--benito-orange);
    background: rgba(255, 102, 0, 0.1);
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.select-filter {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
}

/* Users Grid (The core fix) */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.user-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.user-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: rgba(255, 102, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.user-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--benito-orange) 0%, var(--benito-orange-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
}

.user-info h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--white);
}

.user-info p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.user-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

.role-badge {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.role-admin {
    background: rgba(255, 102, 0, 0.2);
    color: var(--benito-orange);
    border: 1px solid rgba(255, 102, 0, 0.3);
}

.role-nutricionista {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.role-entrenador {
    background: rgba(33, 150, 243, 0.2);
    color: #2196F3;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.user-date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #1A1A2E;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-label {
    color: rgba(255, 255, 255, 0.5);
}

.btn-danger {
    background: rgba(244, 67, 54, 0.2);
    color: #F44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.btn-danger:hover {
    background: rgba(244, 67, 54, 0.3);
}


/* =========================================
   CLIENT DASHBOARD STYLES
   ========================================= */

/* Dashboard Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    padding-bottom: 2rem;
}

/* Base Card Style (Reusable) */
.card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 102, 0, 0.2);
}

.card-wide {
    grid-column: 1 / -1;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
}

.card-header h2 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body {
    padding: 1.5rem;
    flex: 1;
}

/* Professionals Section */
.professional-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.professional-label {
    color: rgba(255, 255, 255, 0.6);
}

.professional-value {
    color: var(--white);
    font-weight: 600;
}

/* Progress Bars */
.progress-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.progress-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--benito-orange) 0%, var(--benito-orange-light) 100%);
    border-radius: 5px;
    transition: width 1s ease-out;
}

/* Empty State */
.empty-state {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
    padding: 2rem 0;
}

/* Content Lists (Menus/Routines) */
.item-list {
    list-style: none;
}

.item-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-list li:last-child {
    border-bottom: none;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 4px solid;
}

.alert-warning {
    background: rgba(255, 152, 0, 0.1);
    border-color: #FF9800;
    color: #ffd180;
}

.alert h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #FF9800;
}

/* Search Box */
.search-container {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--white);
    font-family: inherit;
}

.search-input:focus {
    outline: none;
    border-color: var(--benito-orange);
    box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.1);
}

/* Search Type Buttons */
.search-type-btn {
    opacity: 0.7;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-type-btn.active {
    opacity: 1;
    background: rgba(255, 102, 0, 0.2);
    border-color: var(--benito-orange);
    color: var(--benito-orange);
}

/* Search Results */
.search-results {
    margin-top: 1.5rem;
    max-height: 400px;
    /* Scrollable results container */
    overflow-y: auto;
    padding-right: 5px;
}

/* Custom Scrollbar for results */
.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.search-results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.search-result-item {
    display: flex;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.search-result-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    background: #fff;
}

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

.search-result-name {
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.3rem;
}

.search-result-details {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Modal Large */
.modal-large {
    max-width: 800px;
    align-self: flex-start;
    margin-top: 5vh;
    max-height: 90vh;
    overflow-y: auto;
}

/* Body Record Form Grid */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Content Card (for Modal Lists) */
.content-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.content-card h3 {
    margin-top: 0;
    color: var(--benito-orange);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

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

    .search-container {
        flex-direction: column;
    }
}
/* =========================================
   PROFESSIONAL DASHBOARD STYLES
   ========================================= */

/* Professional Tabs */
.tabs-professional {
    display: flex;
    gap: 1rem;
    padding-bottom: 2rem;
    overflow-x: auto; /* Allow scrolling on small screens */
    white-space: nowrap;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}
.tabs-professional::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.tab-prof {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-prof:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transform: translateY(-2px);
}

.tab-prof.active {
    background: rgba(255, 102, 0, 0.15); /* Using orange opacity */
    border-color: var(--benito-orange);
    color: var(--benito-orange);
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.2);
}

/* Clients Grid */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.client-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.client-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: rgba(100, 118, 17, 0.5); /* Olive green border on hover */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.client-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.client-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--benito-orange) 0%, var(--benito-orange-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.client-info h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--white);
}

.client-info p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.client-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.client-stat {
    text-align: center;
    flex: 1;
}

.client-stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--benito-orange-light);
}

.client-stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

/* Content Grid (Routines/Plans) */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.content-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.content-card.out-of-range {
    opacity: 0.7;
    border-style: dashed;
}

.content-card h3 {
    margin-top: 0;
    color: var(--benito-orange);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.content-card-footer {
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* Forms & Items */
.form-section {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 12px;
}

.form-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.form-section-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--white);
}

.exercise-item, .meal-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.item-number {
    font-weight: 600;
    color: var(--benito-orange-light);
}

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

.remove-item-btn {
    background: none;
    border: none;
    color: #F44336;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
}

.remove-item-btn:hover {
    color: #ff7961;
}

/* Invite Section */
.invite-content {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    padding: 2rem;
}

/* Client Detail Tabs */
.tabs-client-detail {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tab-client-detail {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s;
}

.tab-client-detail:hover {
    color: var(--white);
}

.tab-client-detail.active {
    color: var(--benito-orange);
    font-weight: 600;
}

.tab-client-detail.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--benito-orange);
}

