/* ===========================================
   Roman Numeral Converter - Tool Specific Styles
   =========================================== */

/* Tool Layout */
.rn-box {
    max-width: 700px;
    margin: 0 auto;
}

/* Input/Control Section */
.rn-section {
    background: #fffbe6; /* Light Yellow/Cream BG */
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #fde68a; /* Yellow Border */
    margin-bottom: 30px;
}

.rn-section.roman {
    background: #f0fdf4; /* Light Green for contrast */
    border-color: #a7f3d0;
}

.rn-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rn-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.rn-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #fcd34d; /* Yellow border */
    border-radius: 8px;
    font-size: 1.1rem;
    color: #1f2937;
    text-transform: uppercase; /* Ensure Roman input is capitalized */
}

.rn-section.roman .rn-input {
    border-color: #34d399; /* Green border for Roman section */
}

.rn-btn {
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.rn-btn-convert {
    background: #f59e0b; /* Amber/Orange */
    color: white;
}
.rn-btn-convert:hover {
    background: #d97706;
}

.rn-section.roman .rn-btn-convert {
    background: #10b981; /* Green */
}
.rn-section.roman .rn-btn-convert:hover {
    background: #059669;
}

/* Result Display */
.rn-result {
    margin-top: 15px;
    padding: 10px;
    min-height: 40px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    border-radius: 4px;
    background: #f9fafb;
    border: 1px dashed #e5e7eb;
}

.rn-error {
    color: #dc2626;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Reference Table */
.rn-table-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #4b5563;
}

.rn-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.rn-table th, .rn-table td {
    padding: 8px 15px;
    border: 1px solid #e5e7eb;
    text-align: center;
}
.rn-table th {
    background: #f3f4f6;
    font-weight: 700;
}
.rn-table td:first-child {
    font-weight: 600;
    background: #f9fafb;
}

/* Responsive */
@media (max-width: 500px) {
    .rn-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    .rn-btn {
        width: 100%;
    }
}