/* ==========================================================================
   WebElecTools - Minimalistic Design
   Copyright (c) 2025 petr@fotoventus.cz
   ========================================================================== */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --bg-color: #f8f9fa;
    --text-color: #2c3e50;
    --border-color: #dee2e6;
    --result-bg: #f8f9fa;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background-color: #ffffff;
}

/* Header */
header h1 {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 2rem;
}

header p {
    font-size: 0.95rem;
}

/* Navigation Tabs */
.nav-tabs {
    border-bottom: 2px solid var(--border-color);
}

.nav-tabs .nav-link {
    color: var(--text-color);
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    color: var(--secondary-color);
}

.nav-tabs .nav-link.active {
    color: var(--secondary-color);
    background-color: transparent;
    border-color: transparent transparent var(--secondary-color);
}

/* Forms */
.form-label {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-control,
.form-select {
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    padding: 0.6rem 0.75rem;
    font-size: 0.95rem;
    transition: border-color 0.15s ease-in-out;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.15);
}

.input-group .form-select {
    flex: 0 0 auto;
}

.unit-select {
    min-width: 130px;
    max-width: 130px;
    flex: 0 0 130px;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.6rem 2rem 0.6rem 0.75rem;
    background-color: #ffffff;
    color: var(--text-color);
}

.unit-select option {
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.5rem;
}

/* Button */
.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    padding: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Results Container */
.results-container {
    background-color: var(--result-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    padding: 1.25rem;
    margin-top: 1rem;
}

.results-container h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    font-weight: 500;
    color: var(--text-color);
}

.result-value {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 600;
    color: var(--secondary-color);
    word-break: break-word;
    text-align: right;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 400px;
    background-color: var(--result-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    padding: 1rem;
}

/* Footer */
footer {
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .chart-container {
        margin-top: 2rem;
    }
}

@media (max-width: 767.98px) {
    header h1 {
        font-size: 1.75rem;
    }

    .nav-tabs .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .result-item {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* E-Series Selector */
.e-series-selector {
    font-size: 0.75rem;
}

.e-series-selector .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Info Badge */
.form-label .badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    margin-left: 0.5rem;
}

/* Schematic Container */
.schematic-container {
    background-color: var(--result-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    padding: 1.5rem;
    text-align: center;
}

.filter-schematic {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.schematic-container h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

/* Utility classes */
.input-group-container {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
