/* T-Test Calculator Styles */
.ttest-calculator {
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.calc-container {
    width: 100%;
    margin: 0 auto;
}

.calc-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    transition: box-shadow 0.3s ease;
}

.calc-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.calc-header {
    margin-bottom: 2rem;
}

.calc-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.calc-left {
    min-width: 0;
    padding-right: 3rem;
    border-right: 1px solid #e9ecef;
}

.calc-right {
    min-width: 0;
    padding-left: 1.5rem;
}

@media (max-width: 1024px) {
    .calc-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .calc-left {
        padding-right: 0;
        border-right: none;
        padding-bottom: 2rem;
        border-bottom: 1px solid #e9ecef;
    }
    
    .calc-right {
        padding-left: 0;
        padding-top: 2rem;
    }
}

.calc-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.calc-description {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Test Type Selector */
.test-type-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.test-type-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    width: 100%;
}

.test-type-btn:hover {
    background: #f0f2f5;
    border-color: #007bff;
    transform: translateY(-2px);
}

.test-type-btn.active {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-color: #007bff;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.test-type-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.btn-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.test-type-btn.active .btn-icon {
    background: rgba(255, 255, 255, 0.25);
}

.btn-content {
    flex: 1;
}

.btn-title {
    display: block;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.btn-subtitle {
    display: block;
    font-size: 14px;
    opacity: 0.8;
}

/* Input Section */
.input-section {
    animation: fadeIn 0.3s ease;
}

.input-section.hidden {
    display: none;
}

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

.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.input-group-modern {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.label-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.label-text {
    flex: 1;
}

.input-field {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #1a1a1a;
}

.input-field:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
}

.input-field::placeholder {
    color: #adb5bd;
}

.input-hint {
    font-size: 13px;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-calculate {
    flex: 1;
    min-width: 200px;
    padding: 1.125rem 2rem;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

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

.btn-clear {
    padding: 1.125rem 2rem;
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-clear:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.btn-icon {
    font-size: 20px;
}

/* Results Section */
.results-section {
    position: sticky;
    top: 2rem;
}

.results-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
}

.results-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.results-content {
    position: relative;
}

.hidden {
    display: none !important;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #6c757d;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.empty-title {
    font-size: 22px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 1rem;
}

.empty-description {
    font-size: 15px;
    line-height: 1.6;
    color: #6c757d;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.empty-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 350px;
    margin: 0 auto;
}

.empty-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: left;
    font-size: 14px;
    color: #495057;
}

.feature-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #28a745;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.results-display {
    animation: fadeIn 0.4s ease;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.result-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.result-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.result-item.primary {
    border-color: #007bff;
    background: linear-gradient(135deg, #e7f3ff 0%, #ffffff 100%);
}

.result-item.secondary {
    border-color: #6c757d;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.result-item.accent {
    border-color: #28a745;
    background: linear-gradient(135deg, #e8f5e9 0%, #ffffff 100%);
}

.result-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.result-item.primary .result-icon {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.result-item.secondary .result-icon {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.result-item.accent .result-icon {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.result-content {
    flex: 1;
}

.result-label {
    font-size: 13px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.result-value {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    font-variant-numeric: tabular-nums;
}

/* Interpretation Box */
.interpretation-box {
    background: linear-gradient(135deg, #fff3cd 0%, #ffffff 100%);
    border-left: 4px solid #ffc107;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.interpretation-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.interpretation-icon {
    font-size: 24px;
}

.interpretation-title {
    font-size: 18px;
    font-weight: 600;
    color: #856404;
}

.interpretation-text {
    font-size: 15px;
    color: #856404;
    line-height: 1.6;
}

/* Significance Levels */
.significance-levels {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
}

.significance-title {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 1rem;
    display: block;
}

.significance-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.significance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.sig-level {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.sig-desc {
    font-size: 13px;
    color: #6c757d;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .results-section {
        position: static;
    }
}

@media (max-width: 768px) {
    .calc-card {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .calc-title {
        font-size: 24px;
    }

    .test-type-selector {
        grid-template-columns: 1fr;
    }

    .input-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-calculate,
    .btn-clear {
        width: 100%;
    }

    .empty-state {
        padding: 2rem 1rem;
    }

    .empty-icon {
        font-size: 48px;
    }

    .empty-title {
        font-size: 20px;
    }

    .empty-description {
        font-size: 14px;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .result-value {
        font-size: 24px;
    }

    .significance-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .calc-card {
        padding: 1.25rem;
    }

    .test-type-btn {
        padding: 1.25rem;
    }

    .btn-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .input-field {
        padding: 0.875rem 1rem;
    }

    .result-item {
        padding: 1.25rem;
    }

    .result-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}
