    :root {
        --primary: #2c3e50;
        --secondary: #3498db;
        --success: #27ae60;
        --warning: #f39c12;
        --danger: #e74c3c;
        --light: #ecf0f1;
        --dark: #34495e;
        --highlight: #fffde7;
        --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        --formula-bg: #f0f7ff;
    }

    * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    body {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        background: linear-gradient(135deg, #f5f7fa 0%, #e4e7ec 100%);
        color: #333;
        line-height: 1.6;
        padding: 20px;
        min-height: 100vh;
    }

    .container {
        max-width: 1300px;
        margin: 0 auto;
        /* background-color: white; */
        /* border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); */
        padding: 30px;
    }

    .input-group.horizontal {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
    }

    .input-group.horizontal label {
        margin: 0;
        white-space: nowrap;
        min-width: 180px;
        /* Adjust width as needed */
    }

    .input-group.horizontal input {
        flex: 1;
    }



    header {
        text-align: center;
        margin-bottom: 30px;
        padding-bottom: 20px;
        border-bottom: 3px solid var(--secondary);
        background: linear-gradient(to right, #2c3e50, #4a6491);
        color: white;
        padding: 20px;
        border-radius: 10px;
        margin-top: -10px;
    }

    h1 {
        color: white;
        margin-bottom: 10px;
        font-size: 2.5rem;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    }

    .subtitle {
        color: #d0e4ff;
        font-size: 18px;
        margin-bottom: 10px;
        max-width: 800px;
        margin: 0 auto;
    }

    .calculator-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        margin-bottom: 25px;
    }

    .box {
        background-color: white;
        border-radius: 10px;
        padding: 20px;
        box-shadow: var(--box-shadow);
        transition: all 0.3s ease;
        border: 1px solid #e0e6ed;
        position: relative;
        overflow: hidden;
    }

    .box:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 5px;
        height: 100%;
        background: var(--secondary);
    }

    /* .box:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
    } */

    .box-title {
        color: var(--primary);
        padding-bottom: 12px;
        margin-bottom: 20px;
        font-size: 20px;
        display: flex;
        align-items: center;
        border-bottom: 2px solid var(--secondary);
    }

    .box-title i {
        margin-right: 12px;
        color: var(--secondary);
        background: #e3f2fd;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .input-group {
        margin-bottom: 18px;
        position: relative;
    }

    label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: var(--dark);
        display: flex;
        align-items: center;
    }

    label i {
        margin-right: 8px;
        color: var(--secondary);
    }

    input[type="text"],
    input[type="number"],
    select {
        width: 90%;
        padding: 12px 15px;
        border: 2px solid #d1d9e6;
        border-radius: 8px;
        font-size: 16px;
        transition: all 0.3s;
        background: white;
    }

    input:focus,
    select:focus {
        outline: none;
        border-color: var(--secondary);
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    }

    .highlighted {
        background-color: var(--highlight);
        border-color: #ffd54f !important;
    }

    .result-container {
        position: relative;
    }

    .result-box {
        background-color: #e8f5e9;
        border: 2px solid #a5d6a7;
        border-radius: 8px;
        padding: 15px;
        margin-top: 8px;
        font-weight: 700;
        text-align: center;
        font-size: 18px;
        color: #2e7d32;
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s;
    }

    .formula-box {
        background-color: var(--formula-bg);
        border: 1px solid #bbdefb;
        border-radius: 6px;
        padding: 12px;
        margin-top: 10px;
        font-size: 14px;
        color: #1565c0;
        font-family: 'Courier New', monospace;
        display: none;
        animation: fadeIn 0.3s ease;
    }

    .result-container:hover .formula-box {
        display: block;
    }

    .result-container:hover .result-box {
        background-color: #dcedc8;
    }

    .deal-result {
        font-size: 24px;
        font-weight: 800;
        text-transform: uppercase;
        padding: 25px;
        text-align: center;
        border-radius: 10px;
        margin: 20px 0;
        letter-spacing: 1px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transition: all 0.4s ease;
    }

    .deal-yes {
        background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
        color: white;
        border: 2px solid #388E3C;
    }

    .deal-no {
        background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
        color: white;
        border: 2px solid #c62828;
    }

    .profit-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 25px;
        box-shadow: var(--box-shadow);
        border-radius: 10px;
        overflow: hidden;
    }

    .profit-table th {
        background: linear-gradient(to right, #3498db, #2c3e50);
        color: white;
        padding: 15px;
        text-align: center;
        font-weight: 600;
    }

    .profit-table td {
        padding: 12px;
        border: 1px solid #e0e0e0;
        text-align: center;
    }

    .profit-table tr:nth-child(even) {
        background-color: #f8f9fa;
    }

    .profit-table tr:hover {
        background-color: #e3f2fd;
    }

    .instructions {
        background: linear-gradient(to right, #e3f2fd, #bbdefb);
        border-left: 4px solid var(--secondary);
        padding: 20px;
        margin: 25px 0;
        border-radius: 0 10px 10px 0;
        font-size: 16px;
    }

    .reset-btn {
        display: block;
        background: linear-gradient(135deg, var(--secondary) 0%, #2c3e50 100%);
        color: white;
        border: none;
        padding: 15px 30px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 18px;
        margin: 30px auto 15px;
        transition: all 0.3s;
        font-weight: 600;
        box-shadow: 0 4px 8px rgba(44, 62, 80, 0.3);
    }

    .reset-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 12px rgba(44, 62, 80, 0.4);
    }

    .reset-btn i {
        margin-right: 10px;
    }

    .footer {
        text-align: center;
        margin-top: 25px;
        color: #7f8c8d;
        font-style: italic;
        padding-top: 20px;
        border-top: 1px solid #eee;
        font-size: 15px;
    }

    .formula-header {
        font-size: 13px;
        color: #5c6bc0;
        margin-bottom: 5px;
        font-weight: 600;
    }

    @media (max-width: 1200px) {
        .calculator-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 768px) {
        .calculator-grid {
            grid-template-columns: 1fr;
        }

        .container {
            padding: 15px;
        }

        header {
            padding: 15px;
        }

        h1 {
            font-size: 1.8rem;
        }
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .highlight {
        background-color: #fff9c4;
        padding: 2px 5px;
        border-radius: 3px;
        font-weight: bold;
    }

    .modification-note {
        background: #e1f5fe;
        border-left: 4px solid #0288d1;
        padding: 15px;
        margin: 20px 0;
        border-radius: 0 8px 8px 0;
        font-size: 15px;
    }

    .modification-note strong {
        color: #0288d1;
    }

