/* İnfüzyon Hesaplama CSS */
.infuzyon-hesaplama-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
}

.infuzyon-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.infuzyon-header h2 {
    color: #dc3545;
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.infuzyon-header p {
    color: #6c757d;
    font-size: 16px;
    margin: 0;
}

/* Adım Göstergesi */
.adim-gostergesi {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
}

.adim-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    z-index: 2;
}

.adim-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.adim-item.aktif::after {
    background: #dc3545;
}

.adim-numarasi {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.adim-item.aktif .adim-numarasi {
    background: #dc3545;
    color: white;
}

.adim-item.tamamlandi .adim-numarasi {
    background: #28a745;
    color: white;
}

.adim-baslik {
    font-size: 12px;
    color: #6c757d;
    text-align: center;
    font-weight: 500;
    line-height: 1.2;
}

.adim-item.aktif .adim-baslik {
    color: #dc3545;
    font-weight: 600;
}

.adim-item.tamamlandi .adim-baslik {
    color: #28a745;
    font-weight: 600;
}

/* Form Stilleri */
.infuzyon-form {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.form-section {
    padding: 30px;
}

.form-section h3 {
    color: #dc3545;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 25px 0;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #dc3545;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* İlaç Seçimi */
.ilac-arama-container {
    margin-bottom: 20px;
}

.ilac-arama-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.ilac-arama-input:focus {
    outline: none;
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.ilac-listesi-container {
    max-height: 300px;
    overflow-y: auto;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 20px;
}

.ilac-listesi {
    padding: 0;
    margin: 0;
}

.ilac-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.3s ease;
    font-size: 14px;
}

.ilac-item:hover {
    background: #f8f9fa;
    color: #dc3545;
}

.ilac-item:last-child {
    border-bottom: none;
}

.secilen-ilac-container {
    margin-bottom: 20px;
}

.secilen-ilac-container input {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
}

/* Buton Stilleri */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    gap: 15px;
}

.sonraki-btn,
.onceki-btn,
.hesapla-btn,
.temizle-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sonraki-btn {
    background: #dc3545;
    color: white;
    margin-left: auto;
}

.sonraki-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.onceki-btn {
    background: #6c757d;
    color: white;
}

.onceki-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.hesapla-btn {
    background: #dc3545;
    color: white;
    font-size: 16px;
    padding: 15px 30px;
}

.hesapla-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.hesapla-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.temizle-btn {
    background: #6c757d;
    color: white;
}

.temizle-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* Sonuçlar */
.sonuclar-container {
    margin-top: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.sonuclar-header {
    background: #dc3545;
    color: white;
    padding: 20px 30px;
}

.sonuclar-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.sonuclar-icerik {
    padding: 30px;
}

.result-section {
    margin-bottom: 30px;
}

.result-section:last-child {
    margin-bottom: 0;
}

.result-section h4 {
    color: #dc3545;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.result-item {
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.result-item strong {
    color: #495057;
    font-weight: 600;
}

/* Tab Sistemi Stilleri */
.tab-navigation {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: #f8f9fa;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.tab-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.tab-btn.active {
    background: #dc3545;
    color: white;
    border-bottom-color: #dc3545;
}

.tab-content-container {
    position: relative;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
}

.tab-content .result-grid {
    padding: 20px;
    background: white;
    border-radius: 0 0 8px 8px;
    border: 1px solid #e9ecef;
    border-top: none;
}

/* Mesaj Stilleri */
.message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .infuzyon-hesaplama-container {
        padding: 15px;
    }
    
    .adim-gostergesi {
        flex-direction: column;
        gap: 20px;
    }
    
    .adim-item:not(:last-child)::after {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .sonraki-btn,
    .onceki-btn,
    .hesapla-btn,
    .temizle-btn {
        width: 100%;
        justify-content: center;
    }
    
    .result-grid {
        grid-template-columns: 1fr;
    }
    
    .adim-baslik {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .form-section {
        padding: 20px;
    }
    
    .sonuclar-icerik {
        padding: 20px;
    }
    
    .infuzyon-header h2 {
        font-size: 24px;
    }
}

/* Animasyonlar */
.form-section {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Durumu */
.hesapla-btn.loading {
    position: relative;
    color: transparent;
}

.hesapla-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scroll Bar Stilleri */
.ilac-listesi-container::-webkit-scrollbar {
    width: 8px;
}

.ilac-listesi-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.ilac-listesi-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.ilac-listesi-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
} 