/* Hesaplama Modülleri Ortak Stilleri */
.calc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.calc-header {
    text-align: center;
    margin-bottom: 3rem;
}

.calc-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.calc-header p {
    color: #6b7280;
    font-size: 1.1rem;
}

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

.calc-form-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border: 1px solid #f3f4f6;
}

.calc-form-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calc-form-card h2::before {
    content: "ð";
    font-size: 1.8rem;
    color: #667eea;
}

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

.calc-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

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

.calc-input-group {
    position: relative;
}

.calc-input-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.calc-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.calc-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.calc-input:hover {
    border-color: #d1d5db;
}

.calc-calculate-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.calc-calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

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

.calc-results-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border: 1px solid #f3f4f6;
    min-height: 400px;
}

.calc-results-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calc-results-card h2::before {
    content: "ð";
    font-size: 1.8rem;
    color: #10b981;
}

.calc-no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: #9ca3af;
}

.calc-no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.calc-results-grid {
    display: grid;
    gap: 1.5rem;
}

.calc-result-item {
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

/* Module-specific color classes */
.calc-result-item.primary {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #3b82f6;
}

.calc-result-item.secondary {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: #10b981;
}

.calc-result-item.tertiary {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
}

.calc-result-item.total {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    border-color: #8b5cf6;
    position: relative;
    overflow: hidden;
}

.calc-result-item.total::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8b5cf6, #ec4899, #8b5cf6);
    background-size: 200% 100%;
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.calc-result-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.calc-result-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.calc-result-item.primary .calc-result-value {
    color: #1e40af;
}

.calc-result-item.secondary .calc-result-value {
    color: #047857;
}

.calc-result-item.tertiary .calc-result-value {
    color: #d97706;
}

.calc-result-item.total .calc-result-value {
    color: #6d28d9;
}

.calc-sticky-result {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    padding: 1.5rem;
    border: 2px solid #8b5cf6;
    z-index: 1000;
    min-width: 250px;
    transform: translateY(150%);
    transition: transform 0.3s ease;
}

.calc-sticky-result.show {
    transform: translateY(0);
}

.calc-sticky-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calc-sticky-title {
    font-weight: 600;
    color: #1f2937;
}

.calc-sticky-close {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.calc-sticky-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.calc-sticky-content {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
}

.calc-sticky-label {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.calc-sticky-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #6d28d9;
}

/* Responsive */
@media (max-width: 768px) {
    .calc-main-grid {
        grid-template-columns: 1fr;
    }
    
    .calc-input-grid {
        grid-template-columns: 1fr;
    }
    
    .calc-sticky-result {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        min-width: auto;
    }
    
    .calc-header h1 {
        font-size: 2rem;
    }
    
    .calc-result-value {
        font-size: 2rem;
    }
}

/* Loading state */
.calc-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f4f6;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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