/* Statisztikai Kalkulátor CSS - Modern Statistical Design */
.statisztikai-kalkulator-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;
}

.calculator {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.calculator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    border-radius: 20px 20px 0 0;
}

.calculator h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 10px;
    font-size: 2.2em;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.calculator-description {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 1.1em;
    font-style: italic;
}

/* Input Section */
.input-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.input-group {
    margin-bottom: 20px;
}

.input-group:last-child {
    margin-bottom: 0;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1em;
}

.input-group select,
.input-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: white;
    color: #2c3e50;
    font-family: inherit;
}

.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.input-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.input-hint {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 0.9em;
    font-style: italic;
}

.calculate-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.calculate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
}

.calculate-btn:active {
    transform: translateY(-1px);
}

/* Result Section */
.result-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.result-header h3 {
    color: #2c3e50;
    font-size: 1.8em;
    font-weight: 700;
    margin: 0;
}

/* Statistics Summary */
.statistics-summary {
    margin-bottom: 30px;
}

.statistics-summary h4 {
    color: #2c3e50;
    font-size: 1.4em;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #667eea;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.summary-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.summary-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.summary-item h5 {
    color: #667eea;
    font-size: 1em;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.summary-item .value {
    color: #2c3e50;
    font-size: 1.3em;
    font-weight: 700;
    margin: 0;
}

.summary-item .description {
    color: #7f8c8d;
    font-size: 0.9em;
    margin: 5px 0 0 0;
}

/* Charts Section */
.charts-section {
    margin-bottom: 30px;
}

.charts-section h4 {
    color: #2c3e50;
    font-size: 1.4em;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #667eea;
}

.chart-container {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
}

.chart-container canvas {
    max-width: 100%;
    height: auto;
}

/* Detailed Results */
.detailed-results {
    margin-bottom: 30px;
}

.detailed-results h4 {
    color: #2c3e50;
    font-size: 1.4em;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #667eea;
}

.results-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-button {
    padding: 10px 20px;
    background: #e9ecef;
    border: none;
    border-radius: 8px;
    color: #7f8c8d;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-button:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.tab-button.active {
    background: #667eea;
    color: white;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.tab-content {
    display: none;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Interpretation */
.interpretation {
    margin-bottom: 30px;
}

.interpretation h4 {
    color: #2c3e50;
    font-size: 1.4em;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #667eea;
}

.interpretation-content {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    line-height: 1.6;
    color: #2c3e50;
}

/* Data Export */
.data-export {
    margin-bottom: 30px;
}

.data-export h4 {
    color: #2c3e50;
    font-size: 1.4em;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #667eea;
}

.export-btn {
    padding: 12px 20px;
    margin-right: 10px;
    margin-bottom: 10px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.export-btn:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

.export-btn:nth-child(2) {
    background: #3498db;
}

.export-btn:nth-child(2):hover {
    background: #2980b9;
}

.export-btn:nth-child(3) {
    background: #e74c3c;
}

.export-btn:nth-child(3):hover {
    background: #c0392b;
}

/* Calculator Info */
.calculator-info {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #e9ecef;
}

.calculator-info h4 {
    color: #2c3e50;
    font-size: 1.3em;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #667eea;
}

.calculator-info h5 {
    color: #667eea;
    font-size: 1.1em;
    margin: 20px 0 10px 0;
    font-weight: 600;
}

.calculator-info p {
    color: #2c3e50;
    line-height: 1.6;
    margin-bottom: 15px;
}

.calculator-info ul {
    color: #2c3e50;
    line-height: 1.6;
    margin-bottom: 20px;
    padding-left: 20px;
}

.calculator-info li {
    margin-bottom: 8px;
}

.calculator-info strong {
    color: #667eea;
    font-weight: 600;
}

.calculator-info ol {
    color: #2c3e50;
    line-height: 1.6;
    margin-bottom: 20px;
    padding-left: 20px;
}

.calculator-info ol li {
    margin-bottom: 10px;
}

.disclaimer {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
}

.disclaimer p {
    color: #856404;
    margin: 0;
    font-weight: 500;
}

/* Error and Success Messages */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #f5c6cb;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #c3e6cb;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.5s ease-out;
}

.error-message::before,
.success-message::before {
    font-size: 1.2em;
    font-weight: bold;
}

.error-message::before {
    content: "⚠️";
}

.success-message::before {
    content: "✅";
}

/* Loading State */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: #667eea;
    font-size: 1.1em;
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #667eea;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .statisztikai-kalkulator-container {
        padding: 10px;
    }
    
    .calculator {
        padding: 20px;
        border-radius: 15px;
    }
    
    .calculator h2 {
        font-size: 1.8em;
    }
    
    .input-section,
    .result-section,
    .calculator-info {
        padding: 20px;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .results-tabs {
        flex-direction: column;
    }
    
    .tab-button {
        text-align: center;
    }
    
    .export-btn {
        width: 100%;
        margin-right: 0;
    }
    
    .chart-container {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .calculator {
        padding: 15px;
    }
    
    .calculator h2 {
        font-size: 1.5em;
    }
    
    .input-section,
    .result-section,
    .calculator-info {
        padding: 15px;
    }
    
    .input-group select,
    .input-group textarea {
        padding: 10px 12px;
        font-size: 0.9em;
    }
    
    .calculate-btn {
        padding: 12px;
        font-size: 1.1em;
    }
}

/* Dark Theme Support */
@media (prefers-color-scheme: dark) {
    .statisztikai-kalkulator-container {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    }
    
    .calculator {
        background: rgba(44, 62, 80, 0.95);
        color: #ecf0f1;
    }
    
    .calculator h2 {
        color: #ecf0f1;
    }
    
    .input-section,
    .result-section,
    .calculator-info {
        background: rgba(52, 73, 94, 0.8);
        border-color: #34495e;
    }
    
    .input-group label {
        color: #ecf0f1;
    }
    
    .input-group select,
    .input-group textarea {
        background: #2c3e50;
        border-color: #34495e;
        color: #ecf0f1;
    }
    
    .input-group select:focus,
    .input-group textarea:focus {
        border-color: #667eea;
    }
    
    .summary-item,
    .chart-container,
    .tab-content,
    .interpretation-content {
        background: #2c3e50;
        color: #ecf0f1;
    }
    
    .summary-item h5 {
        color: #667eea;
    }
    
    .summary-item .value {
        color: #ecf0f1;
    }
    
    .summary-item .description {
        color: #bdc3c7;
    }
    
    .tab-button {
        background: #34495e;
        color: #bdc3c7;
    }
    
    .tab-button:hover,
    .tab-button.active {
        background: #667eea;
        color: white;
    }
    
    .calculator-info h4,
    .calculator-info h5 {
        color: #ecf0f1;
    }
    
    .calculator-info p,
    .calculator-info ul,
    .calculator-info ol {
        color: #bdc3c7;
    }
    
    .calculator-info strong {
        color: #667eea;
    }
}

/* Print Styles */
@media print {
    .statisztikai-kalkulator-container {
        background: white;
        padding: 0;
    }
    
    .calculator {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .input-section,
    .calculate-btn,
    .export-btn {
        display: none;
    }
    
    .result-section {
        border: none;
        background: white;
    }
    
    .chart-container {
        break-inside: avoid;
        page-break-inside: avoid;
    }
} 