/* Reset en basis styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Fixed achtergrond met ::before pseudo-element */
html::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #ffff99 80%, #333333 100%);
    z-index: -1;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #000000;
    background: transparent;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 15px;

}

/* Language selector styling */
.language-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.lang-btn {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    color: #2c3e50;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.lang-btn:hover {
    border-color: #3498db;
    background: #f8f9fa;
    transform: translateY(-1px);
}

.lang-btn.active {
    background: #3498db;
    color: #ffffff;
    border-color: #3498db;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

@media (max-width: 600px) {
    .language-selector {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .lang-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;


}

.header h1 {
    background-color: #000000 !important;
    color: #ffff00 !important;
    padding: 12px 20px !important;
    margin: 12px 0 !important;
    border-radius: 8px !important;
    font-weight: bold !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    font-size: 2.5rem;
    text-shadow: none !important;
}

.subtitle {
    font-size: 1.2rem;
    color: #000000;
    margin-bottom: 5px;
    font-weight: 400;
}

.author {
    font-size: 0.9rem;
    color: #4a2c17;
    font-style: italic;
}

/* Main content */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

/* Calculator section */
.calculator-section,
.results-section {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #e0e0e0;
}

.calculator-section h2,
.results-section h2 {
    background-color: #000000 !important;
    color: #ffff00 !important;
    padding: 12px 20px !important;
    margin: 0 0 25px 0 !important;
    border-radius: 8px !important;
    font-weight: bold !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    font-size: 1.8rem;
    border-bottom: none !important;
}

/* Form styling */
.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: #000000;
    font-size: 1rem;
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
}

.form-group input:hover,
.form-group select:hover {
    border-color: #bdc3c7;
    transform: translateY(-1px);
}

.form-group small {
    color: #7f8c8d;
    font-size: 0.85rem;
    margin-top: 4px;
}

/* Custom coax section */
.custom-coax {
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    border: 2px dashed #cccccc;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.custom-coax.hidden {
    display: none;
}

/* Button */
.calculate-btn {
    background: #ffffff;
    color: #000000;
    border: 2px solid #2c3e50;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.calculate-btn:hover {
    background: #f0f0f0;
    border-color: #000000;
    transform: translateY(-2px);
}

.calculate-btn:active {
    transform: translateY(-1px);
}

/* Results */
.results-container {
    min-height: 200px;
}

.info-message {
    text-align: center;
    padding: 40px 20px;
    color: #000000;
    font-size: 1.1rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.result-card {
    background: #ffffff;
    color: #000000;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    text-align: center;
    transition: transform 0.3s ease;
}

.result-card:hover {
    transform: translateY(-3px);
    border-color: #cccccc;
}

.result-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.result-unit {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Construction details */
.construction-details {
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    border-left: 5px solid #e17055;
    margin-top: 20px;
}

.construction-details h3 {
    background-color: #000000 !important;
    color: #ffff00 !important;
    padding: 8px 16px !important;
    margin: 0 0 15px 0 !important;
    border-radius: 6px !important;
    font-weight: bold !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    font-size: 1.3rem;
}

.construction-list {
    list-style: none;
    padding: 0;
}

.construction-list li {
    padding: 8px 0;
    border-bottom: 1px solid #cccccc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.construction-list li:last-child {
    border-bottom: none;
}

.construction-list .label {
    font-weight: 500;
    color: #000000;
}

.construction-list .value {
    font-weight: 600;
    color: #e17055;
    font-family: 'Courier New', monospace;
}

/* Warning/Info boxes */
.warning-box,
.info-box {
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 5px solid;
}

.warning-box {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.warning-box h4,
.info-box h4 {
    background-color: #000000 !important;
    color: #ffff00 !important;
    padding: 6px 12px !important;
    margin: 0 0 10px 0 !important;
    border-radius: 4px !important;
    font-weight: bold !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    display: inline-block !important;
}

.info-box {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* Info section */
.info-section {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;


    margin-bottom: 30px;
}

/* Info image styling */
.info-image-container {
    width: 100%;
    margin: 20px 0 30px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.info-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.info-section h3 {
    background-color: #000000 !important;
    color: #ffff00 !important;
    padding: 12px 20px !important;
    margin: 0 0 25px 0 !important;
    border-radius: 8px !important;
    font-weight: bold !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    font-size: 1.8rem;
    border-bottom: none !important;
}

.info-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.info-card {
    background: #ffffff;
    color: #000000;
    padding: 25px;
    border-radius: 10px;
    border-top: 4px solid #e74c3c;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-card h4 {
    background-color: #000000 !important;
    color: #ffff00 !important;
    padding: 8px 16px !important;
    margin: 0 0 15px 0 !important;
    border-radius: 6px !important;
    font-weight: bold !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    font-size: 1.2rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.85);
    color: #ffff00;
    border-radius: 10px;
    margin-top: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer p {
    margin-bottom: 5px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card {
    animation: fadeIn 0.6s ease-out;
}

/* Error states */
.form-group input.error,
.form-group select.error {
    border-color: #e74c3c;
    background-color: #ffeaea;
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    font-weight: 500;
}

/* Loading state */
.calculate-btn.loading {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

.calculate-btn.loading:hover {
    transform: none;
    box-shadow: 0 5px 15px rgba(189, 195, 199, 0.3);
}

/* Mobile optimizations */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    .header {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .calculator-section,
    .results-section,
    .info-section {
        padding: 20px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .info-content {
        grid-template-columns: 1fr;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
    }
    
    .container {
        max-width: none;
        margin: 0;
        padding: 0;
    }
    
    .header,
    .calculator-section,
    .results-section {
        background: white;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .calculate-btn {
        display: none;
    }
}

/* Dark mode support (system preference) */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(180deg, #ffff99 80%, #333333 100%);
    }
    
    .header,
    .calculator-section,
    .results-section,
    .info-section {
        background: #ffffff;
        color: #000000;
    }
    
    .header h1,
    .calculator-section h2,
    .results-section h2,
    .info-section h3 {
        background-color: #000000 !important;
        color: #ffff00 !important;
    }
    
    .form-group label {
        color: #000000;
    }
    
    .form-group input,
    .form-group select {
        background: #ffffff;
        color: #000000;
        border-color: #e0e6ed;
    }
    
    .custom-coax {
        background: #ffffff;
        border-color: #cccccc;
    }
    
    /* Language Selector in Dark Mode - SAME AS OTHER HEADERS */
    .container .language-selector,
    div.language-selector {
        background-color: #ff8c00 !important;
        color: #000000 !important;
        padding: 12px 20px !important;
        margin: 12px 0 !important;
        border-radius: 8px !important;
        font-weight: bold !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    }
    
    .lang-btn {
        background: #ffffff !important;
        color: #ff6600 !important;
        border: 2px solid #ff6600 !important;
    }
    
    .lang-btn:hover {
        background: #ff6600 !important;
        color: #ffffff !important;
    }
    
    .lang-btn.active {
        background: #ff6600 !important;
        color: #ffffff !important;
        border-color: #ff4400 !important;
    }
}

/* Language Selector Styling - SAME AS TRAP PARAMETERS */
.container .language-selector,
div.language-selector {
    background-color: #ff8c00 !important; /* Oranje achtergrond zoals trap parameters zwart heeft */
    color: #000000 !important; /* Zwarte tekst voor contrast */
    padding: 12px 20px !important;
    margin: 12px 0 !important;
    border-radius: 8px !important;
    font-weight: bold !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    border: none !important;
}

.lang-btn {
    background: #ffffff !important;
    color: #ff6600 !important;
    border: 2px solid #ff6600 !important;
    padding: 8px 16px !important;
    margin: 0 5px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
    font-size: 14px !important;
}

.lang-btn:hover {
    background: #ff6600 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(255, 102, 0, 0.4) !important;
    transform: translateY(-2px) !important;
}

.lang-btn.active {
    background: #ff6600 !important;
    color: #ffffff !important;
    box-shadow: 0 3px 6px rgba(255, 102, 0, 0.5) !important;
    border-color: #ff4400 !important;
}

/* Electrical properties styling */
.electrical-properties {
    background: #e8f5e8;
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid #27ae60;
    margin-top: 20px;
}

.electrical-properties h4 {
    background-color: #000000 !important;
    color: #ffff00 !important;
    padding: 8px 16px !important;
    margin: 0 0 15px 0 !important;
    border-radius: 6px !important;
    font-weight: bold !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}