/* Professional Member List Styling */

/* Import SCSS variables colors */
:root {
  --primary-color: #4599cd;
  --secondary-color: #d8d8d8;
  --success-color: #00cccd;
  --info-color: #198ae3;
  --warning-color: #ffab2d;
  --danger-color: #ac0661;
  --light-color: #f8f9fa;
  --dark-color: #3e4b5b;
  --white: #ffffff;
  --black: #000000;
  --gray-light: #aab2bd;
  --gray-lighter: #e8eff4;
  --text-muted: #6c7293;
  --border-color: #ebedf2;
  --content-bg: #f2f2f2;
  --card-shadow: 0 2px 10px 0 rgba(197, 191, 191, 0.5);
  --gradient-primary: linear-gradient(135deg, #4599cd 0%, #5e50f9 100%);
  --gradient-success: linear-gradient(135deg, #00cccd 0%, #46c35f 100%);
  --gradient-info: linear-gradient(135deg, #198ae3 0%, #57c7d4 100%);
  --gradient-warning: linear-gradient(135deg, #ffab2d 0%, #f6e84e 100%);
}

/* Compact Breadcrumb Styles */
.custom-breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 1rem;
}

.custom-breadcrumb .breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: 0.8rem;
}

.custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: #6c757d;
  font-weight: bold;
  font-size: 0.9rem;
  padding: 0 0.25rem;
}

.custom-breadcrumb .breadcrumb-item a {
  color: #007bff;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.8rem;
}

.custom-breadcrumb .breadcrumb-item a:hover {
  background: rgba(0, 123, 255, 0.1);
  color: #0056b3;
}

.custom-breadcrumb .breadcrumb-item.active {
  color: #495057;
  font-weight: 500;
  font-size: 0.8rem;
}

/* Statistics Cards */
.stats-card {
  border: none;
  border-radius: 12px;
  padding: 1.25rem 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 120px;
}

.stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  z-index: 1;
}

.stats-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.stats-card .card-body {
  position: relative;
  z-index: 2;
  padding: 1.25rem;
}

.stats-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
}

.stats-icon i {
  font-size: 1.5rem;
  color: white;
}

.stats-card h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.stats-card p {
  font-size: 0.875rem;
  opacity: 0.8;
  font-weight: 500;
  margin: 0;
}

.stats-card.bg-primary {
  background: var(--gradient-primary) !important;
}

.stats-card.bg-success {
  background: var(--gradient-success) !important;
}

.stats-card.bg-info {
  background: var(--gradient-info) !important;
}

.stats-card.bg-warning {
  background: var(--gradient-warning) !important;
}

/* Page Header Section */
.page-header-section {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}

.page-header-section h1 {
  color: var(--dark-color);
  font-weight: 700;
  margin-bottom: 0.5rem;
  /* font-size: 2.2rem; */
}

.page-header-section h1 i {
  color: var(--primary-color);
  margin-right: 1rem;
}

.page-header-section p {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0;
}

/* Professional Button Styling */
.btn-gradient-primary {
  background: var(--gradient-primary);
  border: none;
  color: var(--white);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(63, 80, 246, 0.3);
}

.btn-gradient-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(63, 80, 246, 0.4);
  color: var(--white);
}

.shadow-custom {
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.shadow-custom:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

/* Search Section */
.search-section {
  background: var(--gray-lighter);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
}

.search-section .input-group {
  box-shadow: var(--card-shadow);
  border-radius: 8px;
  overflow: hidden;
}

.search-section .form-control {
  border: none;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  background: var(--white);
}

.search-section .form-control:focus {
  box-shadow: none;
  border-color: var(--primary-color);
}

.search-section .btn {
  padding: 1rem 1.5rem;
  font-weight: 600;
  border: none;
}

/* Compact Button Groups */
.btn-group-xs > .btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1.2;
  border-radius: 0.2rem;
}

.btn-group-xs > .btn-rounded {
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 0.75rem;
}

/* Compact Page Header */
.page-header-section {
  padding: 1rem;
}

/* Compact Search Section */
.search-section {
  padding: 1rem;
}

.input-group-sm > .form-control,
.input-group-sm > .input-group-prepend > .input-group-text,
.input-group-sm > .input-group-append > .btn {
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
}

.form-control-sm {
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
}

/* Badge Styling */
.badge-light {
  background: var(--gray-lighter);
  color: var(--dark-color);
  font-weight: 600;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
}

.badge-lg {
  font-size: 0.9rem;
  padding: 0.6rem 1rem;
}

/* Profile Picture Styling */
.rounded-circle {
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.rounded-circle:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Action Buttons */
.btn-group-sm .btn {
  padding: 0.5rem;
  margin: 0 0.2rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-rounded {
  border-radius: 50px !important;
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.btn-group-sm .btn-rounded {
  width: 32px;
  height: 32px;
  font-size: 0.8rem;
}

.btn-outline-info {
  color: var(--info-color);
  border-color: var(--info-color);
}

.btn-outline-info:hover {
  background: var(--info-color);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline-danger {
  color: var(--danger-color);
  border-color: var(--danger-color);
}

.btn-outline-danger:hover {
  background: var(--danger-color);
  color: var(--white);
  transform: translateY(-1px);
}

/* Empty State Styling */
.text-center.py-5 {
  background: var(--white);
  border-radius: 12px;
  padding: 4rem 2rem;
  margin: 2rem 0;
  box-shadow: var(--card-shadow);
}

.mdi-48px {
  font-size: 3rem;
  color: var(--gray-light);
  margin-bottom: 1rem;
}

/* Custom Pagination */
.custom-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}

.pagination-info {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pagination-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--light-color);
  color: var(--dark-color);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.pagination-link:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(63, 80, 246, 0.3);
}

.pagination-current {
  padding: 0 1rem;
  font-weight: 600;
  color: var(--dark-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-header-section {
    padding: 1.5rem;
  }
  
  .page-header-section h1 {
    font-size: 1.8rem;
  }
  
  .search-section .input-group {
    min-width: 100% !important;
  }
  
  .custom-pagination {
    flex-direction: column;
    gap: 1rem;
  }
  
  .stats-card {
    margin-bottom: 1rem;
  }
  
  .table-responsive {
    font-size: 0.9rem;
  }
  
  .btn-group-sm .btn {
    margin: 0 0.1rem;
    padding: 0.4rem;
  }
}

/* Responsive Stacked Table */
@media (max-width: 767.98px) {
    .table-stack-on-mobile {
        display: block;
        width: 100%;
    }

    .table-stack-on-mobile thead {
        display: none; /* Hide table headers */
    }

    .table-stack-on-mobile tbody,
    .table-stack-on-mobile tr,
    .table-stack-on-mobile td {
        display: block;
        width: 100%;
    }

    .table-stack-on-mobile tr {
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 0.35rem;
        overflow: hidden;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    .table-stack-on-mobile td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem 1rem;
        border: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .table-stack-on-mobile td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #333;
        margin-right: 1rem;
        min-width: 80px; /* Adjust as needed */
    }

    .table-stack-on-mobile td:last-child {
        border-bottom: none;
    }

    .table-stack-on-mobile .btn-group {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Professional Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-header-section,
.stats-card,
.search-section,
.table-responsive,
.custom-pagination {
  animation: fadeInUp 0.6s ease-out;
}

/* Loading States */
.loading-skeleton {
  background: linear-gradient(90deg, var(--gray-lighter) 25%, var(--white) 50%, var(--gray-lighter) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Professional Tooltip Enhancements */
.tooltip {
  font-size: 0.8rem;
}

.tooltip-inner {
  background: var(--dark-color);
  color: var(--white);
  border-radius: 6px;
  padding: 0.5rem 0.8rem;
}

/* Enhanced Form Styling */
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(63, 80, 246, 0.25);
}

.input-group-text {
  background: var(--white);
  border: none;
  color: var(--text-muted);
}

/* Professional Card Styling */
.card {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.card-body {
  padding: 1.5rem;
}

/* Status Indicators */
.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.5rem;
}

.status-active {
  background: var(--success-color);
  box-shadow: 0 0 0 2px rgba(0, 204, 205, 0.3);
}

.status-inactive {
  background: var(--danger-color);
  box-shadow: 0 0 0 2px rgba(255, 60, 166, 0.3);
}

/* Enhanced Typography */
.font-weight-semibold {
  font-weight: 600;
}

.display-6 {
  font-size: 2.5rem;
  font-weight: 700;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hover Effects */
.hover-lift {
  transition: all 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Professional Badges */
.badge {
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}

.badge-primary {
  background: var(--gradient-primary);
  color: var(--white);
}

.badge-success {
  background: var(--gradient-success);
  color: var(--white);
}

.badge-info {
  background: var(--gradient-info);
  color: var(--white);
}

.badge-warning {
  background: var(--gradient-warning);
  color: var(--dark-color);
}

/* SweetAlert Custom Styling */
.border-radius-12 {
  border-radius: 12px !important;
}

.swal2-popup {
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.swal2-title {
  font-weight: 700;
  color: var(--dark-color);
}

.swal2-content {
  color: var(--text-muted);
}

/* Loading Animation */
@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

.pulse-animation {
  animation: pulse 2s infinite;
}

/* Enhanced Shadows */
.shadow-sm-custom {
  box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
}

.shadow-lg-custom {
  box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

/* Professional Transitions */
.transition-all {
  transition: all 0.3s ease;
}

.transition-fast {
  transition: all 0.15s ease;
}

/* Custom Border Radius */
.border-radius-lg {
  border-radius: 16px !important;
}

/* Add this to your customstyle.css file */

.border-radius-xl {
  border-radius: 20px !important;
}

/* Custom styles for form inputs */
.form-control, .form-select {
    border-radius: 0.25rem;
    border: 1px solid #ced4da;
    padding: 0.75rem 1rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, .25);
}

/* Style for file inputs */
input[type="file"].form-control {
    padding: 0.5rem 1rem;
}

/* Adjusting fieldset and legend */
fieldset {
    border: 1px solid #dee2e6 !important;
}

legend {
    font-size: 1.25rem;
    font-weight: 500;
}

.modal-content {
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.modal-body .icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 3px solid #ffc107; /* Changed border color to warning yellow */
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body .icon-box i {
    color: #ffc107; /* Changed icon color to warning yellow */
}

.modal-footer .btn-danger {
    background-color: #dc3545; /* Standard Bootstrap danger color */
    border-color: #dc3545;
}

.modal-title {
    font-weight: bold;
}

.modal-footer .btn-danger {
    background-color: #f15e5e;
    border-color: #f15e5e;
}

.nav-link.active {
    color: var(--danger-color) !important;
}


/* Custom styles for the dashboard */
  /* Custom CSS for Enhanced Dashboard */

.quick-actions-container {
    background-color: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.section-title {
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.quick-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #555;
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
}

.quick-action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    color: #007bff;
}

.quick-action-card .icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 20px;
}

.quick-action-card span {
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
}

/* Soft background colors */
.bg-primary-soft { background-color: rgba(54, 162, 235, 0.1); }
.bg-info-soft { background-color: rgba(75, 192, 192, 0.1); }
.bg-success-soft { background-color: rgba(9, 155, 155, 0.1); }
.bg-danger-soft { background-color: rgba(255, 99, 132, 0.1); }
.bg-warning-soft { background-color: rgba(255, 206, 86, 0.1); }
.bg-purple-soft { background-color: rgba(153, 102, 255, 0.1); }
.bg-teal-soft { background-color: rgba(32, 201, 151, 0.1); }
.bg-orange-soft { background-color: rgba(255, 159, 64, 0.1); }

/* Text colors to match soft backgrounds */
.text-purple { color: #9966ff; }
.text-teal { color: #20c997; }
.text-orange { color: #ff9f40; }















