/* ===========================================
    Random Number Generator - Tool Specific Styles
    =========================================== */

/* Box Styling */
.rn-box {
    max-width: 700px; 
    margin: 0 auto;
    padding: 0; 
}

/* Form Container */
.rn-form {
    padding: 25px; 
    border: 1px solid #1976D2; /* Blue Border */
    border-radius: 8px;
    background-color: #E3F2FD; /* Very Light Blue Background */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.rn-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0D47A1; /* Darker Blue */
    border-bottom: 2px solid #BBDEFB;
    padding-bottom: 5px; 
    margin-top: 5px; 
    margin-bottom: 20px; 
}

/* --- Input Grid --- */
.rn-input-grid {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between;
    gap: 15px 2%;
    margin-bottom: 10px; 
}

.rn-input-group {
    flex-basis: 48%; /* Allows two inputs per row */
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

.rn-input-group label {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem; 
    margin-bottom: 8px;
}

.rn-input-group input,
.rn-input-group select {
    padding: 12px;
    border: 1px solid #90CAF9;
    border-radius: 6px;
    font-size: 1rem;
    flex-grow: 1;
    text-align: right;
    background-color: white;
}

/* Button Styles */
.rn-calculate-btn {
    display: block;
    width: 100%;
    padding: 16px; 
    margin-top: 30px; 
    background-color: #1976D2; /* Primary Blue */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}
.rn-calculate-btn:hover {
    background-color: #0D47A1;
}

/* --- Results Display --- */
.rn-results {
    margin-top: 20px; 
    padding: 25px;
    border: 2px solid #1976D2; 
    border-radius: 8px;
    background-color: #EDE7F6; /* Light Lavender for distinction */
    text-align: center;
}

.rn-results-title {
    color: #0D47A1;
    font-size: 1.6rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #C5CAE9;
    padding-bottom: 5px;
}

/* Results Table */
.rn-results-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.rn-results-table th, .rn-results-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #C5CAE9;
    text-align: left;
}
.rn-results-table th {
    background-color: #F8F9FA; 
    color: #0D47A1;
    font-weight: 600;
    width: 60%;
}

/* Key Value Styling */
.rn-results-table td {
    font-size: 1.1rem;
    font-weight: 700;
    color: #D81B60; /* Pink/Red for key numbers */
}

/* Generated Numbers Display */
#outputGeneratedNumbers {
    margin-top: 15px;
    padding: 15px;
    background-color: #FFFFFF;
    border: 1px solid #BBDEFB;
    border-radius: 6px;
    text-align: left;
    font-family: monospace;
    font-size: 0.9rem;
    max-height: 200px;
    overflow-y: auto;
    word-wrap: break-word;
    white-space: pre-wrap;
}

/* Recalculate Button (Global Style Reuse) */
.bc-recalculate-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    background-color: #9E9E9E;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}
.bc-recalculate-btn:hover {
    background-color: #616161;
}

/* --- Responsive Adjustments --- */
@media (max-width: 550px) {
    .rn-input-group {
        flex-basis: 100%;
        min-width: unset;
    }
}