/* =========================================================
   Phakic IOL Calculator Workspace
   ========================================================= */

:root {
    --calc-purple: #6747c7;
    --calc-purple-light: #836ce0;
    --calc-dark: #16244a;
    --calc-border: #dfe5f0;
    --calc-bg: #f7f9fd;
    --calc-red: #e53838;
    --calc-header-height: 120px;
    --calc-sidebar-width: 325px;
}


/* Page */

.calc-body {
    background: var(--calc-bg);
    color: var(--calc-dark);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 14px;
}


/* =========================================================
   HEADER
   ========================================================= */

.calc-header {
    background: #ffffff;
    min-height: 138px;
    padding: 14px 0 12px 0;
    height: var(--calc-header-height);
}


.calc-logo {
   
    object-fit: contain;
}


.company-logo {
    
    object-fit: contain;
}


.calc-brand {
    min-width: 190px;
    height: var(--calc-header-height);
}


.calc-product-name {
    color: #333333;
    font-size: 12px;
    line-height: 1.25;
    margin-top: 5px;
}


.calc-purple-line {
    height: 3px;
    background: linear-gradient(
        90deg,
        #5d45c4,
        #7e64dc
    );

}
.calc-sidebar {
    width: var(--calc-sidebar-width);
}

.calc-main.sidebar-enabled {
    margin-left: var(--calc-sidebar-width);
    width: calc(100% - var(--calc-sidebar-width));
}

/* =========================================================
   TOP NAVIGATION
   ========================================================= */

.calc-nav .nav-link {
    color: #172445;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 14px;
    white-space: nowrap;
    transition: all 0.2s ease;
}


.calc-nav .nav-link i {
    margin-right: 7px;
    font-size: 16px;
}


.calc-nav .nav-link:hover {
    color: var(--calc-purple);
}


.calc-nav .logout-link {
    color: #e53535;
}


.calc-nav .logout-link:hover {
    color: #c52222;
}


/* =========================================================
   CALCULATOR WORKSPACE
   ========================================================= */

.calculator-wrapper {
    width: 100%;
    padding: 16px 28px 30px 28px;
    box-sizing: border-box;
}

.calculator-wrapper > .calc-card {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.required-message {
    text-align: center;
    color: var(--calc-purple);
    font-weight: 600;
    margin-bottom: 12px;
}


/* Cards */

.calc-card {
    background: #ffffff;
    border: 1px solid var(--calc-border);
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(28, 54, 104, 0.08);
    margin-bottom: 12px;
}


.calc-card-body {
    padding: 14px 16px;
}


/* Section Header */

.section-title {
    color: var(--calc-purple);
    font-size: 14px;
    font-weight: 700;
    padding-bottom: 7px;
    margin-bottom: 12px;
    border-bottom: 1px solid #d7dcec;
}


.section-title i {
    margin-right: 7px;
    font-size: 17px;
}


/* Form */

.calc-label {
    font-size: 12px;
    font-weight: 500;
    color: #13234b;
    margin-bottom: 5px;
}


.required-star {
    color: var(--calc-purple);
    font-weight: bold;
}


.calc-input,
.calc-select {
    border: 1px solid #d7dfec;
    border-radius: 6px;
    height: 34px;
    font-size: 12px;
    color: #344468;
}


.calc-input:focus,
.calc-select:focus {
    border-color: var(--calc-purple);
    box-shadow: 0 0 0 0.15rem rgba(103, 71, 199, 0.12);
}


/* Eye Selection */

.eye-selector .btn {
    min-width: 105px;
    border-color: #d9deea;
    font-size: 12px;
}


.eye-selector .btn.active {
    background: linear-gradient(
        90deg,
        #6646c7,
        #826bdd
    );

    color: #ffffff;
    border-color: #6646c7;
}


/* Lens type tabs */

.lens-type-btn {
    height: 34px;
    border: 1px solid #dce1eb;
    color: #14234a;
    background: #ffffff;
    font-size: 12px;
    font-weight: 600;
}


.lens-type-btn.active {
    color: #ffffff;

    background: linear-gradient(
        90deg,
        #6544c5,
        #7557d1
    );

    border-color: #6544c5;
}


/* Results */

.result-input {
    text-align: center;
    color: var(--calc-purple);
    font-weight: 600;
    border: 1px solid #9b80e9;
}


/* Footer Buttons */

.action-buttons {
    margin-top: 20px;
    margin-bottom: 25px;
}


.action-buttons .btn {
    min-width: 210px;
    height: 42px;
    font-weight: 600;
}


.btn-save {
    background: #20a25f;
    color: white;
}


.btn-pdf {
    background: #2863cb;
    color: white;
}


.btn-submit-calc {
    background: linear-gradient(
        90deg,
        #7048ce,
        #8544c5
    );

    color: white;
}


.btn-print {
    background: #96c9ee;
    color: white;
}


/* Disclaimer */

.disclaimer-text {
    font-size: 12px;
    color: #6d7894;
    line-height: 1.7;
}


.disclaimer-title {
    color: var(--calc-purple);
    font-weight: 700;
}


/* Responsive */

@media (max-width: 1200px) {

    .calc-nav .nav-link {
        padding: 8px 8px;
        font-size: 12px;
    }

}


@media (max-width: 992px) {

    .calculator-wrapper {
        padding: 12px;
    }

    .calc-header {
        min-height: auto;
    }

    .care-logo {
        width: 110px;
    }

}

/* =========================================================
   PAGE LAYOUT / STICKY FOOTER
   ========================================================= */

html,
body {
    min-height: 100%;
}

.calc-body {
    min-height: 100vh;
}

.calc-footer {
    background: #212529;
    color: #ffffff;
    padding: 18px 0;
    margin-top: auto;
    font-size: 13px;
}

/* =========================================================
   INLINE SECTION TITLES
   ========================================================= */

.section-inline-title {
    color: var(--calc-purple);
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

.section-inline-title i {
    margin-right: 7px;
    font-size: 17px;
}

.input-group-text {
    background: #ffffff;
    border-color: #d7dfec;
    color: #354569;
    font-size: 12px;
}

.calc-card .input-group .form-control {
    border-color: #d7dfec;
    font-size: 12px;
}

/* =========================================================
   CALCULATOR RESULT AREA
   ========================================================= */

.calculator-column {
    border-right: 1px solid #dfe5f0;
}

.calculator-column:last-child {
    border-right: 0;
}


.calculator-column-title {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--calc-purple);
    font-size: 13px;
    font-weight: 700;

    border-bottom: 1px solid #dfe5f0;
}


/* MODEL */

.form-check-input:checked {
    background-color: var(--calc-purple);
    border-color: var(--calc-purple);
}

.form-check-label {
    font-size: 13px;
    color: #17264b;
}


/* POWER GRID */

.power-grid-header {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    text-align: center;
    font-size: 12px;
    font-weight: 600;

    border-bottom: 1px solid #e3e7f0;
}

.power-grid-header > div {
    padding: 7px;
    border-right: 1px solid #e3e7f0;
}

.power-grid-header > div:last-child {
    border-right: 0;
}


.power-grid-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;

    padding: 8px 28px;
    border-bottom: 1px solid #edf0f6;
}


/* RESIDUAL */

.residual-grid-header {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    text-align: center;
    font-size: 12px;
    font-weight: 600;

    border-bottom: 1px solid #e3e7f0;
}

.residual-grid-header > div {
    padding: 7px;
    border-right: 1px solid #e3e7f0;
}

.residual-grid-header > div:last-child {
    border-right: 0;
}


.residual-grid-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 38px;

    padding: 8px 38px;
    border-bottom: 1px solid #edf0f6;
}


/* RESULT FIELDS */

.result-input {
    height: 32px;
    text-align: center;

    color: var(--calc-purple);
    font-size: 12px;
    font-weight: 700;

    border: 1px solid #9578e5;
    background: #ffffff;
}


.result-disabled {
    color: #9098aa;
    border-color: #dce1eb;
    background: #fafbfc;
}


/* =========================================================
   DISCLAIMER
   ========================================================= */

.disclaimer-card {
    margin-top: 12px;
}

.lens-position-box {
    max-width: 210px;
    margin: auto;
}

.lens-placeholder {
    width: 120px;
    height: 60px;

    margin: auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #6c52cf;
    font-weight: 700;

    background:
        linear-gradient(
            135deg,
            rgba(108, 82, 207, 0.15),
            rgba(125, 103, 224, 0.05)
        );

    border: 2px solid rgba(108, 82, 207, 0.25);
}


.lens-axis {
    display: flex;
    justify-content: space-between;

    margin-top: -22px;

    color: #ff3333;
    font-size: 11px;
    font-weight: 600;

    border-top: 1px dashed #ff5555;
}


.lens-note {
    margin-top: 22px;

    color: #ff3333;
    font-size: 10px;
}


.disclaimer-text {
    color: #687795;
    font-size: 12px;
    line-height: 1.7;
    text-align: justify;
}


.disclaimer-title {
    color: var(--calc-purple);
    font-weight: 700;
    font-size: 14px;
}


/* =========================================================
   ACTION BUTTONS
   ========================================================= */

.action-buttons {
    margin-top: 18px;
    margin-bottom: 15px;
}


.action-buttons .btn {
    min-width: 220px;
    height: 40px;

    border: 0;
    border-radius: 5px;

    color: #ffffff;

    font-size: 13px;
    font-weight: 600;

    transition: transform 0.15s ease,
                box-shadow 0.15s ease;
}


.action-buttons .btn:hover {
    color: #ffffff;

    transform: translateY(-1px);

    box-shadow:
        0 4px 10px
        rgba(20, 35, 70, 0.18);
}


.btn-save {
    background: #20a35e;
}


.btn-pdf {
    background: #2862cb;
}


.btn-submit-calc {
    background:
        linear-gradient(
            90deg,
            #7146ce,
            #8646c8
        );
}


.btn-print {
    background: #91c9ee;
}
