/* Provider List Styles */
.container-h1 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 2px solid #12a286;
}

.nav-tabs {
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 20px;
}

.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 10px 20px;
    margin-right: 5px;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    border: none;
    color: #12a286;
}

.nav-tabs .nav-link.active {
    color: #12a286;
    background: none;
    border-bottom: 2px solid #12a286;
}

.form-control {
    height: 45px;
    border-radius: 4px;
    border: 1px solid #ced4da;
    padding: 10px 15px;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.075);
}

.form-control:focus {
    border-color: #12a286;
    box-shadow: 0 0 0 0.2rem rgba(18, 162, 134, 0.25), inset 0 1px 2px rgba(0,0,0,0.075);
}

.btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn i {
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(45deg, #12a286, #0a7d66);
    border: none;
    box-shadow: 0 2px 5px rgba(18, 162, 134, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #0a7d66, #12a286);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(18, 162, 134, 0.3);
}

.btn-reject {
    background: linear-gradient(45deg, #dc3545, #c82333);
    border: none;
    box-shadow: 0 2px 5px rgba(220, 53, 69, 0.2);
}

.btn-reject:hover {
    background: linear-gradient(45deg, #c82333, #dc3545);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.table {
    margin-bottom: 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.table thead th {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    border-bottom: 2px solid #dee2e6;
    color: #495057;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 15px;
}

.table tbody td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid #dee2e6;
    font-size: 0.875rem;
    color: #212529;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
    transition: all 0.2s ease;
}

.form-group label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
    font-size: 0.875rem;
}

.card-body {
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    padding: 25px;
}



.status-badge {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-approved {
    background-color: #28a745;
    color: white;
}

.status-rejected {
    background-color: #dc3545;
    color: white;
}

.status-pending {
    background-color: #ffc107;
    color: #212529;
}

.dataTables_wrapper .dataTables_length select {
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #ced4da;
}

.dataTables_wrapper .dataTables_filter input {
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #ced4da;
    margin-left: 5px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 5px 10px;
    border-radius: 4px;
    margin: 0 2px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #12a286;
    border-color: #12a286;
    color: white !important;
}

/* Provider Card Styles */
.provider-card {
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}
.provider-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.provider-card .card-header {
    background: linear-gradient(135deg, teal 0%, #0056b3 100%);
    color: white;
    padding: 15px;
}
.provider-card .card-body {
    padding: 20px;
}
.provider-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.provider-info-item {
    display: flex;
    align-items: center;
}
.provider-info-item i {
    width: 30px;
    color: teal;
    margin-right: 10px;
}
.provider-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

/* Hub Dashboard Styles */
/* Remove content container padding from AdminLTE */
.content-wrapper > .content {
    padding: 0;
}

/* Welcome header */
.welcome-header {
    padding: 20px;
    background: #e3f2fd; /* Light blue background */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.welcome-header h2 {
    margin: 0;
    color: #1976d2; /* Darker blue for text */
    font-size: 24px;
}

.welcome-header p {
    margin: 5px 0 0;
    color: #1976d2; /* Darker blue for text */
}

/* Small boxes */
.small-box {
    border-radius: 0.25rem;
    box-shadow: 0 0 1px rgba(0,0,0,.125), 0 1px 3px rgba(0,0,0,.2);
    position: relative;
    display: block;
    margin-bottom: 20px;
}
.small-box > .inner {
    padding: 15px;
}
.small-box h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    white-space: nowrap;
    padding: 0;
}
.small-box p {
    font-size: 1rem;
}
.small-box .icon {
    color: rgba(255,255,255,.15);
    z-index: 0;
}
.small-box .icon > i {
    font-size: 70px;
    position: absolute;
    right: 15px;
    top: 15px;
    transition: transform .3s linear;
}
.small-box:hover .icon > i {
    transform: scale(1.1);
}
.small-box .small-box-footer {
    background-color: rgba(0,0,0,.1);
    color: rgba(255,255,255,.8);
    display: block;
    padding: 3px 0;
    position: relative;
    text-align: center;
    text-decoration: none;
    z-index: 10;
}
.small-box .small-box-footer:hover {
    background-color: rgba(0,0,0,.15);
    color: #fff;
}

/* Border accent for list items */
.border-left-primary {
    border-left: 4px solid teal !important;
}

/* List group styling */
.list-group-item {
    transition: all 0.2s ease;
    margin-bottom: 5px;
    border-radius: 4px !important;
}
.list-group-item:hover {
    transform: translateX(5px);
    background-color: rgba(0, 128, 128, 0.05);
}

/* Hub info styling */
.hub-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.info-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.info-label {
    font-weight: 600;
    color: #555;
}

/* Custom button styles for Add and Remove buttons */
button.btn.btn-primary.btn-blck.btn-flat,
{
    height: 30px;
    font-size: 14px !important;
    background-color: #ffffff !important;
    background-image: none;
    border: 2px solid teal !important;
    border-radius: 10px !important;
    color: #000000 !important;
    font-weight: 700 !important;
    transition: all 0.3s ease;
}

button.btn.btn-primary.btn-blck.btn-flat:hover {
    height: 30px;
    font-size: 14px !important;
    background-color: teal !important;
    background-image: none;
    border: 2px solid teal !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 128, 128, 0.2);
}

button.btn.btn-primary.btn-blck.btn-flat:active {
    height: 30px;
    font-size: 14px !important;
    background-color: teal !important;
    background-image: none;
    border: 2px solid teal !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 128, 128, 0.2);
}

/* Specific hover and active styles for the Remove button */
button.btn.btn-reject.btn-blck.btn-flat {
    height: 30px;
    font-size: 14px !important;
    background-color: #ffffff !important;
    background-image: none;
    border: 2px solid #dc3545 !important;
    border-radius: 10px !important;
    color: #000000 !important;
    font-weight: 700 !important;
}

button.btn.btn-reject.btn-blck.btn-flat:hover {
    height: 30px;
    font-size: 14px !important;
    background-color: #dc3545 !important;
    background-image: none;
    border: 2px solid #dc3545 !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

button.btn.btn-reject.btn-blck.btn-flat.btn-label {
    height: 30px;
    font-size: 14px !important;
    background-color: #dc3545 !important;
    background-image: none;
    border: 2px solid #dc3545 !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* Background gradients */
.bg-gradient-primary {
    background: linear-gradient(135deg, teal 0%, #0056b3 100%);
}
.bg-gradient-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}
.bg-gradient-info {
    background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
}
.bg-gradient-teal {
    background: linear-gradient(135deg, #20c997 0%, #199d76 100%);
}

/* Card styling */
.card {
    border: none;
    margin-bottom: 20px;
    border-radius: 0;
}
.card-header {
    border-radius: 0 !important;
}

/* Shadow effect */
.shadow-sm {
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important;
}

/* Hub Dashboard Styles */

/* Remove AdminLTE content container padding */
.content-wrapper {
    padding: 0 !important;
}

/* Welcome Header */
.welcome-header {
    padding: 20px;
    background: #e3f2fd; /* Light blue background */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.welcome-header h2 {
    margin: 0;
    color: #1976d2; /* Darker blue for text */
    font-size: 24px;
}

.welcome-header p {
    margin: 5px 0 0;
    color: #1976d2; /* Darker blue for text */
}

/* Small Boxes */
.small-box {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.small-box:hover {
    transform: translateY(-5px);
}

.small-box .inner {
    padding: 20px;
}

.small-box .icon {
    color: rgba(255,255,255,0.3);
    font-size: 70px;
    position: absolute;
    right: 15px;
    top: 15px;
    transition: transform 0.3s ease;
}

.small-box:hover .icon {
    transform: scale(1.1);
}

/* List Group Items */
.list-group-item {
    border: none;
    border-bottom: 1px solid #eee;
    padding: 15px;
    transition: background-color 0.3s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

.list-group-item:last-child {
    border-bottom: none;
}

/* Hub Info */
.hub-info {
    padding: 15px;
}

.info-item {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-label {
    font-weight: 600;
    color: #666;
}

.info-value {
    color: #333;
}

/* Custom Button Styles */
.btn-primary {
    background-color: #fff;
    border: 2px solid teal;
    color: teal;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: teal;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Background Gradients */
.bg-gradient-primary {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #1cc88a 0%, #13855c 100%);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #36b9cc 0%, #258391 100%);
}

/* Card Styling */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

/* Quick Actions and Hub Information Card Headers */
.card-header {
    background-color: #e3f2fd !important; /* Light blue background */
    border-bottom: 1px solid #bbdefb;
    padding: 15px 20px;
}

.card-header .card-title {
    margin: 0;
    color: #1976d2; /* Darker blue for text */
    font-size: 18px;
    font-weight: 600;
}

.card-header .card-title i {
    color: #1976d2; /* Darker blue for icons */
    margin-right: 8px;
}

/* Provider Cards */
.provider-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.provider-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.provider-card .card-body {
    padding: 20px;
}

.provider-card .provider-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.provider-card .provider-info {
    color: #666;
    margin-bottom: 5px;
}

.provider-card .provider-status {
    position: absolute;
    top: 15px;
    right: 15px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .welcome-header {
        padding: 15px;
    }
    
    .small-box .icon {
        font-size: 50px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .info-value {
        margin-top: 5px;
    }
}

/* Provider Action Buttons */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1.2;
    border-radius: 0.2rem;
    margin: 0 2px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    white-space: nowrap;
}

.btn-sm i {
    margin-right: 3px;
    font-size: 0.8rem;
}

.btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: white;
}

.btn-info:hover {
    background-color: #138496;
    border-color: #117a8b;
    box-shadow: 0 2px 5px rgba(23, 162, 184, 0.3);
    transform: translateY(-2px);
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
    box-shadow: 0 2px 5px rgba(40, 167, 69, 0.3);
    transform: translateY(-2px);
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
    box-shadow: 0 2px 5px rgba(220, 53, 69, 0.3);
    transform: translateY(-2px);
}

.btn-sm:disabled, 
.btn-sm.disabled {
    opacity: 0.65;
    pointer-events: none;
}

.btn-sm:active {
    transform: translateY(1px);
    box-shadow: none;
} 

.modal-open {
  overflow: hidden;
}

.modal-open .modal {
  overflow-x: hidden;
  overflow-y: auto;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  display: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
  outline: 0;
}

.modal-dialog {
  position: relative;
  width: auto;
  margin: 0.5rem;
  pointer-events: none;
}

.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
  transform: translate(0, -50px);
}

@media (prefers-reduced-motion: reduce) {
  .modal.fade .modal-dialog {
    transition: none;
  }
}

.modal.show .modal-dialog {
  transform: none;
}

.modal.modal-static .modal-dialog {
  transform: scale(1.02);
}

.modal-dialog-scrollable {
  display: flex;
  max-height: calc(100% - 1rem);
}

.modal-dialog-scrollable .modal-content {
  max-height: calc(100vh - 1rem);
  overflow: hidden;
}

.modal-dialog-scrollable .modal-header,
.modal-dialog-scrollable .modal-footer {
  flex-shrink: 0;
}

.modal-dialog-scrollable .modal-body {
  overflow-y: auto;
}

.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 1rem);
}

.modal-dialog-centered::before {
  display: block;
  height: calc(100vh - 1rem);
  height: min-content;
  content: "";
}

.modal-dialog-centered.modal-dialog-scrollable {
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.modal-dialog-centered.modal-dialog-scrollable .modal-content {
  max-height: none;
}

.modal-dialog-centered.modal-dialog-scrollable::before {
  content: none;
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0.3rem;
  outline: 0;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  width: 100vw;
  height: 100vh;
  background-color: #000;
}

.modal-backdrop.fade {
  opacity: 0;
}

.modal-backdrop.show {
  opacity: 0.5;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem 1rem;
  border-bottom: 1px solid #dee2e6;
  border-top-left-radius: calc(0.3rem - 1px);
  border-top-right-radius: calc(0.3rem - 1px);
}

.modal-header .close {
  padding: 1rem 1rem;
  margin: -1rem -1rem -1rem auto;
}

.modal-title {
  margin-bottom: 0;
  line-height: 1.5;
}

.modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: 1rem;
}

.modal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  padding: 0.75rem;
  border-top: 1px solid #dee2e6;
  border-bottom-right-radius: calc(0.3rem - 1px);
  border-bottom-left-radius: calc(0.3rem - 1px);
}

.modal-footer > * {
  margin: 0.25rem;
}

.modal-scrollbar-measure {
  position: absolute;
  top: -9999px;
  width: 50px;
  height: 50px;
  overflow: scroll;
}

@media (min-width: 576px) {
  .modal-dialog {
    max-width: 500px;
    margin: 1.75rem auto;
  }
  .modal-dialog-scrollable {
    max-height: calc(100% - 3.5rem);
  }
  .modal-dialog-scrollable .modal-content {
    max-height: calc(100vh - 3.5rem);
  }
  .modal-dialog-centered {
    min-height: calc(100% - 3.5rem);
  }
  .modal-dialog-centered::before {
    height: calc(100vh - 3.5rem);
    height: min-content;
  }
  .modal-sm {
    max-width: 300px;
  }
}

@media (min-width: 992px) {
  .modal-lg,
  .modal-xl {
    max-width: 1000px;
  }
}

@media (min-width: 1200px) {
  .modal-xl {
    max-width: 1140px;
  }
}
