/* ═══════════════════════════════════════════════════════
   NeoCalculator.net — Tip Calculator CSS
   Same Theme as Number Sequence / Percentage Calculators
   ═══════════════════════════════════════════════════════ */


/* =======================================================
   IMPORTANT:
   Load the same shared calculator design used by
   Number Sequence Calculator.
   ======================================================= */

@import url('/css/percent-calculator-22ddf0d06da58bee5476ea4f3d55f776.css');


/* =======================================================
   PAGE CONTAINER
   ======================================================= */

.tip-container {

    padding-top: 30px;

    padding-bottom: 50px;

}


/* =======================================================
   HERO
   Match Number Sequence Calculator
   ======================================================= */

.tip-container .hero-section {

    text-align: center;

}


.tip-container .page-title {

    text-align: center;

}


.tip-container .page-subtitle {

    text-align: center;

    max-width: 760px;

    margin-left: auto;

    margin-right: auto;

}


/* =======================================================
   TABS
   IMPORTANT:
   Do NOT recreate pct-tab design here.
   percent-calculator.css already provides it.
   ======================================================= */

.tip-container .pct-nav-tabs {

    display: flex;

    justify-content: center;

    align-items: center;

    margin-bottom: 28px;

}


/* Keep same pill/tab behaviour */

.tip-container .pct-tab {

    cursor: pointer;

}


/* =======================================================
   CALCULATOR PANELS
   Same card behaviour as Number Sequence
   ======================================================= */

.tip-container .pct-card-panel {

    display: none;

    width: 100%;

    box-sizing: border-box;

}


.tip-container .pct-card-panel.active {

    display: block;

}


/* =======================================================
   PANEL DESCRIPTION
   ======================================================= */

.tip-container .panel-desc {

    margin-bottom: 20px;

}


/* =======================================================
   FORM CONTAINER
   ======================================================= */

.tip-form-grid {

    display: flex;

    flex-direction: column;

    gap: 16px;

    background: var(--bg-input);

    padding: 20px;

    border-radius: var(--radius);

    border: 1px solid var(--border);

}


/* =======================================================
   FORM ROW
   ======================================================= */

.tip-form-row {

    display: grid;

    grid-template-columns: 180px 1fr;

    align-items: center;

    gap: 14px;

}


.tip-form-row label {

    font-weight: 600;

    font-size: 0.95rem;

    color: var(--text-dark);

}


/* =======================================================
   INPUT
   ======================================================= */

.tip-input {

    width: 100%;

    padding: 10px 12px;

    border-radius: var(--radius-sm);

    border: 1px solid var(--border);

    background-color: var(--bg-card);

    color: var(--text-dark);

    font-size: 1rem;

    box-sizing: border-box;

}


.tip-input:focus {

    outline: none;

    border-color: var(--primary);

    box-shadow:
        0 0 0 2px rgba(37, 99, 235, 0.2);

}


/* =======================================================
   PRESET BUTTONS
   ======================================================= */

.tip-preset-wrapper {

    display: flex;

    gap: 7px;

    flex-wrap: wrap;

    margin-top: 2px;

}


.btn-preset {

    background: var(--bg-card);

    border: 1px solid var(--border);

    color: var(--accent);

    padding: 6px 12px;

    border-radius: 5px;

    font-weight: 600;

    font-size: 0.85rem;

    cursor: pointer;

    transition: var(--transition);

}


.btn-preset:hover {

    background: var(--accent);

    color: white;

    border-color: var(--accent);

}


/* =======================================================
   ACTION BUTTONS
   ======================================================= */

.tip-container .pct-action-btns {

    display: flex;

    gap: 10px;

    margin-top: 8px;

    flex-wrap: wrap;

}


/* =======================================================
   RESULT BOX
   Same visual language as Number Sequence
   ======================================================= */

.tip-container .pct-result-box {

    margin-top: 20px;

}


/* =======================================================
   SUMMARY CARDS
   ======================================================= */

.tip-summary-grid {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;

    margin-bottom: 16px;

}


.tip-summary-card {

    background: var(--bg-card);

    border: 1px solid var(--border);

    border-radius: var(--radius-sm);

    padding: 14px;

}


.tip-summary-card span {

    display: block;

    font-size: 0.82rem;

    color: var(--text-muted);

    margin-bottom: 5px;

}


.tip-summary-card strong {

    font-size: 1.15rem;

    color: var(--accent);

}


/* =======================================================
   STANDARD TIP RESULT TABLE
   ======================================================= */

.tip-percentage-table {

    width: 100%;

    border-collapse: collapse;

    margin-top: 15px;

}


.tip-percentage-table th,

.tip-percentage-table td {

    padding: 10px 12px;

    border: 1px solid var(--border);

    text-align: center;

    font-size: 0.92rem;

}


.tip-percentage-table th {

    background: var(--bg-input);

    color: var(--text-dark);

    font-weight: 700;

}


.tip-percentage-table td:first-child {

    font-weight: 600;

}


/* =======================================================
   SHARED RESULT
   ======================================================= */

.shared-result-highlight {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;

    margin-bottom: 16px;

}


.shared-result-item {

    background: var(--bg-card);

    border: 1px solid var(--border);

    border-radius: var(--radius-sm);

    padding: 14px;

}


.shared-result-item .result-label {

    display: block;

    font-size: 0.82rem;

    color: var(--text-muted);

    margin-bottom: 5px;

}


.shared-result-item .result-value {

    display: block;

    font-size: 1.15rem;

    font-weight: 700;

    color: var(--accent);

}


/* =======================================================
   RESULT TABLE
   ======================================================= */

.tip-results-table {

    width: 100%;

    border-collapse: collapse;

    margin-top: 15px;

}


.tip-results-table th,

.tip-results-table td {

    padding: 10px 12px;

    border: 1px solid var(--border);

    text-align: left;

    font-size: 0.92rem;

    word-break: break-word;

}


.tip-results-table th {

    background: var(--bg-input);

    color: var(--text-dark);

    font-weight: 700;

    width: 40%;

}


/* =======================================================
   ERROR
   ======================================================= */

.tip-error-message {

    color: var(--danger);

    font-weight: 600;

    margin: 0;

}


/* =======================================================
   HOW TO USE
   ======================================================= */

.tip-container .calculator-how-to {

    margin-top: 30px;

}


/* =======================================================
   FAQ
   ======================================================= */

.tip-container .faq-section {

    margin-top: 30px;

}


/* =======================================================
   TABLE RESPONSIVENESS
   ======================================================= */

@media (max-width: 700px) {

    .tip-form-row {

        grid-template-columns: 1fr;

        gap: 5px;

    }


    .tip-container .pct-nav-tabs {

        flex-direction: column;

        align-items: stretch;

        gap: 8px;

    }


    .tip-container .pct-tab {

        width: 100%;

    }


    .tip-summary-grid,

    .shared-result-highlight {

        grid-template-columns: 1fr;

    }


    .tip-percentage-table th,

    .tip-percentage-table td,

    .tip-results-table th,

    .tip-results-table td {

        padding: 8px;

        font-size: 0.85rem;

    }

}


/* =======================================================
   SMALL MOBILE
   ======================================================= */

@media (max-width: 480px) {

    .tip-container {

        padding-top: 20px;

        padding-bottom: 35px;

    }


    .tip-form-grid {

        padding: 15px;

    }


    .tip-preset-wrapper {

        gap: 5px;

    }


    .btn-preset {

        padding: 5px 9px;

        font-size: 0.8rem;

    }


    .tip-container .pct-action-btns {

        flex-direction: column;

    }


    .tip-container .pct-action-btns .btn {

        width: 100%;

    }


    .tip-percentage-table th,

    .tip-percentage-table td {

        padding: 7px 5px;

        font-size: 0.78rem;

    }

}