/* Geohita Calculator Stylesheet - Processware */

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --success-color: #16a34a;
    --danger-color: #dc2626;
    --warning-color: #ea580c;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 50%, #fdba74 100%);
    min-height: 100vh;
    padding: 2rem 1rem;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 2rem;
    color: #7c2d12;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 1rem;
}

.info-link {
    display: inline-block;
    color: #7c2d12;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(124, 45, 18, 0.2);
}

.info-link:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    border-color: rgba(124, 45, 18, 0.4);
}

.card {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.card h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.card h3 {
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    cursor: pointer;
}

.btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.result {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid var(--primary-color);
}

.result-summary {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.result-item.highlight {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 2px solid var(--warning-color);
}

.result-item .label {
    font-weight: 600;
    font-size: 1.1rem;
}

.result-item .value {
    font-weight: 700;
    color: var(--primary-color);
}

.result-item .value.large {
    font-size: 2rem;
    color: var(--danger-color);
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.result-table thead {
    background: var(--primary-color);
    color: white;
}

.result-table th,
.result-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.result-table th {
    font-weight: 600;
}

.result-table tbody tr:hover {
    background: var(--light-bg);
}

.result-table .total-row {
    background: var(--light-bg);
    font-weight: 700;
}

.result-table .positive {
    color: var(--success-color);
    font-weight: 600;
}

.result-table .negative {
    color: var(--danger-color);
    font-weight: 600;
}

.explanation {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border-left: 4px solid var(--warning-color);
    margin: 1.5rem 0;
}

.explanation p {
    margin-bottom: 0.75rem;
}

.action-box {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border: 2px solid var(--success-color);
}

.action-box ol,
.action-box ul {
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.action-box li {
    margin-bottom: 0.5rem;
}

.error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid var(--danger-color);
}

footer {
    text-align: center;
    color: #7c2d12;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(124, 45, 18, 0.2);
}

footer p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 1rem 0.5rem;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .card {
        padding: 1.5rem;
    }

    .result-table {
        font-size: 0.875rem;
    }

    .result-table th,
    .result-table td {
        padding: 0.75rem 0.5rem;
    }

    .result-item .value.large {
        font-size: 1.5rem;
    }
}

@media print {
    body {
        background: white;
        padding: 0;
    }

    .card {
        box-shadow: none;
        border: 1px solid var(--border-color);
        page-break-inside: avoid;
    }

    .btn-primary,
    .info-link {
        display: none;
    }
}
