:root {
  --primary-color: #c32431;
  --secondary-color: #003366;
  --light-blue: #e4eaf2;
  --hover-blue: #cfdbe9;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  overflow-x: hidden;
  background-color: #f8f9fa;
}

/* Sidebar styling */
#sidebar-wrapper {
  width: 300px;
  min-height: 100vh;
  transition: all 0.3s ease-in-out;
  background-color: var(--light-blue);
}

#sidebar-wrapper .sidebar-heading {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem;
}

body.sb-sidenav-toggled #sidebar-wrapper {
  margin-left: -300px;
}

#page-content-wrapper {
  min-width: 0;
  width: 100%;
  transition: all 0.3s ease-in-out;
}

.list-group-item {
  border: none;
  background-color: var(--light-blue);
  color: var(--secondary-color);
  font-weight: 500;
  padding: 0.75rem 1.25rem;
}

.list-group-item:hover {
  background-color: var(--hover-blue);
}

.list-group-item.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Change navbar color */
.navbar {
  background-color: white !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Button styling */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #a31d28;
  border-color: #a31d28;
}

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: #002755;
  border-color: #002755;
}

.btn-move {
  padding: 0.25rem 0.5rem;
  background-color: var(--light-blue);
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

.btn-move:hover {
  background-color: var(--hover-blue);
}

/* Form styling */
.form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.25rem rgba(0, 51, 102, 0.25);
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Card styling */
.card {
  border: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  border-radius: 0.5rem;
}

.card-header {
  background-color: var(--secondary-color);
  color: white;
  border-top-left-radius: 0.5rem !important;
  border-top-right-radius: 0.5rem !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #sidebar-wrapper {
    margin-left: -300px;
  }
  
  body.sb-sidenav-toggled #sidebar-wrapper {
    margin-left: 0;
  }
}

@media (min-width: 768px) {
  #sidebar-wrapper {
    margin-left: 0;
  }
  
  #page-content-wrapper {
    min-width: 0;
    width: 100%;
  }
}

/* Filter panel */
.filter-panel {
  background-color: white;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  margin-bottom: 1.5rem;
}

/* Tip badge styling */
.badge-tip {
  background-color: var(--primary-color);
}

.badge-abone {
  background-color: #28a745;
}

.badge-bayi {
  background-color: var(--secondary-color);
}

/* Action buttons */
.btn-action {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

/* Text heading */
.section-heading {
  color: var(--secondary-color);
  border-bottom: 2px solid var(--light-blue);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Custom select with icon */
.select-with-icon {
  position: relative;
}

.select-with-icon::after {
  content: "\f107";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 10px;
  top: 10px;
  pointer-events: none;
}

/* Row for move buttons */
.row-actions {
  display: flex;
  justify-content: space-between;
}

/* Toggle sidebar button */
#sidebarToggle {
  border: 1px solid #ddd;
  border-radius: 0.25rem;
  transition: all 0.3s;
  cursor: pointer;
}

#sidebarToggle:hover {
  background-color: var(--light-blue);
}

#sidebarToggle .fas {
  transition: transform 0.3s;
}

body.sb-sidenav-toggled #sidebarToggle .fas {
  transform: rotate(180deg);
}

/* Genel Stiller */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navbar Stilleri */
.navbar-brand {
    font-weight: bold;
}

/* Card Stilleri */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.075);
    border: none;
    margin-bottom: 1.5rem;
}

.card-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 500;
}

/* Form Stilleri */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control {
    border-radius: 0.25rem;
    border: 1px solid #ced4da;
    padding: 0.375rem 0.75rem;
}

/* Tablo Stilleri */
.table {
    margin-bottom: 0;
}

.table-dark th {
    background-color: #212529;
    border-color: #373b3e;
}


.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0,0,0,.05);
}

.table-hover tbody tr:hover {
    background-color: rgba(0,0,0,.075);
}

/* Badge Stilleri */
.badge {
    padding: 0.5em 0.75em;
    font-weight: 500;
}

/* Pagination Stilleri */
.pagination {
    margin-bottom: 0;
}

.page-link {
    color: #0d6efd;
    border: 1px solid #dee2e6;
    padding: 0.375rem 0.75rem;
}

.page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Buton Stilleri */
.btn {
    padding: 0.375rem 0.75rem;
    font-weight: 500;
    border-radius: 0.25rem;
}

/* Responsive Ayarlar */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .table-responsive {
        margin-bottom: 1rem;
    }
}

/* Login Page Customization */
.login-page {
    background-color: #f8f9fa;
}

.login-card {
    max-width: 400px;
    margin: 2rem auto;
}

/* Dashboard Cards */
.stat-card {
    border-radius: 10px;
    overflow: hidden;
}

.stat-card .card-body {
    padding: 1.5rem;
}

.stat-card i {
    opacity: 0.8;
}

/* Custom Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Compact tables */
.table-compact {
    font-size: 0.875rem;
    width: auto;
}

.table-compact th,
.table-compact td {
    font-weight: 600;
    padding: 0.15rem 0.25rem !important;
    white-space: nowrap;
    max-width: 200px;
    text-overflow: ellipsis;
    overflow: hidden;
}


.table-compact .form-control,
.table-compact .form-select {
    font-weight: 700;
    padding: 0.2rem 0.4rem;
    font-size: 0.875rem;
    height: calc(1.5em + 0.4rem + 2px);
}

.table-compact .btn-sm {
    padding: 0.15rem 0.3rem;
    font-size: 0.875rem;
}

.table-compact .btn-group-sm>.btn {
    padding: 0.15rem 0.3rem;
    font-size: 0.875rem;
}

/* Compact filter panels */
.filter-panel-compact .form-label {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.filter-panel-compact .form-control,
.filter-panel-compact .form-select {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    height: calc(1.5em + 0.5rem + 2px);
}

.filter-panel-compact .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Card with smaller padding */
.card-compact .card-header {
    padding: 0.75rem 1rem;
}

.card-compact .card-body {
    padding: 0.75rem 1rem;
}

/* Compact pagination */
.pagination-sm .page-link {
    padding: 0.25rem 0.5rem;
    font-size: 0.575rem;
}

/* Make alerts more compact */
.alert {
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
}

/* More compact datepicker if needed */
.datepicker-compact .datepicker {
    font-size: 0.875rem;
}

.datepicker-compact .datepicker table td,
.datepicker-compact .datepicker table th {
    width: 30px;
    height: 30px;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .table-compact {
        font-size: 0.75rem;
    }
    
    .table-compact th,
    .table-compact td {
        padding: 0.1rem 0.2rem !important;
    }
    
    .card-compact .card-body {
        padding: 0.5rem;
    }
}

/* Table responsive container */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Table hover effect */
.table-hover tbody tr:hover {
    background-color: var(--light-blue);
}

/* Table borders */
.table-bordered {
    border: 1px solid #dee2e6;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #dee2e6;
}

/* Table striped rows */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0,0,0,.02);
} 



.matbaa-report {
  background: #fff;
  padding: 10px;
  border-radius: 4px;
  margin-top: auto;
  position: sticky;
  bottom: 0;
  z-index: 1000;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.matbaa-report table {
  margin-bottom: 0;
  font-size: 0.8rem;
  width: 100%;
  min-width: 200px;
}

.matbaa-report th,
.matbaa-report td {
  padding: 0.25rem;
  text-align: center;
  white-space: nowrap;
}

.matbaa-report h6 {
  color: #333;
  font-weight: 600;
  margin-bottom: 0.5rem;
  white-space: nowrap;
}

/* Responsive tasarım için medya sorguları */
@media (max-width: 768px) {
 

  .matbaa-report {
      position: relative;
      margin-top: 1rem;
  }

  .matbaa-report table {
      font-size: 0.7rem;
  }

  .matbaa-report th,
  .matbaa-report td {
      padding: 0.15rem;
  }
}

@media (max-width: 576px) {
  .matbaa-report {
      padding: 5px;
  }

  .matbaa-report table {
      font-size: 0.65rem;
  }

  .matbaa-report th,
  .matbaa-report td {
      padding: 0.1rem;
  }
}

/* Sidebar toggle durumu için */
.sb-sidenav-toggled #sidebar-wrapper {
  margin-left: -300px;
}

@media (max-width: 768px) {
  .sb-sidenav-toggled #sidebar-wrapper {
      margin-left: -100%;
  }
}