footer {
    background-color: #343a40;
    color: #ffffff;
    padding: 3rem 0;
}

footer h5 {
    text-transform: uppercase;
}

footer hr {
    border-top: 1px solid #ffffff;
}

footer .list-unstyled a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

footer .list-unstyled a:hover {
    color: #ffffff;
    text-decoration: underline;
}

footer .bg-primary {
    background-color: #0088cc;
    margin-top: 3rem;
}

footer .bg-primary p {
    margin: 0;
}


/* Footer Whatsapp */

.whatsapp-button {
    position: fixed;
    bottom: 120px;
    right: 20px;
    background-color: #25d366;
    color: #fff;
    padding: 12px 16px;
    border-radius: 50px;
    text-decoration: none;
    z-index: 1000;
    font-size: 1.5em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}


/* Topbar */

#top-bar {
    z-index: 1030;
}

#top-bar a {
    text-decoration: none;
}

/* PC ve Tablet Stilleri */
#top-bar .container {
    display: flex;
    justify-content: space-between; /* Sol ve sağ içerikleri yatayda eşit dağıt */
    align-items: center; /* Dikeyde ortala */
}

#top-bar .top-bar-left,
#top-bar .top-bar-right {
    display: flex;
    align-items: center;
}

#top-bar .top-bar-right {
    margin-left: auto; /* Sağa yasla */
}

/* Butonlar arası boşluk eklendi */
#top-bar .top-bar-right > a,
#top-bar .top-bar-right > .btn {
    margin-left: 10px; /* Butonlar arasında boşluk */
}

#top-bar .top-bar-right > a:first-child,
#top-bar .top-bar-right > .btn:first-child {
    margin-left: 0; /* İlk buton için sol boşluk sıfırlanır */
}

/* Turuncu Buton */
#top-bar .top-bar-right > a.btn-custom {
    background-color: #ff5722; /* Turuncu arka plan rengi */
    color: #fff; /* Yazı rengi */
    border: 1px solid #fff; /* Beyaz çerçeve eklendi */
}

#top-bar .top-bar-right > a.btn-custom:hover {
    background-color: #e64a19; /* Hover rengi (daha koyu turuncu) */
}

/* Mobil Stilleri */
@media (max-width: 768px) {
    #top-bar {
        background-color: #f8f9fa; /* Arka plan rengi */
        padding: 10px 0; /* Üst ve alt boşluk */
        position: static; /* Sticky özelliğini kaldır */
    }

    #top-bar .container {
        flex-direction: column;
        align-items: center; /* İçeriği ortala */
    }

    #top-bar .top-bar-left > div,
    #top-bar .top-bar-right > a,
    #top-bar .top-bar-right > .btn {
        display: flex;
        align-items: center;
        justify-content: center; /* İçeriği ortala */
        background-color: #007bff; /* Her bar için arka plan */
        color: #fff; /* Yazı rengi */
        padding: 10px; /* İç boşluk */
        margin: 5px 0; /* Alt ve üst boşluk */
        border-radius: 5px; /* Yuvarlatılmış köşeler */
        text-decoration: none; /* Bağlantı alt çizgisi kaldır */
        font-size: 12px; /* Yazı boyutu */
        width: auto; /* Buton genişliği içeriğe göre ayarlanır */
    }

    /* Butonlar arası boşluk mobil için */
    #top-bar .top-bar-right {
        display: flex;
        flex-direction: row; /* Butonları yan yana yerleştir */
        justify-content: center; /* Butonları ortala */
        width: 100%; /* Genişliği tam yap */
    }

    #top-bar .top-bar-right > a,
    #top-bar .top-bar-right > .btn {
        margin: 5px; /* Butonlar arasına boşluk eklendi */
    }

    #top-bar .top-bar-left > div i,
    #top-bar .top-bar-right > a i {
        margin-right: 8px; /* İkon ve metin arasında boşluk */
    }

    #top-bar .top-bar-right > a.btn,
    #top-bar .top-bar-right > .btn {
        background-color: #28a745; /* Buton için farklı arka plan rengi */
    }

    #top-bar .top-bar-right > a.btn:hover,
    #top-bar .top-bar-right > .btn:hover {
        background-color: #218838; /* Hover rengi */
    }

    /* Turuncu Buton Mobil Stili */
    #top-bar .top-bar-right > a.btn-custom {
        background-color: #ff5722; /* Turuncu arka plan rengi */
        border: 1px solid #fff; /* Beyaz çerçeve eklendi */
    }

    #top-bar .top-bar-right > a.btn-custom:hover {
        background-color: #e64a19; /* Hover rengi (daha koyu turuncu) */
    }
}

/* Sidebar */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}
.sidebar {
  height: 100vh;
  width: 50px;
  position: fixed;
  top: 0;
  left: 0;
  background: linear-gradient(90deg, #007bff, #0056b3);
  color: #fff;
  overflow-x: hidden;
  transition: all 0.3s ease;
  z-index: 1030;
}
.sidebar:hover {
  width: 250px;
}
.sidebar img.logo-collapsed {
  display: block;
}
.sidebar img.logo-expanded {
  display: none;
}
.sidebar:hover img.logo-collapsed {
  display: none;
}
.sidebar:hover img.logo-expanded {
  display: block;
}
.sidebar a {
  color: #fff;
  text-decoration: none;
  padding: 10px 5px;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease, transform 0.3s ease; /* background-color geçişini kaldırdık */
}
.sidebar a i {
  margin-left: 10px;
}
.sidebar:hover a span {
  display: inline;
  margin-left: 10px;
}
.sidebar a span {
  display: none;
}
.sidebar a:hover {
  /* background-color: #495057; */ /* Hover arka plan rengini kaldırdık */
  transform: translateX(5px); /* Sadece kayma efektini bıraktık */
}
.sidebar a:active {
  /* background-color: #6c757d; */ /* Active arka plan rengini kaldırdık */
  transform: scale(0.98);
}
.sidebar .search-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.sidebar .search-icon i {
  font-size: 20px;
}
.sidebar:hover .search-icon {
  display: none;
}
.sidebar .search-box {
  padding: 10px 20px;
  display: none;
}
.sidebar:hover .search-box {
  display: block;
}
.sidebar .search-box input {
  width: 100%;
  padding: 5px;
  border-radius: 5px;
  border: none;
  outline: none;
}
.content {
  margin-left: 40px;
  padding: 20px;
  flex: 1;
  transition: margin-left 0.3s ease;
}
.sidebar:hover ~ .content {
  margin-left: 240px;
}
.navbar {
  position: sticky;
  top: 0;
  z-index: 1050;
}
.mobile-menu {
  display: none;
}

@media (max-width: 768px) {
  body {
    flex-direction: column;
  }

  .sidebar {
    display: none;
  }

  .mobile-menu {
    display: block;
    position: sticky;
    top: 0;
    background: linear-gradient(90deg, #007bff, #0056b3);
    color: #fff;
    z-index: 1050;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
  }

  .mobile-menu .dropdown-menu {
    width: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    color: #fff;
    margin: 0;
    padding: 15px;
    border: none;
  }

  .mobile-menu .dropdown-menu a {
    display: block;
    padding: 12px 18px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease;
    background-color: transparent; /* Varsayılanı şeffaf */
  }

  .mobile-menu .dropdown-menu a:hover {
    background-color: #495057; /* Hover’da hafif siyah */
  }

  /* Active menüye hover efektiyle aynı rengi verme */
  .mobile-menu .dropdown-menu a:active,
  .mobile-menu .dropdown-menu a:focus,
  .mobile-menu .dropdown-menu a.active {
    background-color: #495057 !important; /* Hover ile aynı hafif siyah */
    color: #fff !important; /* Yazı rengi beyaz kalsın */
  }

  .content {
    margin-left: 0;
    padding: 15px;
  }

  .mobile-menu .dropdown-menu li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 18px;
  }

  .mobile-menu .dropdown-menu li::before {
    content: '';
    width: 5px;
    height: 18px;
    background-color: #ffc107;
    margin-right: 8px;
    border-radius: 3px;
  }

  .mobile-menu .dropdown-menu li:hover::before {
    background-color: #17a2b8;
  }

  #mobileMenuContent {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background: linear-gradient(90deg, #007bff, #0056b3);
    z-index: 1050;
    display: none;
  }

  .close-button {
    position: absolute;
    top: 40px;
    right: 20px;
    color: #ff0000;
    font-size: 40px;
    cursor: pointer;
    z-index: 1060;
  }
}

/* index */

        body {
            background-color: #f8f9fa;
            color: #333;
            line-height: 1.6;
        }
        .hero {
            background: linear-gradient(90deg, #2c3e50, #3498db);
            color: white;
            padding: 5rem 0;
        }
        .feature-card {
            transition: transform 0.3s;
        }
        .feature-card:hover {
            transform: translateY(-10px);
        }
        .highlight {
            background-color: #e9ecef;
            padding: 3rem;
        }
        footer {
            background-color: #2c3e50;
            color: white;
        }

/* dashboard */

		.dashboard {
            
        }
        .card {
            flex: 1 1 100%; /* Tam genişlik */
            background: #fff;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            padding: 20px;
            transition: transform 0.3s;
        }
        .card:hover {
            transform: translateY(-5px);
        }
        .card h3 {
            margin-bottom: 20px;
            font-size: 1.5rem;
            text-align: center;
        }
        .card table {
            width: 100%;
            border-collapse: collapse;
        }
        .card table th, .card table td {
            padding: 10px;
            text-align: left;
            border-bottom: 1px solid #ddd;
        }
        .card table th {
            background: #f4f4f9;
            font-weight: bold;
        }
        .phone a {
            color: #007BFF;
            text-decoration: none;
        }
        .phone a:hover {
            text-decoration: underline;
        }
        .date {
            color: #555;
            font-weight: bold;
        }

/* mainpage-edit */

.editable:hover { background-color: #f8f9fa; cursor: pointer; }
        .toggle-switch { position: relative; display: inline-block; width: 60px; height: 34px; }
        .toggle-switch input { opacity: 0; width: 0; height: 0; }
        .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; }
        .slider:before { position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
        input:checked + .slider { background-color: #28a745; }
        input:checked + .slider:before { transform: translateX(26px); }

/* general-settings */

.status-message { font-size: 0.9em; margin-left: 10px; display: none; }
        .success { color: #28a745; }
        .error { color: #dc3545; }

/* tablo stilleri */

    .invoice-container {
        max-width: 1400px;
        padding: 20px;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 6px 20px rgba(0,0,0,0.08);
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }
    .invoice-header {
        background: linear-gradient(135deg, #e9ecef, #dee2e6);
        padding: 10px;
        border-radius: 10px 10px 0 0;
    }
    .invoice-header .row {
        font-size: 15px;
        color: #495057;
    }
    .invoice-header strong {
        color: #212529;
    }
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border: 1px solid #dee2e6;

    }
    .invoice-table {
        width: 100%;
        min-width: 1000px;
        border-collapse: collapse;
    }
    .invoice-table th, .invoice-table td {
        padding: 5px;
        text-align: center;
        border-bottom: 1px solid #e9ecef;
    }
    .invoice-table th {
        background: #6c757d;
        color: #fff;
        font-weight: 600;
    }
    .invoice-table tbody tr:hover {
        background: #f8f9fa;
    }
    .invoice-table tfoot {
        background: #f1f3f5;
        font-size: 14px;
    }
    .invoice-table tfoot td {
        padding: 12px;
        border-top: 2px solid #dee2e6;
    }
    .action-bar {
        padding: 10px 0;
        background: #f8f9fa;
        border-bottom: 1px solid #dee2e6;
    }
    .action-bar .btn {
        margin: 0 8px;
        padding: 6px 18px;
        font-size: 14px;
        border-radius: 20px;
        transition: all 0.2s;
    }
    .action-bar .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    .pagination {
        justify-content: center;
        margin-top: 25px;
    }
    .pagination .page-link {
        color: #495057;
        border-radius: 5px;
        margin: 0 3px;
    }
    .pagination .page-item.active .page-link {
        background: #007bff;
        border-color: #007bff;
    }
    .counter-box {
            background: #fff;
            padding: 5px;
            border-radius: 8px;
            text-align: center;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }
        .counter-box h5 {
            font-size: 1rem;
            margin-bottom: 5px;
        }
        .counter-box span {
            font-size: 1.25rem;
            font-weight: bold;
        }
        .counter-box:hover {
            transform: translateY(-5px);
        }
        .card2 {
            flex: 1 1 100%; /* Tam genişlik */
            background: #f8f9fa
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            padding: 5px;
            transition: transform 0.3s;
            border: 1px solid #eee; /* İnce siyah çizgi eklendi */
			margin-bottom: 10px;
        }
        .card2:hover {
            transform: translateY(-5px);
        }
		.no-animation { 
		transition: none !important; 
		}
    	@media (max-width: 768px) {
        .invoice-container {
            padding: 15px;
            margin: 10px;
        }
        .invoice-header {
            padding: 15px;
        }
        .invoice-header .row {
            font-size: 13px;
        }
        .invoice-table th, .invoice-table td {
            padding: 10px;
            font-size: 13px;
        }
        .invoice-table tfoot td {
            font-size: 12px;
        }
        .action-bar .btn {
            padding: 5px 12px;
            font-size: 12px;
        }
        .counter-box {
            margin-bottom: 10px;
        }
        .fa-chevron-down, .fa-chevron-up {
    	transition: none !important;
		}
    }

/* fatura ekle sayfası */

.invout-container { width: 100%; margin: 0 auto; padding: 20px; }
        .invout-form-collapse { display: none; }
        .invout-form-collapse.active { display: block; }
        .invout-toggle { display: inline-block; width: 50px; height: 25px; background: #ccc; border-radius: 25px; position: relative; cursor: pointer; }
        .invout-toggle::after { content: ''; position: absolute; width: 20px; height: 20px; background: #fff; border-radius: 50%; top: 2.5px; left: 2.5px; transition: transform 0.2s; }
        .invout-toggle.active { background: #28a745; }
        .invout-toggle.active::after { transform: translateX(25px); }
        .invout-feedback { margin-top: -10px; display: none; }
        .input-form { margin-bottom: 15px; padding: 10px; background: #f0f0f0; border-radius: 5px; }
        .input-form label { font-size: 14px; color: #444; margin-bottom: 5px; display: block; }
        .input-form input, .input-form select, .input-form textarea { width: 100%; font-size: 14px; padding: 6px; border-radius: 4px; border: 1px solid #ccc; box-sizing: border-box; }
        .input-form hr { border: 0; border-top: 1px solid #ddd; margin: 10px 0; }
        .row-flex { display: flex; gap: 10px; }
        .row-flex > div { flex: 1; }
        
        .select2-container { width: 100% !important; }
        .card-body { padding: 15px; }
        .form-group { margin-bottom: 15px; }
        .feedback { font-size: 12px; margin-top: 5px; }
        .text-success { color: #28a745 !important; }
        .text-danger { color: #dc3545 !important; }

.totals-container {
    text-align: right;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    margin-top: 10px;
}
.totals-summary div {
    font-size: 14px;
    margin-bottom: 5px;
    color: #444;
}
.totals-summary div strong {
    color: #28a745;
}

/* burası ödeme modalı için */

        /* Modal Genel Stili */
        #paymentModal .modal-content {
            border-radius: 8px;
        }

        #paymentModal .modal-header {
            border-bottom: none;
        }

        #paymentModal .modal-body {
            padding: 20px;
        }

        #paymentModal .form-label {
            font-weight: 500;
            color: #005566;
        }

        #paymentModal .btn-secondary {
            background-color: #005566;
            border: none;
            padding: 10px 20px;
        }

        #paymentModal .btn-secondary:hover {
            background-color: #003d4a;
        }

        /* Döviz Butonları */
        .currency-btn {
            font-size: 14px;
            padding: 8px;
            transition: background-color 0.2s;
        }

        .currency-btn:hover {
            background-color: #e9ecef;
        }

        /* Mevcut CSS ile çakışmasın diye ek stiller */
        .form-select-success {
            border-color: #198754;
            background-color: #d1e7dd;
            color: #0f5132;
        }

        .form-select-success:focus {
            border-color: #146c43;
            box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
        }

/* başka */