        :root {
            --primary-color: #3b82f6;
            --secondary-color: #8b5cf6;
            --success-color: #10b981;
            --danger-color: #ef4444;
            --warning-color: #f59e0b;
            --info-color: #06b6d4;
            --dark-color: #1e293b;
            --light-color: #f8fafc;
            --sidebar-width: 280px;
        }

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



        .calculator-container {
            background: white;
            border-radius: 20px;
            padding: 40px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            max-width: 1200px;
            margin: 0 auto;
        }

        .section-title {
            color: var(--dark-color);
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 30px;
            padding-bottom: 15px;
            border-bottom: 3px solid var(--primary-color);
        }

        .form-label {
            font-weight: 600;
            color: var(--dark-color);
            margin-bottom: 8px;
        }

        .form-control, .form-select {
            border: 2px solid #e2e8f0;
            border-radius: 10px;
            padding: 12px 16px;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .form-control:focus, .form-select:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
            outline: none;
        }

        .btn-calculate {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: rgba(255, 255, 255, 0.849);
            border: none;
            padding: 16px 32px;
            font-size: 1.1rem;
            font-weight: 600;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
        }

        .btn-calculate:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
        }

        /* Result Header */
        .result-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 24px;
            padding: 16px;
          
            border-radius: 12px;
        }

        .result-header i {
            font-size: 2rem;
            color: var(--success-color);
        }

        .result-header h4 {
            margin: 0;
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--dark-color);
        }

        /* Result Card */
        .result-card {
            background: #e3f2fd;
            border-radius: 16px;
            padding: 20px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.08);
            display: flex;
            align-items: center;
            gap: 16px;
            transition: all 0.3s ease;
            height: 100%;
        }

        .result-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.12);
        }

        .result-card-icon {
            width: 60px;
            height: 60px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            flex-shrink: 0;
        }

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

        .result-card-label {
            font-size: 0.75rem;
            font-weight: 600;
            color: #64748b;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 6px;
        }

        .result-card-value {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--dark-color);
            line-height: 1;
        }

        .result-card-unit {
            font-size: 1rem;
            font-weight: 500;
            color: #64748b;
        }

        /* Result Info Card */
        .result-info-card {
            background: white;
            border-radius: 12px;
            padding: 16px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.06);
            display: flex;
            align-items: center;
            gap: 12px;
            transition: all 0.3s ease;
        }

        .result-info-card:hover {
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        }

        .result-info-icon {
            width: 44px;
            height: 44px;
            border-radius: 10px;
            background: #f1f5f9;
            color: #64748b;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            flex-shrink: 0;
        }

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

        .result-info-label {
            font-size: 0.75rem;
            font-weight: 600;
            color: #94a3b8;
            text-transform: uppercase;
            letter-spacing: 0.3px;
            margin-bottom: 4px;
        }

        .result-info-value {
            font-size: 1rem;
            font-weight: 600;
            color: var(--dark-color);
        }

        @media (max-width: 768px) {
            .calculator-container {
                padding: 24px;
            }

            .result-card {
                flex-direction: column;
                text-align: center;
            }

            .result-card-value {
                font-size: 1.5rem;
            }
        }
        

        
        .calculator-container {
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.08);
            padding: 30px;
            margin-bottom: 40px;
            border: 1px solid #e0e0e0;
        }
        

        .form-label {
            font-weight: 600;
            color: var(--primary-color);
            margin-bottom: 8px;
        }
        
        .form-control, .form-select {
            border: 1px solid #ced4da;
            border-radius: 6px;
            padding: 10px 15px;
            transition: all 0.3s;
        }
        
        .form-control:focus, .form-select:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 0.25rem rgba(30, 75, 122, 0.25);
        }
        
        .result-box {
            background: linear-gradient(to right, #e8f4fd, #f0f8ff);
            border-left: 4px solid var(--primary-color);
            padding: 20px;
            margin-top: 25px;
            border-radius: 8px;
            box-shadow: 0 3px 10px rgba(0,0,0,0.05);
        }
        
        .result-title {
            color: var(--primary-color);
            font-weight: 700;
            font-size: 1.3rem;
            margin-bottom: 15px;
        }
        
        .result-value {
            font-weight: 600;
            color: var(--secondary-color);
        }
        
        .btn-calculate {
            background: linear-gradient(to right, var(--primary-color), #2c5e8a);
            color: white;
            border: none;
            padding: 12px 30px;
            font-size: 1.1rem;
            font-weight: 600;
            border-radius: 6px;
            transition: all 0.3s;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            width: 100%;
        }
        
        .btn-calculate:hover {
            background: linear-gradient(to right, #2c5e8a, var(--primary-color));
            transform: translateY(-2px);
            box-shadow: 0 6px 8px rgba(0,0,0,0.15);
        }
        
        .info-box {
            background-color: #f8f9fa;
            border-radius: 8px;
            padding: 20px;
            margin-top: 25px;
            border-left: 4px solid var(--secondary-color);
        }



        .ai-card {
            background: #ffffff;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            padding: 0;
            margin: 0 auto;
            opacity: 0;
            height: 0;
            overflow: hidden;
            transition: opacity 0.5s ease, height 0.5s ease;
        }
        
        .card-header-section {
            padding: 24px;
            border-bottom: 1px solid #e8eaed;
        }
        
        .header-top {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 16px;
        }
        
        .ai-icon {
            width: 48px;
            height: 48px;
            background: linear-gradient(135deg, #8b7de8 0%, #9f7aea 100%);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .ai-card.visible {
            opacity: 1;
            height: auto;
            overflow: visible;
        }
        /* Yozuv animatsiyasi uchun */
        .typing-text {
            overflow: hidden;
            border-right: 2px solid transparent;
            white-space: nowrap;
            margin: 0;
            padding-right: 2px;
        }

        .typing-text.typing {
            border-right: 2px solid #007bff;
            animation: blink-caret 0.75s step-end infinite;
        }

        @keyframes blink-caret {
            from, to { border-color: transparent; }
            50% { border-color: #007bff; }
        }

        /* Yozuv elementlari uchun */
        .description-text span,
        .recommendation-list li {
            opacity: 0;
            transform: translateY(10px);
            transition: opacity 0.3s ease, transform 0.3s ease;
        }

        .description-text span.visible,
        .recommendation-list li.visible {
            opacity: 1;
            transform: translateY(0);
        }
                .ai-icon i {
            font-size: 24px;
            color: #ffffff;
        }
        
        .title-section {
            flex: 1;
        }
        
        .card-title-main {
            color: #202124;
            font-size: 22px;
            font-weight: 500;
            margin: 0;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .beta-badge {
            background: #e8eaff;
            color: #5f6368;
            padding: 3px 10px;
            border-radius: 4px;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .description-text {
            color: #5f6368;
            font-size: 14px;
            line-height: 1.6;
            margin: 0;
        }
        
        .recommendations-section {
            padding: 24px;
            background: #f8f9fa;
        }
        
        .section-header {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 16px;
        }
        
        .section-header i {
            color: #34a853;
            font-size: 20px;
        }
        
        .section-header span {
            color: #202124;
            font-size: 15px;
            font-weight: 500;
        }
        
        .recommendation-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        
        .recommendation-list li {
            color: #5f6368;
            font-size: 14px;
            line-height: 1.6;
            margin-bottom: 12px;
            padding-left: 8px;
            position: relative;
        }
        
        .recommendation-list li:before {
            content: "•";
            color: #8b7de8;
            font-weight: bold;
            position: absolute;
            left: -8px;
        }
        
        .recommendation-list li strong {
            color: #202124;
            font-weight: 500;
        }
        
        .card-footer-section {
            padding: 16px 24px;
            border-top: 1px solid #e8eaed;
            background: #ffffff;
            border-radius: 0 0 12px 12px;
        }
        
        .footer-actions {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 12px;
        }
        
        .action-button {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 16px;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 500;
            border: none;
            cursor: pointer;
            transition: all 0.2s ease;
            background: transparent;
            color: #5f6368;
        }
        
        .action-button:hover {
            background: #f1f3f4;
        }
        
        .action-button i {
            font-size: 16px;
        }
        
        .btn-primary-action {
            background: #8b7de8;
            color: #ffffff;
        }
        
        .btn-primary-action:hover {
            background: #7c6fd8;
        }
        
        .left-actions {
            display: flex;
            gap: 8px;
        }