/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}


input[readonly],
input[readonly]:focus,
input[readonly]:active {
  background-color: #b8b8b8 !important; /* Dark gray background */
  color: #8f8f8f !important; /* Dark red/brown text */
  cursor: not-allowed;
  
  /* Optional: Remove default focus outline */
  outline: none;
  box-shadow: none;
  border-color: #5e5e5e; /* Match border to background if needed */
}

.paginate_button {
    color: white !important;
}

.bootstrap-select .dropdown-toggle {
    background-color: #fff !important;
    color: #000 !important;
}


/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 100;
    padding: 0 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    background-color: #ffffff;
    min-width: 300px;
    border-left: 1px solid white;
}


.sidebar .nav-link {
    color: rgba(255, 255, 255, .75);
    padding: 0.75rem 1rem;
    font-weight: 500;
}

.sidebar .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, .1);
}

.sidebar .nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, .1);
}

.sidebar .nav-link i {
    margin-right: 4px;
    color: rgba(255, 255, 255, .25);
}

.sidebar .nav-link.active i,
.sidebar .nav-link:hover i {
    color: rgba(255, 255, 255, .75);
}


/* Main Content */
main {
    padding-top: 1.5rem;
}

/* Navbar */
.navbar-brand {
    padding-top: .75rem;
    padding-bottom: .75rem;
    background-color: rgba(0, 0, 0, .25);
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
}

.navbar .navbar-toggler {
    top: .25rem;
    right: 1rem;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.table {
    font-size: 0.875rem;
}

.table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border-top: none;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, .075);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, .125);
    font-weight: 600;
}

/* Buttons */
.btn-sm {
    font-size: 0.75rem;
}

/* Forms */
.form-label {
    font-weight: 500;
}

.form-control, .form-select {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Alerts */
.alert {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    
    .navbar-brand {
        width: 100%;
    }
}

/* Custom Utilities */
.rounded-lg {
    border-radius: 0.5rem;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, .075);
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Image Thumbnails */
.img-thumbnail {
    max-width: 100px;
    height: auto;
    padding: 0.25rem;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
}


#toast-container {
  position: fixed !important;
  bottom: 100px !important;
  left: 5% !important;
  /* transform: translateX(-50%) !important; */
  z-index: 9999 !important;
  width: auto !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

@media (max-width: 600px) {
  #toast-container {
    left: 5% !important;
    right: 5% !important;
    transform: none !important;
    width: 90% !important;
  }
}

.coupon-footer.expired {
    background-color: #fce4e4;
    color: #a94442;
    padding: 15px;
    text-align: center;
}

.coupon-footer.not-started {
    background-color: #fff3cd;
    color: #856404;
    padding: 15px;
    text-align: center;
}

/* Chrome, Safari, Edge, Opera */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  --moz-appearance: textfield;
}

select option.child-category {
    padding-left: 20px; /* Adjust as needed */
}

select option.parent-category {
    font-weight: bolder; /* Adjust as needed */
}

.collapsing {
    -webkit-transition: none !important;
    transition: none !important;
    display: none !important;
}

/* Make sidebar scrollable */
#sidebarMenu {
    height: 100vh; /* Full viewport height */
    overflow-y: auto; /* Enable vertical scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Optional: Style the scrollbar (works in Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}
::-webkit-scrollbar-track {
    background: transparent;
}

input::placeholder {
  color: #aaaaaacb !important; /* Lighter gray for soft appearance */
}

@keyframes flash-border {
    0%   { border-color: rgb(115, 255, 0); }
    50%  { border-color: rgb(255, 255, 255); }
    100% { border-color: rgb(145, 255, 0); }
}

.flash-border {
    animation: flash-border 0.5s ease-in-out 3;
    border: 5px solid rgb(21, 255, 0) !important;
}
#automatetitle.disabled-processing {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Text colors for labels/info */
.dark-dt .dataTables_wrapper .dataTables_filter label,
.dark-dt .dataTables_wrapper .dataTables_length label,
.dark-dt .dataTables_wrapper .dataTables_info {
  color: #fff;
}

/* Search box + length select */
.dark-dt .dataTables_wrapper .dataTables_filter input,
.dark-dt .dataTables_wrapper .dataTables_length select {
  background-color: #212529;
  color: #fff;
  border: 1px solid #495057;
}
.dark-dt .dataTables_wrapper .dataTables_filter input::placeholder {
  color: #adb5bd;
}

/* Pagination buttons */
.dark-dt .dataTables_wrapper .dataTables_paginate .paginate_button {
  background: #212529;
  border: 1px solid #495057;
  color: #fff !important;         /* DT sets inline color; force it */
  margin: 0 2px;
  border-radius: .375rem;
  margin-bottom: 10px;
}
.dark-dt .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: #343a40;
  border-color: #6c757d;
  color: #fff !important;
}
.dark-dt .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dark-dt .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: #0d6efd;
  border-color: #0d6efd;
  color: #fff !important;
}
.dark-dt .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dark-dt .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
  background: #1c1f23;
  border-color: #2b3035;
  color: #6c757d !important;
  cursor: default;
}
