﻿/* style/global.css */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
}

.calculator {
    flex: 1;
    max-width: 70%;
    padding-right: 20px;
}

.ads-right {
    width: 300px;
    position: sticky;
    top: 20px;
    height: fit-content;
}

header {
    background-color: #007bff;
    color: white;
    padding: 20px;
    text-align: center;
}

header h1 {
    margin-bottom: 10px;
}

.ads-top, .ads-bottom {
    margin: 20px 0;
    text-align: center;
}

form {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input, select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.help-text {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: -6px;
    margin-bottom: 12px;
}

.help-text.error {
    color: #dc3545;
}

.field-pair {
    display: flex;
    gap: 20px;
}

.field-pair > div {
    flex: 1;
}

.field-pair.checkboxes {
    align-items: center;
}

.field-pair.checkboxes label {
    display: inline;
    font-weight: normal;
}

button[type="submit"] {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

#resultado {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 20px;
}

#resultado table {
    width: 100%;
    border-collapse: collapse;
}

#resultado th, #resultado td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

#resultado th {
    background-color: #007bff;
    color: white;
}

details {
    margin-top: 10px;
}

summary {
    cursor: pointer;
    font-weight: bold;
}

.explanation {
    margin-top: 20px;
}

.ad-interstitial {
    margin: 20px 0;
    text-align: center;
    background-color: #f4f4f4;
    padding: 10px;
    border-radius: 4px;
}

.related-tools {
    margin-top: 24px;
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(15, 31, 73, 0.08);
    border: 1px solid rgba(13, 110, 253, 0.08);
}

.related-tools h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
    color: #0b2239;
}

.related-tools p {
    margin-bottom: 12px;
    color: #3a4456;
}

.related-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.related-links li {
    margin: 0;
}

.related-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0d6efd;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(13, 110, 253, 0.08);
    transition: background 0.2s ease, transform 0.2s ease;
}

.related-links a::before {
    content: '\2192';
    font-size: 0.9rem;
}

.related-links a:hover {
    background: rgba(13, 110, 253, 0.16);
    transform: translateY(-2px);
}
footer {
    background-color: #f8f9fa;
    padding: 20px;
    text-align: center;
    margin-top: 40px;
}

.hidden {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .container {
        flex-direction: column;
    }
    
    .calculator {
        max-width: 100%;
        padding-right: 0;
    }
    
    .ads-right {
        width: 100%;
        margin-top: 20px;
        position: static;
    }
    
    .field-pair {
        flex-direction: column;
        gap: 0;
    }
}

/* Ad placeholders */
.ads-top,
.ads-bottom,
.ads-right,
.ad-vertical,
.ad-interstitial,
.adsbygoogle {
    display: none !important;
}
