
    * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    body {
        font-family: Arial, sans-serif;
        background-color: #0b1120;
        color: #1e293b;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    main {
        flex: 1;
        max-width: 950px;
        width: 100%;
        margin: 40px auto;
        padding: 0 20px;
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .tool-card, .about-card {
        background-color: #0f172a;
        border: 1px solid #1e293b;
        border-radius: 12px;
        padding: 40px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    }

    main h1 {
        font-size: 28px;
        margin-bottom: 8px;
        color: white !important;
        font-weight: 700;
        border-bottom: 3px solid #00b4d8;
    }

    .tool-desc {
        color: #64748b;
        margin-bottom: 25px;
        font-size: 14px;
        padding-bottom: 15px;
    }

    .calculator-grid {
        display: grid;
        grid-template-columns: 1.1fr 1fr;
        gap: 40px;
        align-items: stretch;
    }

    .inputs-section {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 15px;
    }

    .form-group {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    main label {
        font-size: 13px;
        font-weight: 600;
        color: #475569;
    }

    main input {
        width: 100%;
        padding: 12px 15px;
        background-color: #f8fafc;
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        color: #1e293b;
        font-size: 15px;
        outline: none;
        transition: border-color 0.3s, box-shadow 0.3s;
    }

    main input:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

    .reset-btn, .action-btn {
        width: 100%;
        padding: 14px;
        background-color: #00b4d8;
        color: #ffffff;
        border: none;
        border-radius: 8px;
        font-size: 15px;
        font-weight: bold;
        cursor: pointer;
        transition: background 0.3s;
        margin-top: 10px;
    }

    .reset-btn:hover {
        background-color: #1e293b;
    }

    .results-section {
        background-color: #1e293b;
        border: 1px solid #334155;
        border-radius: 10px;
        padding: 30px;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        height: 100%;
    }

    .result-item {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .result-label {
        font-size: 11px;
        font-weight: bold;
        color: #64748b;
        letter-spacing: 0.5px;
    }

    .results-section h2 {
        font-size: 32px;
        color: white;
        font-weight: 700;
        margin: 0;
    }

    .results-section h3 {
        font-size: 20px;
        color: white;
        font-weight: 600;
        margin: 0;
    }

    .about-card h2 {
        font-size: 22px;
        color: #00b4d8;
        margin-bottom: 15px;
        border-bottom: 3px solid #00b4d8;
    }

    .about-card h3 {
        font-size: 16px;
        color: #0284c7;
        margin-top: 20px;
        margin-bottom: 8px;
    }

    .about-card p, .about-card li {
        color: white;
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 8px;
    }

    select{
     background: #1e293b !important;
     color: white !important;

         width: 100%;
    padding: 12px;
    border: 1px solid #475569;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
    background: #1e293b;
    color: #ffffff;
}
.fraction-slash{
    color: white;
    margin-left: 50%;
    font-weight: bold;
    font-size: 22px;
}
.ratio-colon{
    color: white;
    margin-left: 50%;
    font-weight: bold;
    font-size: 22px;
}
.form-group .radio-label{
    float: left;
}

    .about-card ul {
        padding-left: 20px;
    }

    @media (max-width: 768px) {
        .calculator-grid {
            grid-template-columns: 1fr;
            gap: 25px;
        }
    }
