/* Rekentools Styles */
.tool-card {
    grid-column: span 1;
    /* Default to 1 column */
    /* Allow card to be wider if needed for side-by-side */
    max-width: 100%;
}

/* Make the tool card span 2 columns if grid allows, to give space for side-by-side */
@media (min-width: 992px) {
    .tool-card {
        grid-column: span 2;
    }
}

.tool-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .tool-wrapper {
        flex-direction: row;
        align-items: flex-start;
    }

    .tool-input-section {
        flex: 0 0 300px;
        /* Fixed width for input section */
    }

    .tool-results-section {
        flex: 1;
        /* Take remaining space */
        margin-top: 0 !important;
        /* Override inline style if any */
        border-left: 1px solid #eee;
        padding-left: 30px;
    }
}

.tool-content {
    margin-top: 20px;
    text-align: left;
}

.radio-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.radio-group label {
    cursor: pointer;
    display: flex;
    align-items: center;
    font-weight: normal;
    margin-bottom: 0;
    /* Override default label margin */
}

.radio-group input[type="radio"] {
    margin-right: 5px;
    accent-color: var(--accent-color);
    width: auto;
    /* Override full width */
}

.results-block {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.result-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.result-actions {
    display: flex;
    align-items: center;
}

.result-value {
    font-weight: bold;
    color: var(--primary-color);
    margin: 0 10px;
}

.copy-btn {
    background: none;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.copy-btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}