/* ===================== FONTS ===================== */

/* ایران‌یکان فَنام - وزن نرمال */
@font-face {
    font-family: 'IRANYekanFaNum';
    src: url('../../assets/fonts/iranyekanwebregularfanum.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ایران‌یکان فَنام - بولد */
@font-face {
    font-family: 'IRANYekanFaNum';
    src: url('../../assets/fonts/iranyekanwebboldfanum.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ایران‌سنس فَنام - بلک */
@font-face {
    font-family: 'IRANSansFaNum';
    src: url('../../assets/fonts/IRANSansWeb(FaNum)_Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}


/* ===================== GLOBAL ===================== */

body,input,select,button {
    margin: 0;
    font-family: 'IRANYekanFaNum', 'IRANSansFaNum', tahoma, sans-serif;
    background: #0f1724;
    color: #e5e7eb;
    overflow: auto !important;
}

.chat-container {
    display: flex;
    height: 100vh;
}


/* ===================== SIDEBAR ===================== */

.sidebar {
    width: 330px;
    background: #111827;
    border-left: 1px solid #253046;
    box-shadow: 0 0 15px rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 14px 16px;
    border-bottom: 1px solid #223047;
    background: #1d4ed8;
}

.sidebar-header-title {
    text-align:center;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

#searchAll {
    border-radius: 10px;
    font-size: 14px;
    padding: 7px 10px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #e5e7eb;
    transition: .2s;
}

#searchAll:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.18);
    outline: none;
}

.channel-list {
    overflow-y: auto;
    flex: 1;
    background: #111827;
}

.channel-item {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    border-bottom: 1px solid #1f2937;
    border-right: 3px solid transparent;
    background: #111827;
    transition: 0.2s;
}

.channel-item:hover {
    background: #172131;
}

.channel-item.active {
    background: #1a2740;
    border-right: 4px solid #3b82f6;
    box-shadow: inset 0 0 4px rgba(59,130,246,0.25);
}

.channel-info {
    display: flex;
    flex-direction: column;
    max-width: 65%;
}

.channel-title {
    font-weight: 700;
    font-size: 15px;
    color: #f3f4f6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hashtag {
    color: #60a5fa;
    font-weight: 600;
    cursor: pointer;
}

.mention {
    color: #60a5fa;
    font-weight: 600;
    cursor: pointer;
}

.last-msg {
    margin-top:10px;
    font-size: 13px;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.channel-meta {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.channel-time {
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
}

.channel-meta .badge {
    background-color: #16a34a;
    color: #fff;
    border-radius: 999px;
    padding: 2px 7px;
    font-size: 13px;
    min-width: 18px;
    text-align: center;
    display: inline-block;
}


/* نتایج جستجو */
.search-result-msg {
    padding: 8px 14px 8px 28px;
    background: #172033;
    border-bottom: 1px dashed #2b3953;
}

.search-result-msg .msg-box {
    font-size: 12px;
    color: #d1d5db;
    line-height: 1.7;
}


/* ===================== CHAT AREA ===================== */

.chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #0f1724;
}

.chat-header {
    height: 65px;
    background: #1d4ed8;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.chat-header-title {
    font-weight: 600;
    font-size: 16px;
    margin-left: auto;
}

.chat-header .back-btn {
    display: none;
    font-size: 20px;
    cursor: pointer;
}

.chat-header input {
    max-width: 210px;
    font-size: 13px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #e5e7eb;
}

.chat-header input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.15);
}

.messages-area {
    flex: 1;
    overflow-y: auto;
    background: #0b1220;
    padding: 20px 15px !important;
    box-sizing: border-box !important;
}

.msg {
    width: 60vw;
    background: #1f2937;
    color: #e5e7eb;
    padding: 10px 13px;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    line-height: 1.7;
    position: relative;
}

.msg.unread {
    border-right: 4px solid #3b82f6;
    background: #1b2434;
}

.msg-text {
    font-size: 16px;
    color: #f3f4f6;
    white-space: pre-wrap;
}

.from-channel {
    font-size: 11px;
    color: #60a5fa;
    margin-bottom: 4px;
}

.msg-date {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 5px;
    text-align: left;
}


/* ===================== MOBILE ===================== */

@media (max-width: 768px) {

    .sidebar {
        background: #111827 !important;
        position: fixed !important;
        width: 100vw;
        top: 0;
        bottom: 0;
        height: 100vh;
    }

    body,
    .chat-container {
        overflow: hidden !important;
    }

    .messages-area {
        width: 100% !important;
        margin: 0 !important;
        padding: 15px !important;
    }

    .msg {
        width: 92vw;
    }

    .sidebar.closed {
        transform: translateX(100%);
    }

    .chat-header .back-btn {
        display: block;
    }

    .chat-header-title {
        font-size: 16px;
    }

    .chat-header input {
        max-width: 150px;
    }
}


/* ===================== LOADER ===================== */

.loader {
    width: 36px;
    height: 36px;
    border: 4px solid #334155;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    margin: 15px auto;
    animation: spin 0.8s linear infinite;
}

.hidden {
    display: none !important;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* ===================== HASHTAG ===================== */

.hashtag {
    color: #60a5fa;
    cursor: pointer;
    font-weight: 500;
}

.hashtag:hover {
    text-decoration: underline;
}

.msg-link{
    color:#60a5fa;
    text-decoration:none;
    font-weight:500;
    word-break: break-all;
    overflow-wrap: anywhere;
    display:inline-block;
    max-width:100%;
}

.msg-link:hover{
    text-decoration:underline;
}

.container {
    background: #111827;
    color: #e5e7eb;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

h2 {
    margin-bottom: 25px;
    color: #f9fafb;
}

.add-box {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.input {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #475569;
    background: #0f172a;
    color: #e5e7eb;
}

.btn {
    background: #2563eb;
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
}

.btn:hover {
    background: #1d4ed8;
}

.filters {
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: #111827;
    color: #e5e7eb;
}

.table th {
    background: #1d4ed8;
    color: white;
    padding: 12px;
    text-align: center;
}

.table td {
    padding: 12px;
    border-bottom: 1px solid #253046;
    text-align: center;
}

.delete-btn {
    background: #dc2626;
    padding: 8px 14px;
    color: white;
    border-radius: 7px;
    text-decoration: none;
}

.delete-btn:hover {
    background: #b91c1c;
}

.search-icon {
    position: absolute;
    right: 10px;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #94a3b8;
    pointer-events: none;
}

.search-wrapper{
    position: relative;
    width: 100%;
    margin-top:10px; 
}

.search-wrapper .search-input {
    text-align:center;
    width: 100%;
    padding-right: 32px;
    box-sizing: border-box;
}

.sidebar-header{
    position: relative;
}

.search-icon{
    position:absolute;
    right:10px;
    top:50%;
    transform:translateY(-50%);
}

#searchAll{
    padding-right:30px;
}

@media (max-width:768px){

    .chat-header{
        flex-wrap: wrap;
        height: auto;
        padding:10px;
        gap:8px;
    }

    .back-btn{
        position:absolute;
        top:10px;
    }

    .chat-header-title{
        width:100%;
        text-align:center;
        font-size:15px;
    }

    .chat-body{
        position: fixed;
        inset: 0;
        width:100vw;
        height:100vh;
        background:#0f1724;
        z-index:5;
    }

    .sidebar{
        z-index:10;
        transition: transform .25s ease;
    }

    .sidebar.closed{
        transform: translateX(100%);
    }

    .chat-header .search-wrapper{
        width:calc(50% - 5px);
        max-width:calc(50%);
    }

    .chat-header input {
        max-width: 450px;
    }

    .msg-link{
        word-break: break-all;
        overflow-wrap: anywhere;
        max-width:100%;
    }

    .chat-body {
        max-height: 95vh;
    }
}

.clear-icon{
    position:absolute;
    left:8px;
    top:50%;
    transform:translateY(-50%);
    font-size:15px;
    color:#94a3b8;
    cursor:pointer;
    display:none;
}

.chat-header .search-wrapper{
    position:relative;
    max-width:210px;
}

.chat-header .search-wrapper input{
    width:100%;
    height:34px;
    border-radius:8px;
    border:1px solid #334155;
    background: #0f172a;
    color: #e5e7eb;
    padding-right:30px;
    font-size:13px;
}

.chat-header .search-wrapper .search-icon{
    position:absolute;
    right:8px;
    top:50%;
    transform:translateY(-50%);
    font-size:13px;
    color:#94a3b8;
    pointer-events:none;
}

/* ساختار جدید و ایزوله */
.sidebar-header{
    padding:15px;
}

/* ردیف بالا */
.header-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

/* عنوان */
.header-title{
    color:#ffffff;
    font-weight:bold;
    font-size:15px;
}

/* دکمه خروج */
.logout-wrapper {
    text-align: right;
    margin-top: 6px;
}

.logout-btn {
    background: #1f2937;
    color: #e5e7eb;
    border: 1px solid #334155;
    font-size: 12px;
    padding: 4px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s ease;
}

.logout-btn i {
    margin-top:3px;
    color:#f87171;
}

.logout-btn:hover {
    background: #dc2626;
    color: white;
}

/* سرچ */
.header-search{
    margin-top:12px;
    position:relative;
}

.header-search input{
    width:100%;
    padding:8px 35px 8px 10px;
    border-radius:8px;
    border:1px solid #334155;
    background: #0f172a;
    color: #e5e7eb;
}

.header-search i{
    position:absolute;
    right:10px;
    top:50%;
    transform:translateY(-50%);
    color:#94a3b8;
}


/* عمومی */
body {
    font-family: 'IRANYekanFaNum', 'IRANSansFaNum', tahoma, sans-serif;
    background:#0f1724;
    color: #e5e7eb;
    direction: rtl;
    margin:0;
    padding:0;
}

.app-wrapper {
    max-width: 480px;
    margin: auto;
    min-height: 100vh;
    background: #111827;
    padding-bottom: 60px;
}

/* لوگو اصلی */
.dietpro-logo {
    width: 180px;
    filter: drop-shadow(0 5px 15px rgba(59,130,246,.18));
}

/* مدل بدن */
.body-model-img {
    width: 350px;
    opacity: .95;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,.45));
}

/* توضیح */
.landing-info {
    font-size: 14px;
    color:#c4b5fd;
    line-height: 2;
}

/* دکمه اصلی */
.btn-main {
    background: linear-gradient(135deg,#4f46e5,#312e81);
    border-radius: 16px;
    padding: 15px;
    color: white !important;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 10px 30px rgba(79,70,229,.28);
    display: block;
    transition: .3s;
}

.btn-main:hover {
    transform: translateY(-3px);
    color:white;
}









/*dashboard*/
:root {
    --primary-purple: #8B7CFF;
    --light-purple: #1e213a;
    --dark-purple: #3a2a6d;
    --accent-pink: #FF6B98;
}

body {
    background-color: #0f1724;
    overflow: auto !important;
}

/* هدر اپلیکیشن */
.app-header {
    padding: 25px 20px;
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    color: white;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    margin-bottom: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.avatar-circle {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 2px solid rgba(255,255,255,0.4);
}

/* کارت‌های داشبورد */
.card-custom {
    background: #161b2e;
    border-radius: 22px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #2a3048;
    box-shadow: 0 10px 25px rgba(0,0,0,0.45);
    transition: 0.3s;
}

.card-title-custom {
    font-size: 16px;
    font-weight: bold;
    color: #c7c2ff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* بخش کالری */
.calorie-circle {
    width: 100px;
    height: 100px;
    border: 8px solid #232848;
    border-top: 8px solid var(--primary-purple);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ردیاب آب */
.water-glass {
    font-size: 26px;
    color: #444b6b;
    cursor: pointer;
    transition: 0.2s;
}
.water-glass.active {
    color: #42A5F5;
    transform: scale(1.1);
}

/* لیست وعده‌ها */
.meal-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #2a3048;
}
.meal-item:last-child { border-bottom: none; }

.meal-icon {
    width: 45px;
    height: 45px;
    background: #20244a;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-purple);
    margin-left: 15px;
}

.check-btn {
    width: 25px;
    height: 25px;
    border: 2px solid #3a4163;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}
.check-btn.done {
    background: #2ECC71;
    border-color: #2ECC71;
    color: white;
}

/* Bottom Nav ثابت */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #12172a;
    display: flex;
    justify-content: space-around;
    padding: 12px 5px;
    box-shadow: 0 -10px 25px rgba(0,0,0,0.6);
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    border-top: 1px solid #2a3048;
    z-index: 1000;
}

.nav-item-custom {
    text-decoration: none;
    color: #7f869c;
    text-align: center;
    font-size: 12px;
    transition: 0.3s;
}

.nav-item-custom i {
    font-size: 22px;
    display: block;
    margin-bottom: 4px;
}

.nav-item-custom.active {
    color: var(--primary-purple);
}

.btn-add-weight {
    background: var(--primary-purple);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 12px;
    font-size: 13px;
}

.human-body {
    margin-top: -80px !important;
}

@media (max-width: 768px) {
    .human-body {
        margin-top: -40px !important;
    }
}

/* موبایل */
@media (max-width: 767px) {
    .desktop-body-title {
        display: none !important;
    }
}

/* دسکتاپ */
@media (min-width: 768px) {
    .mobile-body-title {
        display: none !important;
    }
}

#ai-anatomy-result{
    text-align: justify;
}
/*dashboard*/


/*diet-plan*/

:root{
--primary:#8B7CFF;
--light:#1e213a;
}

body{
background:#0f1724;
overflow: auto !important;
}

/* header */

.header{
padding:20px;
background:linear-gradient(135deg,#8B7CFF,#3a2a6d);
color:white;
border-bottom-left-radius:25px;
border-bottom-right-radius:25px;
}

/* day selector */

.day-selector{
display:flex;
gap:10px;
overflow:auto;
padding:15px;
}

.day{
background:#161b2e;
padding:10px 18px;
border-radius:12px;
font-size:14px;
cursor:pointer;
white-space:nowrap;
box-shadow:0 6px 18px rgba(0,0,0,0.45);
border:1px solid #2a3048;
color:#e6e8f2;
}

.day.active{
background:var(--primary);
color:white;
}

/* meal card */

.meal-card{
background:#161b2e;
padding:18px;
border-radius:20px;
margin-bottom:15px;
box-shadow:0 10px 25px rgba(0,0,0,0.45);
border:1px solid #2a3048;
}

.meal-title{
font-weight:bold;
color:#e6e8f2;
margin-bottom:6px;
}

.meal-cal{
font-size:12px;
color:#9aa3b2;
}

.meal-check{
width:28px;
height:28px;
border-radius:8px;
border:2px solid #3a4163;
display:flex;
align-items:center;
justify-content:center;
cursor:pointer;
}

.meal-check.done{
background:#2ECC71;
border-color:#2ECC71;
color:white;
}

/* calories box */

.cal-box{
background:#1b2040;
padding:15px;
border-radius:15px;
text-align:center;
font-weight:bold;
color:#e6e8f2;
}

/* bottom nav */

.bottom-nav{
position:fixed;
bottom:0;
left:0;
right:0;
background:#12172a;
display:flex;
justify-content:space-around;
padding:10px;
box-shadow:0 -10px 25px rgba(0,0,0,0.6);
border-top:1px solid #2a3048;
}

.nav-item{
color:#7f869c;
text-decoration:none;
font-size:12px;
text-align:center;
}

.nav-item.active{
color:var(--primary);
}

.nav-item i{
display:block;
font-size:20px;
}

/*diet-plan*/




/*ai_chat*/
:root { 
    --primary-purple: #8B7CFF; 
    --dark-purple: #3a2a6d; 
}

body { 
    background-color: #0f1724; 
    height: 100vh; 
    display: flex; 
    flex-direction: column; 
    color: #e6e8f2;
}

/* Header */
.chat-header {
    background: #12172a;
    padding: 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.45);
    z-index: 10;
    border-bottom: 1px solid #2a3048;
}
.ai-avatar {
    width: 45px;
    height: 45px;
    background: var(--primary-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin-left: 12px;
}

/* Chat Area */
#chat-window {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.6;
    position: relative;
    text-align: justify;
    white-space: normal;
    line-height: 1.7;
}
.message.ai {
    align-self: flex-start;
    background: #161b2e;
    color: #e6e8f2;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    border: 1px solid #2a3048;
}
.message.user {
    align-self: flex-end;
    background: var(--primary-purple);
    color: white;
    border-bottom-left-radius: 4px;
}

/* Input Area */
.chat-input-area {
    background: #12172a;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #2a3048;
}

/* فقط موبایل */
@media (max-width: 768px) {
    .chat-input-area{
        padding-bottom: 70px;
    }
}

#user-input {
    flex: 1;
    border: none;
    background: #1b2238;
    padding: 12px 20px;
    border-radius: 25px;
    outline: none;
    color: #e6e8f2;
}
#user-input::placeholder {
    color: #8c94aa;
}
.send-btn {
    width: 45px;
    height: 45px;
    background: var(--primary-purple);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}
.send-btn:active { 
    transform: scale(0.9); 
}

/* Typing Animation */
.typing { 
    font-size: 12px; 
    color: #9aa3b2; 
    margin-bottom: 10px; 
    display: none; 
}

/* Bottom Nav Fix */
.bottom-nav { 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    background: #12172a; 
    display: flex; 
    justify-content: space-around; 
    padding: 10px; 
    border-top: 1px solid #2a3048; 
}
.nav-item { 
    color: #7f869c; 
    text-decoration: none; 
    font-size: 12px; 
    text-align: center; 
}
.nav-item.active { 
    color: var(--primary-purple); 
}
/*ai_chat*/



/*profile*/

:root{
--primary:#8B7CFF;
}

body{
background:#0f1724;
overflow: auto !important;
color:#e6e8f2;
}

.profile-header{
background:linear-gradient(135deg,#8B7CFF,#3a2a6d);
color:white;
padding:30px;
text-align:center;
border-bottom-left-radius:30px;
border-bottom-right-radius:30px;
}

.avatar{
width:90px;
height:90px;
border-radius:50%;
background:#161b2e;
color:#8B7CFF;
display:flex;
align-items:center;
justify-content:center;
font-size:40px;
margin:auto;
margin-bottom:10px;
border:1px solid #2a3048;
}

.card-box{
background:#161b2e;
padding:20px;
border-radius:20px;
margin-bottom:15px;
box-shadow:0 10px 25px rgba(0,0,0,0.45);
border:1px solid #2a3048;
}

.info-item{
display:flex;
justify-content:space-between;
margin-bottom:10px;
}

.bmi-box{
text-align:center;
padding:15px;
border-radius:15px;
color:white;
}

.edit-btn{
background:var(--primary);
color:white;
border:none;
padding:12px;
width:100%;
border-radius:12px;
margin-top:10px;
}

.bottom-nav{
position:fixed;
bottom:0;
left:0;
right:0;
background:#12172a;
display:flex;
justify-content:space-around;
padding:10px;
box-shadow:0 -10px 25px rgba(0,0,0,0.6);
border-top:1px solid #2a3048;
}

.nav-item{
color:#7f869c;
text-decoration:none;
font-size:12px;
text-align:center;
}

.nav-item.active{
color:var(--primary);
}

.nav-item i{
display:block;
font-size:20px;
}

/*profile*/
.theme-toggle-btn{
width:38px;
height:38px;
border:none;
border-radius:50%;
background:rgba(255,255,255,0.15);
color:white;
display:flex;
align-items:center;
justify-content:center;
cursor:pointer;
backdrop-filter:blur(10px);
transition:0.3s;
font-size:16px;
}

.theme-toggle-btn:hover{
transform:scale(1.05);
background:rgba(255,255,255,0.22);
}

.theme-toggle-btn:active{
transform:scale(0.92);
}







/* =========================
   LOGIN - DARK MODE
========================= */

.login-title {
    font-size: 24px;
    font-weight: bold;
    color: #a58bff;
}

.login-form-box {
    background: #1b1b24;
    border-radius: 18px;
    box-shadow: 0 5px 24px rgba(0,0,0,0.45);
    padding: 32px 16px 24px 16px;
    margin: 32px auto 0 auto;
    max-width: 380px;
    border: 1px solid #2d2d3a;
}

/* inputs */

.input-login {
    background: #121218;
    border-radius: 14px;
    font-size: 18px;
    padding: 12px;
    border: 1px solid #8d72ff;
    color: #f1f1f1;
    transition: 0.2s ease;
}

.input-login::placeholder {
    color: #8d8d9f;
}

.input-login:focus {
    outline: none;
    border-color: #b19cff;
    box-shadow: 0 0 0 4px rgba(123,92,255,0.18);
}

/* OTP */

.otp-input {
    width: 45px;
    height: 55px;
    font-size: 26px;
    text-align: center;
    border-radius: 10px;
    border: 1.5px solid #8d72ff;
    margin: 0 5px;
    background: #121218;
    color: #ffffff;
    transition: 0.2s ease;
}

.otp-input:focus {
    outline: none;
    border-color: #b19cff;
    box-shadow: 0 0 0 4px rgba(123,92,255,0.18);
}

/*login*/

/*login*/




/*wizard*/
/* =========================
   WIZARD - DARK MODE
========================= */

.wizard-title{
    font-size:22px;
    font-weight:bold;
    color:#a58bff;
}

/* steps */

.wizard-step{
    display:none;
}

.wizard-step.active{
    display:block;
}

/* progress */

.progress-diet{
    height:6px;
    background:#2a2a35;
    border-radius:10px;
    overflow:hidden;
    margin-bottom:22px;
}

.progress-diet span{
    display:block;
    height:100%;
    background:#8d72ff;
    transition:0.4s;
}

/* inputs */

input.input-login,
select.input-login{
    margin-bottom:17px;
}

/* labels */

label{
    font-size:15.6px;
    color:#d6ccff;
    margin-bottom:4px;
    font-weight:500;
}

/* placeholder */

::placeholder{
    color:#8f86b8;
    opacity:1;
}

/* divider */

hr{
    border-top:1.5px dashed #3b3b4d;
}

/* chips */

.chip{
    display:inline-block;
    padding:8px 14px;
    margin:3.5px;
    background:#232330;
    border-radius:22px;
    border:1.5px solid #5f52a8;
    cursor:pointer;
    color:#ece8ff;
    transition:all 0.2s;
    font-weight:500;
    font-size:15.2px;
    user-select:none;
}

.chip:hover{
    background:#2d2d40;
}

.chip.selected{
    background:#8d72ff;
    color:#fff;
    border-color:#8d72ff;
}

/* responsive */

@media (max-width:400px){
    .login-form-box{
        padding:22px 6px 18px 6px;
    }
}

/* form box */

.login-form-box{
    padding:25px;
    border-radius:20px;
    background:#1b1b24;
    box-shadow:0 10px 35px rgba(0,0,0,0.45);
    border:1px solid #2e2e3a;
}

/* mobile */

@media (max-width:600px){
    .login-form-box{
        max-height:none;
    }
}

/* optional body */



/*wizard*/










/*human*/
.human-body {
    width: 207px;
    position: relative;
    padding-top: 240px;
    height: 260px;
    display: block;
    margin: 40px auto;
}

.human-body svg:hover {
    cursor: pointer;
}

.human-body svg:hover path {
    fill: #ff9a3d;
}

.human-body svg {
    position: absolute;
    left: 50%;
    fill: #8b6cff;
}

.human-body svg#head {
    margin-left: -28.5px;
    top: -6px;
}

.human-body svg#left-shoulder {
    margin-left: -53.5px;
    top: 69px;
}

.human-body svg#right-shoulder {
    margin-left: 13.5px;
    top: 69px;
}

.human-body svg#left-arm {
    margin-left: -78px;
    top: 112px;
}

.human-body svg#right-arm {
    margin-left: 38px;
    top: 112px;
    z-index: 11;
}

.human-body svg#chest {
    margin-left: -43.5px;
    top: 88px;
}

.human-body svg#stomach {
    margin-left: -37.5px;
    top: 130px;
}

.human-body svg#left-leg {
    margin-left: -46.5px;
    top: 205px;
    z-index: 9;
}

.human-body svg#right-leg {
    margin-left: 1.5px;
    top: 205px;
    z-index: 9;
}

.human-body svg#left-hand {
    margin-left: -102.5px;
    top: 224px;
}

.human-body svg#right-hand {
    margin-left: 66.5px;
    top: 224px;
    z-index: 10;
}

.human-body svg#left-foot {
    margin-left: -35.5px;
    top: 455px;
}

.human-body svg#right-foot {
    margin-left: 5.5px;
    top: 455px;
}

#area {
    display: block;
    width: 100%;
    clear: both;
    padding: 10px;
    text-align: center;
    font-size: 25px;
    font-family: Courier New;
    color: #9c9c9c;
}

#area #data {
    color: #ffffff;
}

.human-body{
    position:relative;
    width:200px;
    margin:auto;
}

.body-wrapper{
    position:relative;
    width:207px;
    margin:40px auto;
}

/* ===== بدن (همون CSS خودت) ===== */
.human-body {
    width: 207px;
    position: relative;
    padding-top: 240px;
    height: 500px;
}

.human-body svg {
    position: absolute;
    left: 50%;
    fill: #8b6cff;
}

.human-body svg:hover path {
    fill: #ff9a3d;
}

/* ===== لیبل ===== */
.body-labels{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
}

.label{
    position:absolute;
    background:#1e1e1e;
    color:#f1f1f1;
    padding:6px 10px;
    border-radius:10px;
    font-size:13px;
    box-shadow:0 3px 10px rgba(0,0,0,0.55);
    white-space:nowrap;
    border:1px solid #333;
}

/* راست */
.neck{ top:20px; left:190px;}
.chest-l{ top:80px; left:200px;}
.waist{ top:130px; left:200px;}
.belly{ top:170px; left:200px;}
.hip{ top:212px; left:207px;}
.thigh{ top:270px; left:200px;}
.lower-thigh{ top:290px; left:200px;}
.upper-thigh{ top:230px; left:200px;}
.calf{ top:340px; left:200px;}
.ankle{ top:410px; left:200px;}

/* چپ */
.arm{ top:100px; left:-60px;}
.forearm{ top:150px; left:-70px;}
.wrist{ top:200px; left:-58px;}

/* خطوط */
#lines-layer{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    pointer-events:none;
}

.body-wrapper{
    position:relative;
    width:207px;
    margin:40px auto;
}

/* ===== بدن (همون CSS خودت) ===== */
.human-body {
    width: 207px;
    position: relative;
    padding-top: 240px;
    height: 500px;
}

.human-body svg {
    position: absolute;
    left: 50%;
    fill: #8b6cff;
}

.human-body svg:hover path {
    fill: #ff9a3d;
}

/* ===== لیبل ===== */
.body-labels{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
}

.label{
    position:absolute;
    background:#1e1e1e;
    color:#f1f1f1;
    padding:6px 10px;
    border-radius:10px;
    font-size:13px;
    box-shadow:0 3px 10px rgba(0,0,0,0.55);
    white-space:nowrap;
    border:1px solid #333;
}

/* راست */
.neck{ top:20px; left:190px;}
.chest-l{ top:80px; left:200px;}
.waist{ top:130px; left:200px;}
.belly{ top:170px; left:200px;}
.hip{ top:212px; left:207px;}
.thigh{ top:280px; left:200px;}
.lower-thigh{ top:350px; left:-65px;}
.upper-thigh{ top:285px; left:-65px;}
.calf{ top:340px; left:200px;}
.ankle{ top:410px; left:200px;}

/* چپ */
.arm{ top:100px; left:-60px;}
.forearm{ top:150px; left:-70px;}
.wrist{ top:200px; left:-58px;}

/* خطوط */
#lines-layer{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    pointer-events:none;
}

.active-label{
    background:#ff9a3d !important;
    color:#111 !important;
}

.active-part path{
    fill:#ff9a3d !important;
}

.active-line{
    stroke:#ff9a3d !important;
    stroke-width:3 !important;
}

/*human*/