/* Yeni Vizit Sistemi CSS Stilleri */

/* Evrak Yükleme Alanları */
.document-upload-area {
    min-height: 60px;
    border: 2px dashed #ddd;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.document-upload-area:hover {
    border-color: #337ab7;
    background-color: #f9f9f9;
}

/* Yüklenmiş Dosya Görünümü */
.uploaded-file {
    padding: 8px 12px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.uploaded-file .fa-check-circle {
    margin-right: 8px;
    font-size: 16px;
}

.uploaded-file .file-name {
    flex-grow: 1;
    font-weight: 500;
}

.uploaded-file .remove-document {
    margin-left: 10px;
}

/* Dosya Yükleme Placeholder */
.upload-placeholder {
    text-align: left;
}

.upload-placeholder .form-control {
    margin-bottom: 5px;
}

.upload-placeholder small {
    display: block;
    font-style: italic;
}

/* Panel Başlıkları */
.panel-title {
    font-weight: 600;
}

.panel-title .fa {
    margin-right: 8px;
    color: #337ab7;
}

/* Durum Etiketleri */
.label-success {
    background-color: #5cb85c;
}

.label-warning {
    background-color: #f0ad4e;
}

/* 2. Vizit Notları Alanı */
#visit_2_notes_container {
    transition: all 0.3s ease;
}

/* Evrak Kontrol Butonu */
#check_documents {
    margin-top: 15px;
    font-weight: 600;
}

/* Vizit Ekleme Butonları */
.btn-xs {
    font-size: 11px;
    padding: 2px 8px;
}

/* Panel Renk Düzenlemeleri */
.panel-info .panel-heading {
    background-color: #d9edf7;
    border-color: #bce8f1;
}

.panel-warning .panel-heading {
    background-color: #fcf8e3;
    border-color: #faebcc;
}

/* Vizit Yönetim Panelleri */
#visit_2_management_container, #revision_management_container {
    transition: all 0.5s ease;
}

/* Alt Panel Başlıkları */
.panel h5.panel-title {
    font-size: 14px;
    font-weight: 600;
}

/* Tarih Seçici */
#visit_2_date_container {
    transition: all 0.3s ease;
}

/* 3. Vizit Paneli */
.panel-success .panel-heading {
    background-color: #dff0d8;
    border-color: #d6e9c6;
    color: #3c763d;
}

/* Vizit Bazlı Ürün Sistemi */
.visit-type {
    background-color: #f9f9f9;
    font-weight: bold;
    text-align: center;
}

.visit-type[data-visit="visit_1"] {
    background-color: #e8f5e8;
    color: #2d7a2d;
}

.visit-type[data-visit="visit_2"] {
    background-color: #e7f3ff;
    color: #2e5cb8;
}

.visit-type[data-visit="visit_3"] {
    background-color: #ffe8e8;
    color: #c84949;
}

.visit-type[data-visit="revision"] {
    background-color: #fff4e6;
    color: #b7730a;
}

/* Ödeme Butonları */
.btn-group.dropup .dropdown-menu {
    min-width: 220px;
}

.btn-group.dropup .dropdown-menu li a {
    padding: 10px 15px;
}

.btn-group.dropup .dropdown-menu li a i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* Modal Düzenlemeleri */
.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* Vizit Ürün Ekleme Paneli */
.panel-info .panel-body {
    background-color: #f9fdff;
}

/* Ödeme Modalı */
#partial_payment_modal .form-control:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Upload Progress Stilleri */
.upload-progress {
    margin-top: 10px;
}

.upload-progress .progress {
    height: 8px;
    background-color: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
}

.upload-progress .progress-bar {
    background-color: #5cb85c;
    transition: width 0.3s ease;
}

/* Evrak Önizleme Butonları */
.uploaded-file .btn-group {
    display: flex;
    gap: 2px;
}

.uploaded-file .btn-group .btn {
    padding: 2px 6px;
    font-size: 11px;
}

/* Evrak Durumu İyileştirmeleri */
.document-upload-area.uploading {
    border-color: #5bc0de;
    background-color: #f0f9ff;
}

.document-upload-area.error {
    border-color: #d9534f;
    background-color: #fdf2f2;
}

.document-upload-area.success {
    border-color: #5cb85c;
    background-color: #f0fff0;
}

/* Responsive Düzenlemeler */
@media (max-width: 768px) {
    .document-upload-area {
        min-height: 50px;
        padding: 8px;
    }
    
    .uploaded-file {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .uploaded-file .btn-group {
        margin-top: 5px;
        align-self: flex-end;
    }
    
    .btn-xs {
        font-size: 10px;
        padding: 1px 6px;
    }
    
    .visit-type {
        font-size: 12px;
    }
    
    .btn-group.dropup .dropdown-menu {
        min-width: 180px;
    }
}

/* Import Durumu Stilleri */
.import-status-badge {
    text-align: center;
    padding: 5px;
    border-radius: 4px;
    margin: 2px 0;
}

.import-status-badge.new-import {
    background-color: #f8f9fa;
    border: 1px solid #28a745;
    animation: pulse-new 2s infinite;
}

.import-status-badge.updated-import {
    background-color: #f8f9fa;
    border: 1px solid #17a2b8;
    animation: pulse-updated 2s infinite;
}

.import-status-badge .badge {
    font-size: 10px;
    font-weight: bold;
    margin-top: 2px;
    display: block;
}

.import-status-badge small {
    font-size: 9px;
    margin-top: 2px;
}

.import-status-badge i {
    font-size: 16px;
    margin-bottom: 2px;
}

/* Animasyonlar */
@keyframes pulse-new {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

@keyframes pulse-updated {
    0% {
        box-shadow: 0 0 0 0 rgba(23, 162, 184, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(23, 162, 184, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(23, 162, 184, 0);
    }
}

/* Mobil uyumluluk */
@media (max-width: 768px) {
    .import-status-badge {
        padding: 3px;
    }
    
    .import-status-badge i {
        font-size: 14px;
    }
    
    .import-status-badge .badge {
        font-size: 9px;
    }
    
    .import-status-badge small {
        font-size: 8px;
    }
}

/* Tablo satırlarında özel görünüm */
.has-row-options .import-status-badge {
    min-width: 100px;
}

/* Hover efekti */
.import-status-badge:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
} 