/* WaxFlow Sidebar Stilleri - Sade Beyaz-Gri-Mavi Tema */

/* Rubik Font Ailesi */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700&display=swap');

/* Genel Font Ailesi */
body, html {
    font-family: 'Rubik', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.sidebar {
    background: #f8f9fa;
    min-height: 100vh;
    color: #495057;
    border-right: 1px solid #dee2e6;
}

.sidebar .nav-link {
    color: #6c757d;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 2px 0;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    color: #0d6efd;
    background: #e3f2fd;
    transform: translateX(5px);
}

.sidebar .nav-link i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.sidebar h4 {
    color: #495057;
    font-weight: 600;
}

.sidebar hr {
    border-color: #dee2e6;
    margin: 1rem 0;
}

/* Ana içerik alanı */
.main-content {
    background: #ffffff;
    min-height: 100vh;
}

/* Kart stilleri */
.card {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    color: #495057;
}

/* Buton stilleri */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-success {
    background-color: #198754;
    border-color: #198754;
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.btn-info {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
    color: #000;
}

/* Form stilleri */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Tablo stilleri */
.table {
    border-color: #dee2e6;
}

.table th {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #495057;
    font-weight: 600;
}

.table td {
    border-color: #dee2e6;
}

/* Alert stilleri */
.alert-success {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffecb5;
    color: #664d03;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #055160;
}

/* Badge stilleri */
.badge {
    font-size: 0.75em;
}

.bg-primary {
    background-color: #0d6efd !important;
}

.bg-success {
    background-color: #198754 !important;
}

.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

.bg-danger {
    background-color: #dc3545 !important;
}

.bg-info {
    background-color: #0dcaf0 !important;
    color: #000 !important;
}

/* İstatistik kartları */
.stat-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #dee2e6;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.stat-card.primary { 
    border-left: 4px solid #0d6efd; 
}

.stat-card.success { 
    border-left: 4px solid #198754; 
}

.stat-card.warning { 
    border-left: 4px solid #ffc107; 
}

.stat-card.info { 
    border-left: 4px solid #0dcaf0; 
}

.stat-card.danger { 
    border-left: 4px solid #dc3545; 
}

/* Cari kartları */
.cari-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #dee2e6;
    transition: transform 0.3s;
}

.cari-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Borç durumu renkleri */
.bakiye-pozitif { 
    color: #dc3545; 
}

.bakiye-negatif { 
    color: #198754; 
}

.bakiye-sifir { 
    color: #6c757d; 
}

/* Rapor kartları */
.report-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #dee2e6;
    transition: transform 0.3s;
}

.report-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Ayarlar kartları */
.setting-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #dee2e6;
    margin-bottom: 20px;
}

/* Modern Dashboard Kartları */
.modern-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: none;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.modern-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.modern-card .card-body {
    padding: 1.5rem;
    background: white;
}

.modern-card h3 {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.modern-card p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

/* Kart Renkleri */
.modern-card.gelen-kulce .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.modern-card.verilen-petek .card-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.modern-card.petek-borc .card-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.modern-card.kulce-borc .card-header {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.modern-card.toplam-cari .card-header {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.modern-card.bu-ay-kulce .card-header {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.modern-card.bu-ay-petek .card-header {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.modern-card.net-bakiye .card-header {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.modern-card.cari-bilgi .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Büyük Cari Kartı */
.modern-card.cari-buyuk {
    min-height: 200px;
}

.modern-card.cari-buyuk .card-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.modern-card.cari-buyuk .card-body {
    padding: 2rem;
}

.modern-card.cari-buyuk h4 {
    font-size: 1.5rem;
    font-weight: 600;
}

.modern-card.cari-buyuk .fa-2x {
    font-size: 2.5rem;
    opacity: 0.8;
}

/* Cari Bilgi Detayları */
.cari-bilgi-detay {
    margin-top: 0.5rem;
}

.cari-bilgi-detay p {
    margin-bottom: 0.25rem;
}

.cari-bilgi-detay .fas {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .modern-card {
        margin-bottom: 1rem;
    }
    
    .modern-card .card-header {
        padding: 0.75rem;
    }
    
    .modern-card .card-body {
        padding: 1rem;
    }
    
    .modern-card h3 {
        font-size: 1.5rem;
    }
}

/* Popup Mesajları */
.popup-message {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: slideInRight 0.3s ease-out;
    display: none;
}

.popup-content {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.popup-content i {
    font-size: 20px;
    flex-shrink: 0;
}

.popup-content span {
    flex: 1;
    font-weight: 500;
    line-height: 1.4;
}

.popup-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.popup-close:hover {
    background-color: rgba(0,0,0,0.1);
}

/* Başarı mesajı */
.success-popup {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.success-popup .popup-close:hover {
    background-color: rgba(255,255,255,0.2);
}

/* Hata mesajı */
.error-popup {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    color: white;
}

.error-popup .popup-close:hover {
    background-color: rgba(255,255,255,0.2);
}

/* Uyarı mesajı */
.warning-popup {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: #212529;
}

.warning-popup .popup-close:hover {
    background-color: rgba(0,0,0,0.1);
}

/* Animasyonlar */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive popup */
@media (max-width: 768px) {
    .popup-message {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
}

/* Onay Popup'ları */
.confirmation-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
}

.confirmation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.confirmation-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 400px;
    max-width: 500px;
    animation: confirmationSlideIn 0.3s ease-out;
}

.confirmation-header {
    padding: 20px 25px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.confirmation-header h5 {
    margin: 0;
    color: #333;
    font-weight: 600;
}

.confirmation-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.confirmation-close:hover {
    background-color: #f5f5f5;
    color: #333;
}

.confirmation-body {
    padding: 25px;
    text-align: center;
}

.confirmation-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: pulse 2s infinite;
}

.confirmation-icon i {
    font-size: 24px;
    color: white;
}

.confirmation-body p {
    margin: 0;
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

.confirmation-footer {
    padding: 15px 25px 25px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.confirmation-footer .btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

.confirmation-cancel {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

.confirmation-cancel:hover {
    background-color: #5a6268;
    border-color: #545b62;
    transform: translateY(-1px);
}

.confirmation-confirm {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.confirmation-confirm:hover {
    background-color: #c82333;
    border-color: #bd2130;
    transform: translateY(-1px);
}

/* Animasyonlar - Optimize edildi */

/* Responsive onay popup */
@media (max-width: 768px) {
    .confirmation-modal {
        min-width: 90%;
        max-width: 90%;
        margin: 20px;
    }
    
    .confirmation-footer {
        flex-direction: column;
    }
    
    .confirmation-footer .btn {
        width: 100%;
    }
}

/* Cariler Tablosu */
.cariler-table {
    max-height: 450px; /* Daha dar yükseklik */
    overflow-y: auto;
}

/* Cariler tablosu satır yüksekliği */
.cariler-table tbody tr {
    height: 45px; /* Satır yüksekliğini daralt */
}

.cariler-table tbody td {
    padding: 8px 12px; /* Daha az padding */
    vertical-align: middle;
    font-size: 14px; /* Standart font boyutu */
    color: #495057; /* Standart renk */
    font-weight: 400; /* Standart font kalınlığı */
}

/* Data tablo başlık stilleri */
.cariler-table thead th {
    font-size: 14px;
    color: #495057;
    font-weight: 600;
    background-color: #f8f9fa;
}

/* Data tablo genel stilleri */
.cariler-table {
    font-size: 14px;
    color: #495057;
}

.cariler-table tbody tr {
    color: #495057;
}

.cariler-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Firma adı rengi - gri */
.cariler-table .text-primary {
    color: #6c757d !important; /* Gri renk */
}

/* Hareketler tablosu stilleri */
.hareketler-table {
    max-height: 450px; /* Daha dar yükseklik */
    overflow-y: auto;
}

.hareketler-table tbody tr {
    height: 45px; /* Satır yüksekliğini daralt */
}

.hareketler-table tbody td {
    padding: 8px 12px; /* Daha az padding */
    vertical-align: middle;
    font-size: 14px; /* Standart font boyutu */
    color: #495057; /* Standart renk */
    font-weight: 400; /* Standart font kalınlığı */
}

.hareketler-table thead th {
    font-size: 14px;
    color: #495057;
    font-weight: 600;
    background-color: #f8f9fa;
}

.hareketler-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Hareket düzenleme popup stilleri */
.edit-hareket-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.edit-hareket-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.edit-hareket-body {
    padding: 20px;
}

.confirmation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.cariler-table tbody {
    max-height: 500px;
    overflow-y: auto;
}

.cariler-table tbody tr {
    height: 40px; /* Her satır için sabit yükseklik */
}

.cariler-table tbody tr td {
    vertical-align: middle;
    padding: 8px 12px;
}

/* Pagination Container */
.pagination-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px 20px;
    border: 1px solid #e9ecef;
}

.pagination-info {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.pagination-info i {
    color: #007bff;
}

/* Modern Pagination */
.pagination {
    margin: 0;
}

.pagination .page-link {
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 8px 12px;
    margin: 0 2px;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.pagination .page-link:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-color: #007bff;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.pagination .page-item.active .page-link:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-1px);
}

.pagination .page-link i {
    font-size: 12px;
}

/* Responsive Pagination */
@media (max-width: 768px) {
    .pagination-container .row {
        flex-direction: column;
        gap: 15px;
    }
    
    .pagination-container .col-md-6 {
        width: 100%;
        text-align: center;
    }
    
    .pagination {
        justify-content: center !important;
    }
    
    .pagination .page-link {
        padding: 6px 10px;
        min-width: 35px;
        height: 35px;
        font-size: 12px;
    }
}

/* Edit Cari Popup */
.edit-cari-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
}

.edit-cari-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 500px;
    max-width: 600px;
    animation: confirmationSlideIn 0.3s ease-out;
}

.edit-cari-body {
    padding: 25px;
    max-height: 70vh;
    overflow-y: auto;
}

.edit-cari-body .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.edit-cari-body .form-control {
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 10px 12px;
    transition: all 0.2s ease;
}

.edit-cari-body .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.edit-cari-body textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* Responsive Edit Popup */
@media (max-width: 768px) {
    .edit-cari-modal {
        min-width: 90%;
        max-width: 90%;
        margin: 20px;
    }
    
    .edit-cari-body {
        padding: 20px;
    }
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    min-height: 40px;
}

.action-buttons .btn {
    width: 35px;
    height: 35px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    border-width: 1px;
}

.action-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.action-buttons .btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
}

.action-buttons .btn-outline-primary:hover {
    background-color: #007bff;
    color: white;
}

.action-buttons .btn-outline-success {
    color: #28a745;
    border-color: #28a745;
}

.action-buttons .btn-outline-success:hover {
    background-color: #28a745;
    color: white;
}

.action-buttons .btn-outline-info {
    color: #17a2b8;
    border-color: #17a2b8;
}

.action-buttons .btn-outline-info:hover {
    background-color: #17a2b8;
    color: white;
}

.action-buttons .btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
}

.action-buttons .btn-outline-danger:hover {
    background-color: #dc3545;
    color: white;
}

.action-buttons .btn-outline-warning {
    color: #ffc107;
    border-color: #ffc107;
}

.action-buttons .btn-outline-warning:hover {
    background-color: #ffc107;
    color: #212529;
}

.action-buttons .btn i {
    font-size: 14px;
}

/* Responsive Action Buttons */
@media (max-width: 768px) {
    .action-buttons {
        gap: 3px;
    }
    
    .action-buttons .btn {
        width: 30px;
        height: 30px;
    }
    
    .action-buttons .btn i {
        font-size: 12px;
    }
}

/* Sıralama Linkleri */
.sort-link {
    color: #495057;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: 600;
}

.sort-link:hover {
    color: #007bff;
    background-color: #f8f9fa;
    text-decoration: none;
}

.sort-link i {
    font-size: 12px;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.sort-link:hover i {
    opacity: 1;
    color: #007bff;
}

/* Tablo başlık hizalama */
.table th {
    vertical-align: middle;
    border-bottom: 2px solid #dee2e6;
}

.table th .d-flex {
    align-items: center;
    justify-content: space-between;
}

/* Responsive sıralama */
@media (max-width: 768px) {
    .sort-btn {
        width: 20px;
        height: 20px;
    }
    
    .sort-btn i {
        font-size: 10px;
    }
}

/* Login sayfası */
.login-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #dee2e6;
}

.login-header {
    background: #f8f9fa;
    color: #495057;
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
}

.login-body {
    padding: 2rem;
}

.btn-login {
    background: #0d6efd;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
}

.btn-login:hover {
    background: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}
