/* ============================================================
   YourToolbox.in - Shared Calculator Stylesheet
   File: assets/ytb-calc.css
   Version: YTB_B008_VERSION
   Used by: ytb-tools-batch-008 (and identical across all batches)
   ============================================================ */

/* ---------- Page Layout ---------- */
.ytb-page-wrap {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px 60px;
    background: #FFFFFF;
}

.ytb-main {
    min-width: 0;
}

.ytb-sidebar {
    width: 220px;
}

@media (max-width: 860px) {
    .ytb-page-wrap {
        grid-template-columns: 1fr;
    }
    .ytb-sidebar {
        width: 100%;
        order: 2;
    }
}

/* ---------- Breadcrumb ---------- */
.ytb-breadcrumb {
    font-size: 13px;
    color: #666;
    margin-bottom: 14px;
}
.ytb-breadcrumb a {
    color: #1976D2;
    text-decoration: none;
}
.ytb-breadcrumb a:hover {
    text-decoration: underline;
}

/* ---------- Calculator Card ---------- */
.ytb-calc-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    margin-bottom: 30px;
    background: #fff;
}

.ytb-calc-header {
    background: #1976D2;
    color: #fff;
    padding: 16px 20px;
    font-size: 20px;
    font-weight: 700;
}

.ytb-calc-header span {
    display: block;
    font-size: 13px;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 4px;
}

/* ---------- Currency Row ---------- */
.ytb-currency-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 20px;
    background: #f5f8fd;
    border-bottom: 1px solid #e0e0e0;
}

.ytb-cur-btn {
    border: 1px solid #c7d6ef;
    background: #fff;
    color: #1976D2;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ytb-cur-btn.active,
.ytb-cur-btn:hover {
    background: #1976D2;
    color: #fff;
}

/* ---------- Field Grid ---------- */
.ytb-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 20px;
}

@media (max-width: 480px) {
    .ytb-field-grid {
        grid-template-columns: 1fr;
    }
}

.ytb-field {
    display: flex;
    flex-direction: column;
}

.ytb-field label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.ytb-field input,
.ytb-field select {
    border: 1px solid #ccd6e4;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 15px;
    color: #222;
    background: #fff;
}

.ytb-field input:focus,
.ytb-field select:focus {
    outline: none;
    border-color: #1976D2;
    box-shadow: 0 0 0 3px rgba(25,118,210,0.12);
}

.ytb-field-hint {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
}

/* ---------- Calculate Button ---------- */
.ytb-btn-row {
    padding: 0 20px 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ytb-btn-calculate {
    background: #2e7d32;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.ytb-btn-calculate:hover {
    background: #1b5e20;
}

.ytb-btn-reset {
    background: #fff;
    color: #555;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.ytb-btn-reset:hover {
    background: #f2f2f2;
}

/* ---------- Results Box (Green) ---------- */
.ytb-results {
    margin: 0 20px 20px;
    background: #eef7ee;
    border: 1px solid #c8e6c9;
    border-radius: 8px;
    padding: 18px 20px;
    display: none;
}

.ytb-results.active {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
}

.ytb-results-rows {
    flex: 1;
    min-width: 220px;
}

.ytb-result-row {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px dashed #c8e6c9;
    font-size: 14px;
}

.ytb-result-row:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 16px;
    color: #1b5e20;
}

.ytb-result-row .ytb-result-label {
    color: #444;
}

.ytb-result-row .ytb-result-value {
    font-weight: 700;
    color: #1b5e20;
}

/* ---------- Pie Chart ---------- */
.ytb-pie-wrap {
    flex-shrink: 0;
    text-align: center;
}

.ytb-pie-legend {
    margin-top: 10px;
    font-size: 12px;
    text-align: left;
}

.ytb-pie-legend div {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.ytb-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot-blue { background: #2196F3; }
.dot-red  { background: #f44336; }

/* ---------- Content Section ---------- */
.ytb-content {
    margin-top: 10px;
    line-height: 1.75;
    color: #333;
    font-size: 15.5px;
}

.ytb-content h2 {
    font-size: 22px;
    color: #1976D2;
    margin: 32px 0 12px;
    border-bottom: 2px solid #e3f0fc;
    padding-bottom: 6px;
}

.ytb-content h3 {
    font-size: 18px;
    color: #1a1a1a;
    margin: 22px 0 10px;
}

.ytb-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    font-size: 14px;
}

.ytb-content table th,
.ytb-content table td {
    border: 1px solid #e0e0e0;
    padding: 8px 10px;
    text-align: left;
}

.ytb-content table th {
    background: #1976D2;
    color: #fff;
}

.ytb-content table tr:nth-child(even) {
    background: #f7fafd;
}

.ytb-faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 10px;
    padding: 14px 16px;
    background: #fafcff;
}

.ytb-faq-item h4 {
    margin: 0 0 6px;
    font-size: 15.5px;
    color: #1976D2;
}

.ytb-faq-item p {
    margin: 0;
}

/* ---------- Sidebar ---------- */
.ytb-sidebar h3 {
    font-size: 15px;
    color: #1976D2;
    border-bottom: 2px solid #e3f0fc;
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.ytb-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ytb-sidebar li {
    margin-bottom: 8px;
}

.ytb-sidebar a {
    font-size: 13.5px;
    color: #333;
    text-decoration: none;
    display: block;
    padding: 7px 10px;
    border-radius: 5px;
    background: #f5f8fd;
    border: 1px solid #eef3fa;
}

.ytb-sidebar a:hover {
    background: #e3f0fc;
    color: #1976D2;
}

/* ---------- Disclaimer ---------- */
.ytb-disclaimer {
    margin-top: 24px;
    font-size: 12px;
    color: #888;
    border-top: 1px solid #eee;
    padding-top: 12px;
}
