/* ----------------------------------------------------- */
/*                      NEW COLORS                         */
/* ----------------------------------------------------- */


:root {
  --color-emerald: #012626;
  --color-teal: #065F6B;
  --color-arctic: #E3F7FA;
  --color-lavender: #D4C4FC;
  --color-amethyst: #E3D8FE;
  --color-jade: #0CD47E;
  --color-evergreen: #009156;
  --color-mint: #D2FEE1;
  --color-lemon: #F8ED91;
  --color-pearl: #FCF8DA;
}



/* ----------------------------------------------------- */
/*                      NEW UI                          */
/* ----------------------------------------------------- */


body {
   
    margin: 0;
    padding: 0;
}

body.login-page {
  background-color: #f8f9fa;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.login-page .fullscreen-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-page .login-container {
  max-width: 400px;
  width: 100%;
}
.login-page .logo-container {
  height: 200px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}
.login-page .logo-container img {
  max-height: 100%;
  width: auto;
  max-width: 100%;
}

.login-container {
  max-width: 400px;
  width: 100%;
}

.copyright {
  font-size: 0.75rem; /* Makes the text smaller */
  color: #6c757d; /* A muted color for less emphasis */
  text-align: center;
  padding: 10px 0;
  position: absolute;
  bottom: 0;
  width: 100%;
}


/* ----------------------------------------------------- */
/*                      BUTTONS                          */
/* ----------------------------------------------------- */


.btn-gj-submit {
  background-color: var(--color-evergreen);
  color: var(--color-pearl);
}

.btn-gj-submit:hover {
  background-color: var(--color-jade);
  color: var(--color-pearl);
}


.stats-display {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  padding: 10px;
  background-color: #f0f0f0;
  border-radius: 5px;
}


/* ----------------------------------------------------- */
/*                      TABLE FIELDS                     */
/* ----------------------------------------------------- */

/* Activity Feed Table Hover Styles */
#activity-feed .table tbody tr.hover-highlight {
    transition: background-color 0.2s ease;
}

#activity-feed .table tbody tr.hover-highlight:hover {
    background-color: rgba(12, 212, 126, 0.1) !important; /* Light jade color with 10% opacity */
    cursor: pointer;
}

#activity-feed .table-striped tbody tr.hover-highlight:hover {
    background-color: rgba(12, 212, 126, 0.1) !important; /* Light jade color with 10% opacity */
}

.status-complete {
  background-color: #e6ffe6; /* Light green */
  padding: 5px;
  border-radius: 4px;
}

.status-incomplete {
  background-color: #ffe6e6; /* Light red */
  padding: 5px;
  border-radius: 4px;
}

.status-complete i {
  color: #008000; /* Darker green for the icon */
}

.status-incomplete i {
  color: #ff0000; /* Red for the icon */
}

#onboardStatsTable td {
  vertical-align: middle;
}

.completion-date {
  font-size: 0.5em;
  color: #666;
  font-style: italic;
}

/* ----------------------------------------------------- */
/*                  SUPER DASHBOARD                      */
/* ----------------------------------------------------- */

/* Modern Toolbar Styles */
.toolbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #6c757d;
    transition: all 0.3s ease;
    padding: 12px 16px;
    border-radius: 8px;
    min-width: 80px;
}

.toolbar-item:hover {
    color: #007bff;
    background-color: #f8f9fa;
    transform: translateY(-2px);
    text-decoration: none;
}

.toolbar-icon {
    font-size: 24px;
    margin-bottom: 4px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: all 0.3s ease;
}

.toolbar-item:hover .toolbar-icon {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.toolbar-label {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

.toolbar-separator {
    width: 1px;
    height: 40px;
    background-color: #dee2e6;
    margin: 0 8px;
}

/* Card improvements */
.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.card-header {
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
    border-radius: 12px 12px 0 0 !important;
}

/* Table improvements */
.table {
    margin-bottom: 0;
}

.table td {
    border-top: none;
    vertical-align: top;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.table tbody tr {
    border-bottom: 1px solid #e9ecef;
}

.table tbody tr:last-child {
    border-bottom: none;
}

/* Small Table Styles for Compact Display */
.table.table-sm {
    font-size: 0.875rem;
}

.table.table-sm th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    vertical-align: middle;
}

.table.table-sm td {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
}

.table.table-sm tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.table.table-sm tbody tr:last-child td {
    border-bottom: none;
}

/* Compact table with even smaller text */
.table.table-sm.small {
    font-size: 0.75rem;
}

.table.table-sm.small th {
    font-size: 0.6875rem;
    padding: 0.375rem 0.5rem;
}

.table.table-sm.small td {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* DataTables specific styling for small tables */
#userTable.table-sm {
    font-size: 0.875rem;
}

#userTable.table-sm thead th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    vertical-align: middle;
}

#userTable.table-sm tbody td {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
}

#userTable.table-sm tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

#userTable.table-sm tbody tr:last-child td {
    border-bottom: none;
}

/* DataTables wrapper styling */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
    font-size: 0.875rem;
}

/* Attention Cards */
.attention-card {
    border: 2px solid #ffc107;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    transition: all 0.3s ease;
    overflow: hidden;
}

.attention-card:hover {
    border-color: #ffb300;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.2);
    transform: translateY(-2px);
}

.attention-card-header {
    padding: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid rgba(255, 193, 7, 0.2);
}

.attention-card-header:hover {
    background-color: rgba(255, 193, 7, 0.1);
}

.attention-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
    margin-right: 0.5rem !important;
}

.costa-rica-icon {
    background: #28a745 !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3) !important;
}

.attention-count {
    color: #856404;
    font-size: 14px;
    font-weight: 500;
}

.attention-chevron {
    color: #856404;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.attention-card-header[aria-expanded="true"] .attention-chevron {
    transform: rotate(180deg);
}

/* KPI Cards */
.kpi-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    transition: all 0.3s ease;
    overflow: hidden;
}

.kpi-card:hover {
    border-color: #007bff;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
    transform: translateY(-2px);
}

.kpi-card-header {
    padding: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
}

.kpi-card-header:hover {
    background-color: #e9ecef;
}

.kpi-card-header[aria-expanded="true"] .fas.fa-chevron-down {
    transform: rotate(180deg);
}

/* DataTables wrapper styling */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
    font-size: 0.875rem;
}

/* DataTables pagination styling */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #007bff;
    border-color: #007bff;
    color: white !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #0056b3;
    border-color: #0056b3;
    color: white !important;
}

/* DataTables length and filter styling */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

/* Ensure consistent spacing for DataTables elements */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    margin-top: 1rem;
}

/* Improved DataTables layout and positioning */
.dataTables_wrapper {
    padding: 0;
}

.dataTables_wrapper .dataTables_length {
    float: left;
    margin-bottom: 0.75rem;
}

.dataTables_wrapper .dataTables_filter {
    float: right;
    margin-bottom: 0.75rem;
}

.dataTables_wrapper .dataTables_info {
    float: left;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.dataTables_wrapper .dataTables_paginate {
    float: right;
    margin-top: 0.75rem;
}

/* Clear floats for proper layout */
.dataTables_wrapper::after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive adjustments for DataTables */
@media (max-width: 768px) {
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        float: none;
        text-align: left;
        margin-bottom: 0.5rem;
    }
    
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        float: none;
        text-align: center;
        margin-top: 0.5rem;
    }
}

/* ----------------------------------------------------- */
/*                  CLIENT DETAIL PAGES                  */
/* ----------------------------------------------------- */

/* Client sidebar and content styles */
.client-sidebar {
  background: #f8f9fa;
  border-right: 1px solid #dee2e6;
  min-height: calc(100vh - 100px);
  padding: 0;
  margin: 0;
}

.client-sidebar .nav {
  padding-left: 16px;
}

.client-sidebar .nav-link {
  color: #495057;
  border-radius: 0;
  border-left: 3px solid transparent;
  padding: 8px 16px;
  font-weight: 500;
  font-size: 0.875rem;
}

.client-sidebar .nav-link:hover {
  background-color: #e9ecef;
  color: #212529;
}

.client-sidebar .nav-link.active {
  background-color: #007bff;
  color: white;
  border-left-color: #0056b3;
}

.client-sidebar .nav-link i {
  width: 16px;
  margin-right: 8px;
  font-size: 0.875rem;
}

.client-content {
  padding: 0;
  margin: 0;
}

.client-header {
  background: white;
  border-bottom: 1px solid #dee2e6;
  padding: 20px;
  margin-bottom: 0;
}

.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 10px;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
}

/* Modern Section Layout */
.content-section {
  margin-bottom: 0;
  background: white;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  border-bottom: 1px solid #f1f3f4;
}

.content-section:last-child {
  border-bottom: none;
}

.section-header {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid #f1f3f4;
  background: #f8f9fa;
}

.section-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title i {
  font-size: 0.875rem;
}

.section-content {
  padding: 1.5rem;
}

.section-content .table {
  margin-bottom: 0;
}

.section-content .table td {
  border: none;
  padding: 0.5rem 0;
}

.section-content .table tr:not(:last-child) td {
  border-bottom: 1px solid #f8f9fa;
}

/* Hover effects for interactive elements */
.content-section:hover {
  box-shadow: none;
  transition: none;
}

/* Button styling within sections */
.section-content .btn {
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.section-content .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Remove Bootstrap column gutters */
.row .col-md-2,
.row .col-md-10,
.row .col-md-12 {
  padding-left: 0;
  padding-right: 0;
}

/* Ensure first column has no left padding */
.row .col-md-2:first-child {
  padding-left: 0;
}

/* Ensure second column has no right padding */
.row .col-md-10:last-child {
  padding-right: 0;
}

/* Override container padding for client pages */
.pta-page-content .pta-container {
  padding-top: 20px;
  padding-left: 0;
  padding-right: 0;
}

/* ----------------------------------------------------- */
/*                  MSTACKS CLIENT DETAIL PAGES          */
/* ----------------------------------------------------- */

/* Client sidebar and content styles with mStacks prefix */
.mStacks-client-sidebar {
  background: #f8f9fa;
  border-right: 1px solid #dee2e6;
  min-height: calc(100vh - 100px);
  padding: 0;
  margin: 0;
}

.mStacks-client-sidebar .nav {
  padding-left: 16px;
}

.mStacks-client-sidebar .nav-link {
  color: #495057;
  border-radius: 0;
  border-left: 3px solid transparent;
  padding: 8px 16px;
  font-weight: 500;
  font-size: 0.875rem;
}

.mStacks-client-sidebar .nav-link:hover {
  background-color: #e9ecef;
  color: #212529;
}

.mStacks-client-sidebar .nav-link.active {
  background-color: #007bff;
  color: white;
  border-left-color: #0056b3;
}

.mStacks-client-sidebar .nav-link i {
  width: 16px;
  margin-right: 8px;
  font-size: 0.875rem;
}

.mStacks-client-content {
  padding: 0;
  margin: 0;
}

.mStacks-client-header {
  background: white;
  border-bottom: 1px solid #dee2e6;
  padding: 20px;
  margin-bottom: 0;
}

.mStacks-breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 10px;
}

.mStacks-breadcrumb-item + .mStacks-breadcrumb-item::before {
  content: ">";
}

/* Modern Section Layout with mStacks prefix */
.mStacks-content-section {
  margin-bottom: 0;
  background: white;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  border-bottom: 1px solid #f1f3f4;
}

.mStacks-content-section:last-child {
  border-bottom: none;
}

.mStacks-section-header {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid #f1f3f4;
  background: #f8f9fa;
}

.mStacks-section-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mStacks-section-title i {
  font-size: 0.875rem;
}

.mStacks-section-content {
  padding: 1.5rem;
}

.mStacks-section-content .table {
  margin-bottom: 0;
}

.mStacks-section-content .table td {
  border: none;
  padding: 0.5rem 0;
}

.mStacks-section-content .table tr:not(:last-child) td {
  border-bottom: 1px solid #f8f9fa;
}

/* Hover effects for interactive elements */
.mStacks-content-section:hover {
  box-shadow: none;
  transition: none;
}

/* Button styling within sections */
.mStacks-section-content .btn {
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.mStacks-section-content .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ----------------------------------------------------- */
/*                  ADMIN ACTION TRACKING                */
/* ----------------------------------------------------- */

/* Admin action tracking card styles - consistent with attention cards */
.admin-action-tracking {
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  transition: box-shadow 0.2s ease;
}

.admin-action-tracking:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-action-tracking .card-header {
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.admin-action-tracking .card-header:hover {
  background: #e9ecef;
}

.admin-action-tracking .card-header h6 {
  color: #495057;
  margin: 0;
}

.admin-action-tracking .attention-count {
  font-size: 0.875rem;
  color: #6c757d;
}

.admin-action-tracking .attention-chevron {
  color: #6c757d;
  transition: transform 0.2s ease;
}

.admin-action-tracking .card-header[aria-expanded="true"] .attention-chevron {
  transform: rotate(180deg);
}

/* Table styling consistent with other cards */
.admin-action-tracking .table th {
  background-color: #f8f9fa;
  border-top: none;
  font-weight: 600;
  font-size: 0.875rem;
  color: #495057;
}

.admin-action-tracking .table td {
  vertical-align: middle;
  border-top: 1px solid #f1f3f4;
}

/* Summary stats styling */
.admin-action-tracking .fw-bold {
  font-weight: 600;
  color: #495057;
}

.admin-action-tracking .text-muted {
  color: #6c757d !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .admin-action-tracking .table-responsive {
    font-size: 0.875rem;
  }
}

/* Date picker styling for leaderboard */
.admin-action-tracking .form-control-sm {
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
  background-color: white;
}

.admin-action-tracking .form-control-sm:focus {
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.admin-action-tracking .form-control-sm:hover {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Daily Breakdown Table Styles */
.daily-breakdown-table {
  border-collapse: collapse;
}

.daily-breakdown-table th,
.daily-breakdown-table td {
  border-right: 1px solid #dee2e6;
  border-left: 1px solid #dee2e6;
  padding: 8px 12px;
  text-align: center;
  vertical-align: middle;
}

.daily-breakdown-table th:first-child,
.daily-breakdown-table td:first-child {
  border-left: none;
  text-align: left;
  min-width: 120px;
}

.daily-breakdown-table th:last-child,
.daily-breakdown-table td:last-child {
  border-right: none;
}

.daily-breakdown-table thead th {
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
  color: #495057;
}

.daily-breakdown-table tbody tr {
  border-bottom: 1px solid #dee2e6;
}

.daily-breakdown-table tbody tr:last-child {
  border-bottom: none;
}

.daily-breakdown-table tbody tr:hover {
  background-color: rgba(12, 212, 126, 0.05);
}

.daily-breakdown-table .text-muted {
  font-weight: 500;
  color: #6c757d;
}

.daily-breakdown-table .fw-bold {
  color: #495057;
}

/* Responsive adjustments for daily breakdown table */
@media (max-width: 768px) {
  .daily-breakdown-table {
    font-size: 0.75rem;
  }
  
  .daily-breakdown-table th,
  .daily-breakdown-table td {
    padding: 6px 8px;
  }
  
  .daily-breakdown-table th:first-child,
  .daily-breakdown-table td:first-child {
    min-width: 100px;
  }
}

/* Completion Cards - Circles and Radial Dial */
.completion-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #007bff, #0056b3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.completion-circle-spacing {
  margin-right: 30px;
}

.completion-number {
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
}

.completion-label {
  font-size: 0.75rem;
  color: #6c757d;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}

.completion-label div {
  line-height: 1.2;
}

.completion-breakdown {
  font-size: 0.8rem;
  color: #6c757d;
  font-weight: 500;
  margin-top: -2px;
}

.completion-radial {
  position: relative;
  display: inline-block;
  margin: 0 auto;
  height: 48px;
  width: 48px;
}

.radial-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  font-size: 0.8rem;
  color: #495057;
}

/* Responsive adjustments for completion cards */
@media (max-width: 768px) {
  .completion-circle {
    width: 40px;
    height: 40px;
  }
  
  .completion-number {
    font-size: 1rem;
  }
  
  .completion-label {
    font-size: 0.7rem;
  }
  
  .completion-radial svg {
    width: 50px;
    height: 50px;
  }
  
  .radial-text {
    font-size: 0.8rem;
  }
}