@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

.form-control:focus {
    box-shadow: none;
    border-color: #783F8E;
}
.btn-primary {
    background: linear-gradient(45deg, #783F8E, #4F1271) !important;
    border-color: #783F8E !important;
}
.btn-primary:hover {
    background: linear-gradient(45deg, #4F1271, #4A4063) !important;
    border-color: #4F1271 !important;
}

.loading-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    backdrop-filter: blur(10px);
    z-index: 10000 !important;
  }
  
  .spinner {
    animation: rotate 2s linear infinite;
    width: 50px;
    height: 50px;
  }
  
  .path {
    stroke: #3d3d3d;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
  }

  .bg-green {
    background-color: #40e3934d !important;
  }
  
  @keyframes rotate {
    100% {
      transform: rotate(360deg);
    }
  }
  
  @keyframes dash {
    0% {
      stroke-dasharray: 1, 150;
      stroke-dashoffset: 0;
    }
  
    50% {
      stroke-dasharray: 90, 150;
      stroke-dashoffset: -35;
    }
  
    100% {
      stroke-dasharray: 90, 150;
      stroke-dashoffset: -124;
    }
  }

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

.fixed-bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    background: white !important;
    padding: 12px 0 !important;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1) !important;
    z-index: 100;
}
.fixed-bottom-menu a {
    position: relative;
    text-align: center;
    padding: 8px 0;
    font-weight: 500;
    color: #666 !important;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.fixed-bottom-menu a.active {
    color: #783F8E !important;
}
.fixed-bottom-menu a.active:after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #783F8E;
}
.fixed-bottom-menu i {
    font-size: 1.2em;
    margin-bottom: 4px;
}
.qr-code {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(135deg, #C8C6D7 0%, #BFACC8 100%);
}
.qr-code img {
    width: 200px;
    height: 200px;
}
.qr-code .qrCode {
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.qr-code .status {
    margin-top: 20px;
    padding: 10px 20px;
    background: #e8f5e9;
    border-radius: 8px;
    color: #2e7d32;
    font-size: 20px;
    font-weight: 500;
}
table.dataTable th {
    text-align: center;
    vertical-align: middle;
}
table.dataTable td {
    text-align: center;
}
.dataTables_filter {
    width: 100%;
}
.dataTables_filter label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.dataTables_filter input {
    flex: 1;
    margin-left: 10px;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    width: 100% !important;
    margin: 8px 0 !important;
    transition: all 0.3s ease;
}
.dataTables_filter input:focus {
    border-color: #783F8E !important;
    box-shadow: 0 0 0 2px rgba(120, 63, 142, 0.2) !important;
}
.dataTables_wrapper .row {
    margin-bottom: 10px;
}
.btn-action {
    font-size: 1.2em;
}
.btn-action i {
    color: #783F8E;
}

#customerTable_filter {
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

#customerTable_info {
    display: none !important;;
}

#customerTable thead {
    background-color: #000;
    color: #fff;
}

#customerTable_length {
    display: none;;
}

.form-group {
    position: relative;
}

.inputClass {
    padding:10px;
}

.form-group label {
    position: absolute;
    top: -14px;
    left: 10px;
    padding: 0px 9px;
    border-radius: 2px;
    background: #fff;
    border: 1px solid #ddd;
}

.paginate_button  {
    padding: 8px 16px !important;
    border-radius: 8px !important;
    background: #f0f0f0 !important;
    border: none !important;
    color: #666 !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.paginate_button.current {
    background: linear-gradient(45deg, #783F8E, #4F1271) !important;
    color: white !important;
}

.table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px !important;
}

.table thead th {
    background: linear-gradient(45deg, #783F8E, #4F1271) !important;
    color: white !important;
    font-weight: 500;
    padding: 15px !important;
    border: none !important;
}

.table td {
    padding: 12px !important;
    vertical-align: middle !important;
    border-color: #f0f0f0 !important;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #C8C6D7;
}

/* Table loading animation */
.dataTables_processing {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.btn {
    border-radius: 8px !important;
    padding: 12px 20px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.btn-primary {
    background: linear-gradient(45deg, #783F8E, #4F1271) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(120, 63, 142, 0.3) !important;
}

.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(120, 63, 142, 0.4) !important;
}

.modal-content {
    border-radius: 12px !important;
    border: none !important;
}

.modal-header {
    border-bottom: none !important;
    padding: 20px !important;
}

.modal-body {
    padding: 20px !important;
}

.modal-footer {
    border-top: none !important;
    padding: 20px !important;
}

.form-control {
    border-radius: 8px !important;
    border: 2px solid #e0e0e0 !important;
    padding: 12px !important;
    transition: all 0.3s ease !important;
}

.form-control:focus {
    border-color: #783F8E !important;
    box-shadow: 0 0 0 2px rgba(120, 63, 142, 0.2) !important;
}

.pagination {
    gap: 5px;
}

/* Sidebar styles */
.sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100vh;
    background: white;
    z-index: 1000;
    width: 300px;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-content {
    padding: 1rem;
}

.sidebar-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.sidebar-item:hover {
    background: #f8f9fa;
    color: #783F8E;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}

/* Support Section Styles */
.support-section {
    border: 1px solid rgba(25, 135, 84, 0.2);
    background: rgba(25, 135, 84, 0.05) !important;
    transition: all 0.3s ease;
}

.support-section:hover {
    background: rgba(25, 135, 84, 0.1) !important;
}

.support-section .btn-success {
    background: #198754;
    border: none;
    padding: 0.75rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.support-section .btn-success:hover {
    background: #157347;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.2);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .modal {
        padding: 0 !important;
    }
    
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .table td {
        white-space: nowrap;
    }
    
    .btn-sm {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.875rem !important;
    }

    textarea.form-control {
        min-height: 120px;
    }

    .alert {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
    
    .fixed-bottom-menu a {
        font-size: 0.75rem;
    }

    .sidebar {
        width: 80%;
    }
}

@media screen and (max-width: 640px) {
    .dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter {
        float: left;
        text-align: center;
    }
}

/* Bildirim paneli ve ikonuna özel stiller */
#notificationIcon {
  color: #666;
  transition: color 0.2s;
}
#notificationIcon.active {
  color: #e53935 !important;
}
#notificationDot {
  width: 12px;
  height: 12px;
  background: #e53935;
  border-radius: 50%;
  box-shadow: 0 0 8px #e53935a0;
  display: block;
  pointer-events: none;
  animation: shake-bell-dot 2s infinite;
}
#notificationDot.d-none {
  display: none;
}
@keyframes shake-bell-dot {
  0% { transform: translateY(0) scale(1); }
  10% { transform: translateY(-2px) scale(1.1); }
  20% { transform: translateY(2px) scale(0.95); }
  30% { transform: translateY(-2px) scale(1.1); }
  40% { transform: translateY(2px) scale(0.95); }
  50% { transform: translateY(0) scale(1); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
  100% { transform: translateX(0); }
}
.notification-shake {
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

.unread {
    background-color: #f4e5fa !important;
}