/* --- Master Stylesheet for RobuxToUSD.org --- */
body { 
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
    line-height: 1.6; 
    margin: 0; 
    background-color: #f4f7f6; 
    color: #333; 
}
.container { 
    max-width: 800px; 
    margin: 20px auto; 
    padding: 20px 40px; 
    background-color: #fff; 
    border-radius: 12px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); 
}

/* --- Universal Header & Footer --- */
header { text-align: center; padding-bottom: 20px; border-bottom: 1px solid #eee; margin-bottom: 20px; }
header h1 { margin: 0; color: #1a1a1a; }
header a { text-decoration: none; color: inherit; }
header p { margin: 5px 0 0; color: #666; }
nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px 25px; margin-top: 15px; }
nav a { text-decoration: none; color: #007bff; font-weight: 500; }
nav a:hover { text-decoration: underline; }
footer { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid #eee; font-size: 0.9em; color: #666; }
footer p { margin: 5px 0; }
footer a { color: #007bff; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* === NEW & IMPROVED MODERN CALCULATOR === */
.converter-section {
    padding: 40px;
    background-color: #f8f9fa; /* Lighter, cleaner background */
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-top: 20px;
}
.converter-section h2 { 
    margin-top: 0; 
    text-align: center; 
    font-size: 2em; 
    color: #1a1a1a; 
}
/* Centered Toggle Switch Container */
.calculator-toggle-buttons {
    display: flex;
    justify-content: center; /* This centers the buttons */
    margin-bottom: 30px;
}
/* Modern Toggle Switch Buttons */
.toggle-button {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 12px 28px;
    cursor: pointer;
    font-size: 1em;
    color: #333;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}
.toggle-button:first-child {
    border-radius: 8px 0 0 8px;
    border-right: 0.5px solid #ccc;
}
.toggle-button:last-child {
    border-radius: 0 8px 8px 0;
    border-left: 0.5px solid #ccc;
}
.toggle-button.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
    z-index: 2;
    position: relative;
}

.calculator-pane { display: none; }
.calculator-pane.active { display: block; animation: fadeIn 0.5s; }
@keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} }

.calculator-form {
    display: flex;
    flex-direction: column; /* Stacks label and input */
    align-items: center; /* Centers them vertically */
    gap: 10px;
    margin: 20px 0;
}
.calculator-form label {
    font-size: 1.2em;
    font-weight: 500;
}
/* Identical Input Boxes */
.calculator-form input[type="number"] {
    max-width: 320px; /* Ensures same max size */
    width: 100%; /* Responsive width */
    padding: 14px;
    font-size: 1.2em;
    border: 1px solid #999;
    border-radius: 8px;
    text-align: center;
}
.result { 
    text-align: center;
    margin-top: 25px; 
    font-size: 3em; 
    font-weight: bold; 
    color: #28a745; 
    min-height: 60px;
}
/* === END OF NEW CALCULATOR STYLES === */

/* --- General Content --- */
.content-section { margin-top: 40px; }
.content-section h2 { font-size: 1.8em; color: #0056b3; border-bottom: 2px solid #0056b3; padding-bottom: 5px; }
.faq-item { margin-bottom: 20px; padding: 15px; background-color: #f8f9fa; border-left: 4px solid #007bff; border-radius: 4px; }
.faq-item h3 { margin: 0 0 5px 0; color: #174a7c; }
.faq-item p { margin: 0; }
.data-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 1.1em; }
.data-table th, .data-table td { padding: 12px; text-align: left; border-bottom: 1px solid #dee2e6; }
.data-table th { background-color: #e9ecef; }
.data-table tr:nth-child(even) { background-color: #f8f9fa; }