/* Kalkulator wynagrodzeń - Dodatkowe style */

/* Animacje i efekty wizualne */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(60, 101, 245, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(60, 101, 245, 0.6);
    }
}

/* Responsywne kontenery */
.calculator-container {
    animation: slideInFromTop 0.6s ease-out;
}

.calculator-form {
    animation: slideInFromLeft 0.8s ease-out;
}

/* Ulepszone style dla formularzy */
.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group label {
    position: relative;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    display: block;
    transition: color 0.3s ease;
}

.form-control {
    border: 2px solid #e8ecef;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
    position: relative;
}

.form-control:focus {
    border-color: #3c65f5;
    box-shadow: 0 0 0 4px rgba(60, 101, 245, 0.1);
    outline: none;
    transform: translateY(-2px);
}

.form-control:hover {
    border-color: #7c8db5;
}

/* Style dla selectów */
select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 45px;
    appearance: none;
    cursor: pointer;
}

/* Ulepszone style dla checkboxów */
.form-group input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    position: relative;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.form-group input[type="checkbox"]:checked {
    background: #3c65f5;
    border-color: #3c65f5;
}

.form-group input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

/* Ulepszone przyciski tabów */
.calculator-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 35px;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 12px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.tab-button {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    color: #6b7280;
    text-align: center;
}

.tab-button.active {
    background: white;
    color: #3c65f5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.tab-button:hover:not(.active) {
    background: rgba(60, 101, 245, 0.1);
    color: #3c65f5;
}

/* Ulepszone style wyników */
.result-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 35px;
    margin-top: 35px;
    position: relative;
    overflow: hidden;
    animation: slideInFromTop 0.5s ease-out;
}

.result-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M20 20c0 11.046-8.954 20-20 20s-20-8.954-20-20 8.954-20 20-20 20 8.954 20 20zm0-20c0 11.046-8.954 20-20 20s-20-8.954-20-20 8.954-20 20-20 20 8.954 20 20z'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
    pointer-events: none;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    position: relative;
    animation: slideInFromLeft 0.5s ease-out;
    animation-fill-mode: both;
}

.result-item:nth-child(1) { animation-delay: 0.1s; }
.result-item:nth-child(2) { animation-delay: 0.2s; }
.result-item:nth-child(3) { animation-delay: 0.3s; }
.result-item:nth-child(4) { animation-delay: 0.4s; }
.result-item:nth-child(5) { animation-delay: 0.5s; }

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

.result-label {
    font-weight: 500;
    font-size: 16px;
    opacity: 0.9;
}

.result-value {
    font-weight: 700;
    font-size: 20px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Tabela porównawcza */
.comparison-table {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    margin-top: 35px;
    animation: slideInFromTop 0.6s ease-out;
}

.comparison-table table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.comparison-table th {
    background: linear-gradient(135deg, #3c65f5 0%, #4f46e5 100%);
    color: white;
    padding: 20px 15px;
    font-weight: 600;
    text-align: left;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-table td {
    padding: 18px 15px;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.comparison-table tr:hover td {
    background-color: #f8fafc;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* FAQ ulepszone */
.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.faq-item:hover {
    border-color: #3c65f5;
    box-shadow: 0 4px 12px rgba(60, 101, 245, 0.15);
}

.faq-question {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #1e293b;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.faq-answer {
    padding: 24px;
    display: none;
    border-top: 1px solid #e2e8f0;
    background: white;
    animation: slideInFromTop 0.3s ease-out;
    line-height: 1.7;
    color: #475569;
}

.faq-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #3c65f5;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.faq-item.open .faq-toggle {
    transform: rotate(45deg);
    background: #ef4444;
}

.faq-item.open .faq-answer {
    display: block;
}

/* Przycisk kalkulatora */
.btn-calculate {
    background: linear-gradient(135deg, #3c65f5 0%, #8b5cf6 100%);
    border: none;
    border-radius: 12px;
    color: white;
    padding: 18px 36px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(60, 101, 245, 0.3);
}

.btn-calculate:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(60, 101, 245, 0.4);
    color: white;
}

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

.btn-calculate::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-calculate:hover::before {
    left: 100%;
}

/* Responsywność */
@media (max-width: 768px) {
    .calculator-tabs {
        flex-direction: column;
        gap: 8px;
    }
    
    .tab-button {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .calculator-container {
        padding: 25px;
    }
    
    .calculator-form {
        padding: 25px;
    }
    
    .result-box {
        padding: 25px;
    }
    
    .result-value {
        font-size: 18px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 12px 10px;
        font-size: 14px;
    }
    
    .faq-question {
        padding: 18px;
        font-size: 15px;
    }
    
    .faq-answer {
        padding: 18px;
    }
}

@media (max-width: 480px) {
    .calculator-container {
        padding: 20px;
        margin: 20px;
    }
    
    .result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .result-value {
        font-size: 16px;
    }
    
    .comparison-table {
        overflow-x: auto;
    }
    
    .comparison-table table {
        min-width: 600px;
    }
}

/* Efekty ładowania */
.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3c65f5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
} 