        @font-face {
            font-family: 'Baloo Bhaijaan 2';
            src: url('https://quamtex.ir/fonts/webfonts/baloo-bhaijaan-2-arabic-500-normal.woff') format('woff');
            font-weight: normal; font-style: normal; font-display: swap;
        }
                @font-face {
            font-family: 'Baloo Bhaijaan 2';
            src: url('https://quamtex.ir/fonts/webfonts/baloo-bhaijaan-2-latin-500-normal.woff') format('woff');
            font-weight: normal; font-style: normal; font-display: swap;
        }

        :root {
            --primary: #112548;
            --primary-hover: #1e3a6e;
            --bg-input: #f8fafc;
            --border-light: #e2e8f0;
            --shadow-soft: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        }

h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

.main-container {
  display: flex;
  flex-direction: row;
}

.main-content {
  padding: clamp(1rem, 2vw, 2rem);
  margin: clamp(0.5rem, 1.5vw, 1.5rem);
  background-color: #ffffff;
  border-radius: 24px;
  font-size: clamp(0.938rem, 0.842rem + 0.426vw, 1.188rem);
  text-align: center;
  /* مدرن‌سازی سایه کانتینر اصلی */
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--primary);
  width: 100%;
}

.description {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 20px;
  margin-bottom: 16px;
  /* سایه نرم‌تر */
  text-align: right;
  font-size: clamp(0.875rem, 0.731rem + 0.638vw, 1.25rem);
  border: 2px solid var(--border-light);
}

        .bmi {
            display: flex;
            flex-direction: column;
            gap: 20px;
            margin: 20px 0;
            border-radius: 24px;
            background: #ffffff;
            border: 2px solid var(--border-light);
            padding: clamp(0.8rem, 0.5vw, 1.6rem);
            box-sizing: border-box;
            width: 100%;
        }

        /* استایل آپدیت شده برای Textarea */
        textarea {
            font-size: 18px;
            border: 2px solid var(--border-light);
            background-color: var(--bg-input);
            outline: none;
            border-radius: 16px;
            width: 100%;
            min-height: 200px;
            padding: 15px;
            box-sizing: border-box;
            font-family: "Baloo Bhaijaan 2", sans-serif;
            color: var(--primary);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            resize: vertical;
            align-self: center;
        }

        textarea:hover { border-color: #cbd5e1; background-color: #fff; }
        textarea:focus {
            border-color: var(--primary);
            background-color: #fff;
            box-shadow: 0 0 0 4px rgba(17, 37, 72, 0.1);
            transform: translateY(-2px);
        }

        .action-buttons {
            display: flex;
            gap: 15px;
            justify-content: center;
            flex-wrap: wrap;
        }

        button {
            font-size: 0.9rem;
            border: none;
            border-radius: 16px;
            background: linear-gradient(135deg, var(--primary) 0%, #2c4a85 100%);
            color: white;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 6px rgba(17, 37, 72, 0.2);
            font-family: "Baloo Bhaijaan 2", sans-serif;
            padding: 10px 25px;
        }

        button.btn-danger {
            background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
        }

        button:hover { transform: translateY(-2px); box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15); }
        button:active { transform: translateY(0); }

        .results-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 15px;
            margin-top: 20px;
        }

        .result-card {
            background-color: #f0f9ff;
            border: 1px dashed #bae6fd;
            border-radius: 16px;
            padding: 15px;
            text-align: center;
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .result-card:hover { background-color: #e0f2fe; border-color: var(--primary); transform: scale(1.02); }
        .result-title { font-size: 0.9rem; color: #64748b; }
        .result-value { font-size: 1.5rem; font-weight: bold; color: var(--primary); }

        /* Notification */
        .notification {
            position: fixed;
            top: 75px;
            left: 50%;
            transform: translateX(-50%) translateY(-150%);
            background-color: #dcfce7;
            border: 1px solid #86efac;
            color: #166534;
            padding: 12px 25px;
            border-radius: 12px;
            box-shadow: var(--shadow-soft);
            z-index: 1000;
            opacity: 0;
            transition: all 0.4s ease;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }
        
        .notification.show {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
        }

        .progress {
            height: 4px; background-color: #22c55e; width: 100%;
            position: absolute; bottom: 0; left: 0;
        }
        
        .animate-progress { animation: shrink 3s linear forwards; }
        @keyframes shrink { from { width: 100%; } to { width: 0%; } }
        
        @media (max-width: 675px) {
          .results-grid {
            grid-template-columns: 1fr 1fr;
          }
        }
          
        .rtl {
            direction: rtl;
        }