.select2-container {
    margin-top: 0 !important;
}
.select2-container--default .select2-selection--multiple,
.select2-container--default .select2-selection--single {
    border-radius: 0.25rem !important;
}
.dataTables_length select {
    width: auto !important;
    min-width: 60px;
    padding: 4px 8px;
    border-radius: 4px;
}
.dataTables_length {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
}

.dataTables_length label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.view-client-filters .form-select,
.add-user-roles .form-select {
    line-height: 1.6;
    border-radius: 0.35rem;
}
.search-filter-btn {
    margin-top: 1.5rem;
    margin-bottom: 0;
}
.dataTables_filter input {
    padding: 4px 6px;
    font-size: 12px;
    height: 30px;
    width: 150px;
}
.dataTables_length select {
    padding: 2px 5px;
    font-size: 11px;
    height: 30px;
    width: auto;
}

.dataTables_length label {
    font-size: 13px;
}
.iti {
    width: 100%;
}
.ti-switch {
    display: block;
}

#editor {
    height: auto;
}
.iti input {
    padding-left: 48px;
}

.intl-phone-input {
    padding-left: 80px !important;
    /* height: 38px; */
}

.iti {
    width: 100%;
}
  .iti--separate-dial-code input {
      padding-left: 65px !important; /* prevents overlap */
  }

.iti__flag-container {
    top: 6px;
}
.invoice-titles{
    position: relative;
    margin-inline-end: auto;
    font-size: 1.2rem;
    font-weight: 700;
    color: rgb(var(--default-text-color));
}
.leads-tableshow{
    display: flex;
}
.follow-history{
    padding-left: 50px;
}
.followup-history{
    height: 150px;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #999 #f1f1f1;
    padding-right: 15px;
}
.total-sales{
    height: 100%;
}
.total-sales .box{
    height: 100%;
}
.list-none.daily-task-card li:last-child{
    margin-bottom: 1.25rem;
}
.ti-offcanvas .ti-offcanvas-body{
    padding: 15px 15px 5rem;
}
.ti-offcanvas .ti-offcanvas-header{
    display: block;
}
.ti-offcanvas .ti-offcanvas-header .avatar i{
    font-size: 20px;
    color: #fff;
}
.hs-accordion-group .avatar i{
    font-size: 20px;
    color: #fff;
}
.ti-btn-dark-full {
  background-color: rgb(var(--dark));
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity));
}
/* Custom style for DataTables control column */
table.dataTable.dtr-column > tbody > tr > td.control:before,
table.dataTable.dtr-column > tbody > tr > th.control:before {
  background-color: rgb(var(--primary));  /* Change to your primary color */
  color: #fff !important;                /* Text color */
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 16px;
  content: "+" !important;    /* Customize the symbol */
  display: inline-block;
  text-align: center;
  box-shadow: 0 0 5px rgba(0,0,0,0.2); /* Optional: soft shadow */
}

/* When row is shown, change the icon */
table.dataTable.dtr-column > tbody > tr.parent > td.control:before,
table.dataTable.dtr-column > tbody > tr.parent > th.control:before {
  content: "−" !important;   /* Use minus symbol or custom icon */
}
/* Target the header of DataTable for rounded top corners */
table.dataTable thead {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  overflow: hidden; /* Ensures the radius works */
}

/* Also, target the scrollable container if you're using horizontal scrolling */
.dataTables_scrollHeadInner, 
.dataTables_scrollHead {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  overflow: hidden;
}
table.dataTable thead>tr>th.sorting{
    padding: 20px;
}
/* sabhi grid/columns ke andar text wrap ho */
[class*="col-span"] {
  word-break: break-word;       /* old support */
  overflow-wrap: anywhere;      /* modern support */
  white-space: normal;          /* nowrap hata do */
}


/* ------sign-up----- */

.blurred-bg {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);           /* Standard property */
    -webkit-backdrop-filter: blur(10px);  /* Safari/Chrome fallback */
    -moz-backdrop-filter: blur(10px);     /* Firefox fallback (experimental) */
    -o-backdrop-filter: blur(10px);       /* Older Opera fallback */
}

.hide-eye-icon .input-group button {
    display: none;
}
.desktop-logo {
    width: 160px; 
    height: auto; 
}
.auth-page {
    background: url('/assets/admin/images/authentication/login-bg.png') no-repeat center center fixed;
    background-size: cover;
     background-position: center 55%;
}
.welcome-heading .highlight {
    color: #2b53a9;
    font-weight: bold;
}
.choices__list--dropdown,
.choices__list[aria-expanded] {
  z-index: 9999 !important;
}

/* ============================================
   ANIMAL FEEDER APP - CUSTOM THEME STYLES
   ============================================ */

/* Animal Theme Colors */
:root {
    --animal-primary: #845adf;
    --animal-secondary: #23b7e5;
    --animal-success: #26bf94;
    --animal-warning: #f5b849;
    --animal-danger: #e85347;
    --animal-info: #49b6f5;
    --animal-orange: #f7a035;
    --animal-pink: #f672a7;
}

/* Animal Themed Loader */
.animal-loader {
    width: 60px;
    height: 60px;
    position: relative;
}

.animal-loader::before {
    content: "🐾";
    font-size: 40px;
    position: absolute;
    animation: pawBounce 1s ease-in-out infinite;
}

.animal-loader::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 10px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    animation: pawShadow 1s ease-in-out infinite;
}

@keyframes pawBounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(-10deg);
    }
    50% {
        transform: translateY(-25px) rotate(0deg);
    }
    75% {
        transform: translateY(-15px) rotate(10deg);
    }
}

@keyframes pawShadow {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateX(-50%) scale(0.5);
        opacity: 0.1;
    }
}

/* Main Page Loader Override */
#loader {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#loader::before {
    content: "🐾";
    font-size: 80px;
    animation: loaderPaw 1.5s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(132, 90, 223, 0.3));
}

#loader::after {
    content: "Loading...";
    margin-top: 20px;
    font-size: 16px;
    color: #845adf;
    font-weight: 600;
    letter-spacing: 2px;
    animation: fadeInOut 1.5s ease-in-out infinite;
}

#loader img {
    display: none;
}

@keyframes loaderPaw {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.1) rotate(-15deg);
    }
    50% {
        transform: scale(1.2) rotate(0deg);
    }
    75% {
        transform: scale(1.1) rotate(15deg);
    }
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Animal Stat Cards */
.animal-stat-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.animal-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Box Styling Improvements */
.box {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
}

.box-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: linear-gradient(135deg, #fafbfc 0%, #f8f9fa 100%);
}

.box-title {
    font-weight: 600;
    color: #374151;
}

/* Table Improvements */
.table thead {
    background: linear-gradient(135deg, #845adf10 0%, #845adf05 100%);
}

.table thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: #4b5563;
    border-bottom: 2px solid rgba(132, 90, 223, 0.1);
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: rgba(132, 90, 223, 0.03);
}

/* Badge Improvements */
.badge {
    font-weight: 500;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    font-size: 0.75rem;
}

/* Button Improvements */
.ti-btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.ti-btn-primary-full {
    background: linear-gradient(135deg, #845adf 0%, #6b46c1 100%);
    border: none;
}

.ti-btn-success-full {
    background: linear-gradient(135deg, #26bf94 0%, #1d9e78 100%);
    border: none;
}

.ti-btn-danger-full {
    background: linear-gradient(135deg, #e85347 0%, #dc2626 100%);
    border: none;
}

.ti-btn-info-full {
    background: linear-gradient(135deg, #49b6f5 0%, #0ea5e9 100%);
    border: none;
}

.ti-btn-warning-full {
    background: linear-gradient(135deg, #f5b849 0%, #f59e0b 100%);
    border: none;
}

/* Sidebar Improvements */
.app-sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.side-menu__item {
    border-radius: 8px;
    margin: 2px 10px;
    transition: all 0.3s ease;
}

.side-menu__item:hover {
    background: rgba(132, 90, 223, 0.1);
}

.slide.active .side-menu__item {
    background: linear-gradient(135deg, #845adf 0%, #6b46c1 100%);
    color: white !important;
    box-shadow: 0 4px 15px rgba(132, 90, 223, 0.3);
}

.slide.active .side-menu__icon {
    color: white !important;
}

.slide.active .side-menu__label {
    color: white !important;
}

.slide.active .side-menu__item:hover {
    color: white !important;
}

.slide__category {
    margin-top: 1rem;
    padding: 0.5rem 1.25rem;
}

.category-name {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9ca3af;
    font-weight: 600;
}

/* Form Improvements */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #845adf;
    box-shadow: 0 0 0 3px rgba(132, 90, 223, 0.1);
}

.form-label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Modal Improvements */
.ti-modal-content {
    border-radius: 16px;
    overflow: hidden;
    border: none;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.ti-modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ti-modal-title {
    font-weight: 600;
}

/* Avatar Improvements */
.avatar {
    border-radius: 10px;
    overflow: hidden;
}

.avatar.avatar-rounded {
    border-radius: 50%;
}

/* Empty State */
.empty-state {
    padding: 3rem;
    text-align: center;
}

.empty-state i {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.empty-state p {
    color: #6b7280;
    font-size: 1rem;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.box {
    animation: slideIn 0.3s ease-out;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #845adf 0%, #23b7e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Paw Print Background Pattern */
.paw-pattern {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Ctext x='30' y='35' text-anchor='middle' font-size='25' fill='%23845adf' opacity='0.05'%3E🐾%3C/text%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* Pink color for female gender */
.text-pink { color: #f672a7 !important; }
.bg-pink\/10 { background-color: rgba(246, 114, 167, 0.1) !important; }

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #845adf 0%, #6b46c1 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b46c1;
}

/* Page Header Improvements */
.page-header {
    margin-bottom: 1.5rem;
}

.page-header h3 {
    color: #1f2937;
}

/* Chart Container */
.chart-container {
    position: relative;
    padding: 1rem;
}

/* Notification Badge Pulse */
.notification-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(132, 90, 223, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(132, 90, 223, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(132, 90, 223, 0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .animal-stat-card .box-body {
        padding: 1rem;
    }
    
    .animal-stat-card h4 {
        font-size: 1.5rem;
    }
}

/* Dark Mode Support */
.dark .box {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.05);
}

.dark .box-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.dark .table thead {
    background: linear-gradient(135deg, rgba(132, 90, 223, 0.2) 0%, rgba(132, 90, 223, 0.1) 100%);
}

.dark .form-control, .dark .form-select {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

.dark #loader {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.dark #loader::after {
    color: #a78bfa;
}