:root {
    --primary: #2563eb;
    --secondary: #0f172a;
    --bg: #f8fafc;
    --white: #ffffff;
    --text: #334155;
    --border: #e2e8f0;
}
body { font-family: 'Outfit', sans-serif; margin: 0; background: var(--bg); color: var(--text); }
header { background: var(--white); padding: 15px 5%; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.logo { font-size: 22px; font-weight: 800; color: var(--primary); text-decoration: none; }
nav a { text-decoration: none; color: var(--text); font-weight: 600; font-size: 14px; transition: 0.3s; }
nav a:hover { color: var(--primary); }
.container { max-width: 1000px; margin: 0 auto; padding: 40px 20px; }
.hero { text-align: center; padding: 40px 0; }
.tool-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.tool-card { background: var(--white); padding: 35px; border-radius: 20px; border: 1px solid var(--border); box-shadow: 0 10px 25px rgba(0,0,0,0.03); }
input, select, textarea { width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--border); margin-top: 8px; box-sizing: border-box; }
.btn { width: 100%; padding: 15px; border: none; border-radius: 12px; font-weight: 700; cursor: pointer; transition: 0.3s; }
.btn-itinerary { background: var(--primary); color: white; }
.btn-budget { background: var(--secondary); color: white; }
.result-box { background: white; padding: 30px; border-radius: 20px; border: 1px solid var(--border); margin-top: 30px; }

/* আউটপুট বক্সের ডিজাইন */
#full-width-result {
    margin: 30px auto;
    padding: 25px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#res-itinerary-html, #res-budget-html {
    line-height: 1.6;
    color: #333;
}

/* টেবিল স্টাইল */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

th {
    background-color: #f8f9fa;
    font-weight: bold;
}

/* প্রিন্ট করার সময় শুধু রেজাল্ট দেখানোর নিয়ম */
@media print {
    /* Hide everything that isn't the result */
    header, footer, .ad-section, .tool-wrapper, .user-guide-section, .faq-section, .hero, .no-print, button, .btn {
        display: none !important;
    }
    
    html, body {
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    .container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    #full-width-result {
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        position: static !important;
    }

    .card {
        border: none !important;
        box-shadow: none !important;
    }
}

/* স্যাম্পল ডিজাইনের কাছাকাছি স্টাইল */
#full-width-result {
    margin: 30px auto;
    padding: 0; /* Reduced from 25px */
    border-radius: 12px;
    background: #ffffff;
}

#full-width-result .card {
    border: none;
    box-shadow: none;
}

/* স্যাম্পল ইমেজের স্টার চিহ্নের মতো বুলেট পয়েন্ট */
#res-itinerary-html ul {
    list-style-type: '★ ';
    color: #1a2a44;
}

/* পিডিএফ-এ টেক্সট কেটে যাওয়া রোধ করতে */
.prose p, .prose h3, .prose li, .prose tr {
    page-break-inside: avoid;
    break-inside: avoid;
}

#full-width-result {
    width: 100%;
    max-width: 800px;
    margin: auto;
    overflow: visible !important;
}

/* প্রিন্ট বা পিডিএফ এ অপ্রয়োজনীয় ফাঁকা জায়গা কমানো */
@media print {
    html, body {
        height: auto;
        font-size: 12pt;
    }
}

/* Beautiful Markdown Output Styling (.prose) */
.prose h3 {
    color: #1e40af;
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid #bfdbfe;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.prose p {
    font-size: 16px;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 15px;
}
.prose ul, .prose ol {
    margin-bottom: 20px;
    padding-left: 20px;
    color: #475569;
}
.prose li {
    margin-bottom: 10px;
    line-height: 1.6;
}
.prose strong {
    color: #0f172a;
    font-weight: 700;
}
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}
.prose th {
    background-color: #2563eb;
    color: white;
    font-weight: 600;
    padding: 12px 15px;
    text-align: left;
}
.prose td {
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
}
.prose tr:last-child td {
    border-bottom: none;
}
.prose tr:nth-child(even) {
    background-color: #f8fafc;
}
.prose tr:hover {
    background-color: #f1f5f9;
}
