body {
    font-family: 'Helvetica Neue', sans-serif;
    background-color: #fff;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: auto;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.1);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f8f8f8;
    font-size: 14px;
    font-weight: 450;
    padding: .8em;
}

tr:hover {
    background-color: #f5f5f5;
}

.form-control {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 8px;
    font-size: 14px;
    width: 100%;
    margin-bottom: 20px; /* Space for the search bar */
}

/* Utility classes for flex layout */
.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

@media only screen and (max-width: 600px) {
    .container {
        padding: 10px;
        box-shadow: none;
        border-radius: 0;
        max-width: none;
    }

    /* Stack buttons and search on small screens */
    .d-flex {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-control {
        width: 100%;
        margin-bottom: 10px; /* Adjust space for the search bar on mobile */
    }

    .btn {
        width: 100%; /* Full width buttons on mobile */
        margin-bottom: 10px;
    }
}

/* Existing styles ... */

.action-buttons {
    display: flex;
    gap: 8px; /* Adjust the gap as needed */
    flex-wrap: wrap;
}

/* For small devices, you may want to adjust the button size or spacing */
@media (max-width: 768px) {
    .action-buttons {
        gap: 4px; /* Smaller gap for smaller devices */
        flex-direction: column;
        align-items: flex-start;
    }

    .action-buttons form,
    .action-buttons a {
        margin-bottom: 4px;
    }
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* New styles for header table */
.header-table {
    width: 50%; /* Smaller width */
    margin-left: 0; /* Center the table */
    font-size: 0.8em; /* Smaller font size */
}

.tooltip-icon {
    display: inline-block;
    margin-left: 5px;
    cursor: help;
    color: #17a2b8; /* Bootstrap's info color */
}

.tooltip-icon:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -5px;
    left: 105%;
    z-index: 1;
    background-color: black;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
}
.custom-file-upload {
    display: inline-block;
    padding: 6px 12px;
    cursor: pointer;
    background: #007bff;
    color: white;
    border-radius: 4px;
    margin-top: 5px;
}

.custom-file-upload:hover {
    background: #0056b3;
}

#documents {
    /*display: none;*/
}

.reveal-button {
        padding: 5px 10px;
        border-radius: 5px;
        cursor: pointer;
        border: none;
        transition: background-color 0.3s;
    }

    .reveal-button.reveal {
        background-color: #287953; /* Blue background */
        color: white;
    }

    .reveal-button.reveal:hover {
        background-color: #828583; /* Darker blue on hover */
    }

    .reveal-button.conceal {
        background-color: #dc3545; /* Red background */
        color: white;
    }

    .reveal-button.conceal:hover {
        background-color: #c82333; /* Darker red on hover */
    }

    /* Add this to your main stylesheet or inside a <style> tag in the Blade file */
.card {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1); /* Example shadow */
}

.card-title {
    color: #6c757d; /* Grey title */
}

/* Custom Pagination Styles */
.pagination a.page-link {
    background-color: transparent; /* Remove any background */
    color: #007bff; /* Bootstrap default blue for links */
    border: 1px solid #dee2e6; /* Bootstrap default border color */
}

.pagination a.page-link:hover {
    background-color: #e9ecef; /* Bootstrap hover background color */
}

.pagination .page-item.active .page-link {
    background-color: #007bff; /* Active link background color */
    color: white; /* Active link text color */
}

.pagination .page-item.disabled .page-link {
    color: #6c757d; /* Disabled text color */
}

.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 1050; /* Ensure it's above most elements */
}

.loading-indicator .spinner-border {
    width: 3rem;
    height: 3rem;
}

.bg-light-danger {
    background-color: #f8d7da !important; /* Light red */
    color: #721c24 !important; /* Darker red for text */
}

.bg-light-warning {
    background-color: #fff3cd !important; /* Light yellow */
    color: #856404 !important; /* Darker yellow for text */
}

.bg-light-success {
    background-color: #d4edda !important; /* Light green */
    color: #155724 !important; /* Darker green for text */
}

.bg-light-success,
.bg-light-danger,
.bg-light-warning {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.75rem;
    border-radius: 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    width: auto; /* Adjusts the width to fit the text content */
}

/* Base Badge Class */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 1rem; /* Rounded corners */
    font-size: 0.875rem; /* Consistent font size */
    font-weight: 500;
    white-space: nowrap; /* Prevents text wrapping */
    border: 1px solid transparent; /* Allows border customization */
}

/* Status Variants */
.badge--success {
    background-color: rgba(72, 180, 97, 0.15); /* Light green background */
    color: #48b461; /* Green text */
  /*   border-color: rgba(72, 180, 97, 0.3); Subtle green border */
}

.badge--warning {
    background-color: rgba(255, 193, 7, 0.15); /* Light yellow background */
    color: #ffc107; /* Yellow text */
   /* border-color: rgba(255, 193, 7, 0.3);  Subtle yellow border */
}

.badge--danger {
    background-color: rgba(220, 53, 69, 0.15); /* Light red background */
    color: #dc3545; /* Red text */
 /*   border-color: rgba(220, 53, 69, 0.3);  Subtle red border */
}

.badge--neutral {
    background-color: rgba(108, 117, 125, 0.15); /* Light gray background */
    color: #6c757d; /* Neutral gray text */
  /*  border-color: rgba(108, 117, 125, 0.3);  Subtle gray border */
}

/* Icon spacing */
.badge i {
    margin-right: 5px; /* Space between icon and text */
}

/* Base Styles */
.user-details-card {
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.user-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}

.user-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.user-info p {
    margin: 5px 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.user-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    align-items: center;
}

.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    margin-right: 5px;
}

.badge-success {
    background-color: rgba(72, 180, 97, 0.15);
    color: #48b461;
}

.badge-warning {
    background-color: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

.badge-info {
    background-color: rgba(23, 162, 184, 0.15);
    color: #17a2b8;
}

.badge-primary {
    background-color: rgba(0, 123, 255, 0.15);
    color: #007bff;
}

.badge-danger {
    background-color: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

.badge-danger {
    background-color: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

.badge-secondary {
    background-color: rgba(108, 117, 125, 0.15);
    color: #6c757d;
}
.badge-light {
    background-color: rgba(248, 249, 250, 0.15);
    color: #f8f9fa;
}
.badge-dark {
    background-color: rgba(52, 58, 64, 0.15);
    color: #343a40;
}



.status-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.tabs-container {
    margin-top: 30px;
    border-bottom: 1px solid #dcdcdc;
}

.nav-tabs .nav-link.active {
    font-weight: bold;
    border-bottom: 2px solid #007bff;
}

/*
.badge-primary {
    background-color: rgba(0, 123, 255, 0.15);
    color: #007bff;
    padding: 0.3rem 0.6rem;
    border-radius: 0.25rem;
    font-size: 0.85rem;
}
*/

.btn-outline-primary {
    border-color: #007bff;
    color: #007bff;
}
.btn-outline-primary:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

/* ─── Card container ─── */
.metrics-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }

  /* ─── Centered, smaller icon box ─── */
  .icon-box {
    width: 3rem;
    height: 3rem;
    margin: 1rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
  }
  .icon-box i {
    font-size: 1.5rem !important;
    line-height: 1;
  }

  /* ─── Responsive number sizing ─── */
  .metrics-card .card-body p {
    font-size: clamp(1.3rem, 2vw, 2rem);
    white-space: nowrap;
    margin-bottom: 0;
  }

  /* ─── Link color ─── */
  .text-purple {
    color: #9b5de5 !important;
  }

  /* ─── Hover lift ─── */
  .metrics-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.1);
  }
