/* Import public page consistency improvements */
@import url('public-consistency.css');

* {
  min-width: 0;
}

.container {
  background: var(--bs-white);
  border-radius: 6px;
  padding-bottom: 20px;
  padding-top: 10px;
}

html,
body {
  background: #f6f6f6;
}

.form-control.required {
  border-left-color: rgb(208, 50, 50);
  border-left-width: thick;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Raleway", sans-serif;
}

.fit-cover {
  object-fit: cover;
}

.navbar-slim {
  padding-bottom: 8px;
  padding-top: 8px;
}

.fas.fa-external-link-alt {
  margin-left: 10px;
}

.in-page-donate-button:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease-in-out;
}

.donate-button {
  --bs-primary: #0d6efd;
  --bs-primary-rgb: 13, 110, 253;
  border-radius: 12px;
  box-shadow: 1px 2px 4px var(--bs-gray-900);
  background: rgba(13, 110, 253, 0.86);
}

a {
  font-weight: bold;
}

.clean-block.clean-form.dark {
  padding-top: 30px;
  padding-bottom: 30px;
}

.giant-donate-button {
  box-shadow: 1px 2px 4px var(--bs-gray-900);
}

.page-button {
  box-shadow: 1px 0 4px var(--bs-gray-500);
}

.clean-block.dark {
  padding-top: 30px;
  padding-bottom: 30px;
}

.page-subcontainer {
  margin-top: 24px;
}

.figure-half-size-left {
  width: 50%;
  margin-right: 11px;
}

.mc-figure-table-header {
  margin-left: 10px;
  margin-right: 10px;
}

.table-cell-30 {
  width: 30%;
}

.clean-block.clean-hero {
  color: rgba(173, 181, 189, 0.7);
  min-height: 170px;

}

body {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 95%, rgba(246, 246, 246, 1)), url('../../assets/img/veteranmemorialphoto-bw.webp?h=774f034fa63435723addd6a69da1bc3e') no-repeat center center;
  background-size: cover;
  background-attachment: scroll;
}

.clean-hero {
  position: relative;
  overflow: hidden;
}

.clean-hero .d-flex {
  position: relative;
  z-index: 1;
}

.mc-platinum-row-header {
  text-align: right;
  background: linear-gradient(90deg, #e5e4e2 0%, #fefdfc 63%);
  border-radius: 20px;
}

.mc-gold-row-header {
  text-align: right;
  background: linear-gradient(90deg, #ffd700, white);
  border-radius: 20px;
}

.mc-silver-row-header {
  text-align: right;
  background: linear-gradient(90deg, #808080 43%, var(--bs-white) 100%);
  border-radius: 20px;
}

.mc-bronze-row-header {
  text-align: right;
  background: linear-gradient(90deg, #cd7f32, white);
  border-radius: 20px;
}

.text-break ul {
  padding-left: 20px;
  /* Adjust the padding as needed */
  list-style-position: inside;
  /* Ensure the bullet points are inside the padding */
}

.text-break li {
  margin-left: 20px;
  /* Add margin to align the text properly */
  text-indent: -20px;
  /* Negative indent to align the first line with the bullet */
  padding-left: 20px;
  /* Padding to ensure the text is properly indented */
}


.record-label {
  float: left;
  clear: left;
  font-weight: bold;
  margin-left: 14px;
}

.record-value {
  float: left;
  margin-left: 30px;
}

.result-card {
  transition: all 0.3s;
}

.result-card:hover {
  color: var(--bs-primary);
  background-color: #f6f6f6;
  border-radius: 0;
  border-left: rgba(0, 114, 221, 0.867) 5px solid;
  border-right: rgba(0, 114, 221, 0.867) 5px solid;
}

a.result-card-link {
  color: inherit;
  text-decoration: inherit;
}

.mc-leader-row-header {
  text-align: center;
  border-top: 1px solid var(--bs-gray-500);
  border-radius: 20px;
}

.carousel-inner {
  height: 0;
  padding-bottom: 100%;
}

.carousel-item {
  position: absolute !important;
  /* Bootstrap is insistent */
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.carousel-item img {
  height: 100%;
  /* Bootstrap handles width already */
  object-fit: contain;
  /* or 'contain' if you want stretch instead of crop */
}

.carousel .carousel-indicators li {
  background-color: #e10f0f;
  background-color: rgba(70, 70, 70, 0.25);
}

.carousel .carousel-indicators .active {
  background-color: #444;
}

/* 
* Hack to allow ag-grid to word break instead of standard text break 
* https: //stackoverflow.com/questions/70024169/is-it-possible-to-break-word-in-space-in-ag-grid-wrap-text
*/
.ag-cell-wrap-text {
  word-break: break-word;
}

/* 
* Hack to keep quill container from overflowing
* https://github.com/quilljs/quill/issues/486#issuecomment-1211314394
*/
.ql-container {
  height: calc(100% - 42px);
}

.ag-theme-alpine .ag-cell-value {
  line-height: 1.4;
  word-break: normal;
}

.toast {
  background-color: var(--bs-light);
  color: var(--bs-dark);
  font-size: 16px;
}

.toast-header {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 18px;
}

.toast-body {
  background-color: rgba(255, 255, 255, 0.15);
  font-size: 16px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 11050;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5) !important;
}

.modal-backdrop {
  opacity: 0.5;
  background-color: rgba(0, 0, 0, 0.5) !important;
}

.modal-news-image {
  height: 300px;
  /* Adjust this value as needed */
  object-fit: contain;
  /* This will ensure the image maintains its aspect ratio while fitting within the box */
  width: 100%;
  /* This will ensure the image takes the full width of its container */
}

/* Change the backdrop that appears when the search box appears */
.offcanvas-backdrop {
  background-color: rgba(0, 0, 0, 0.5) !important;
}

.fade {
  opacity: 0;
  transition: opacity 0.15s linear;
}

.fade.show {
  opacity: 1;
}

.dirty {
  border-color: var(--bs-warning);
}

.custom-file-input:valid {
  border-color: var(--bs-warning);
}

/* Style for "Add Photo" row */
#add-photo-row {
  background-color: #f8f9fa;
  border-radius: 0.25rem;
  padding: 1rem;
  margin: 1rem;
}

/* Style for file input */
#photo-file {
  position: absolute;
  left: -9999px;
}

#photo-label {
  display: inline-block;
  width: auto;
  height: auto;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  cursor: pointer;
}

#photo-label:hover {
  background-color: #e9ecef;
}

#photo-label:active {
  background-color: #dee2e6;
}

.input-group {
  position: relative;
}

.selected-file {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.375rem 0.75rem;
  background-color: #f8f9fa;
  border-right: none;
  border-radius: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 100px);
  color: #6c757d;
  font-style: italic;
}

.ag-cell div p {
  margin-bottom: 0;
}

.card-img-top {
  max-height: 200px;
  object-fit: contain;
  margin: auto;
}

.card {
  height: 100%;
}

/* Toast animation speed customizations */
.animate__bounceInUp {
  --animate-duration: 1s;
  animation-duration: var(--animate-duration);
}

.animate__bounceOutDown {
  --animate-duration: 1s;
  animation-duration: var(--animate-duration);
}

select {
  font-size: 16px;
  padding: 10px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background-color: #fff;
  width: 100%;
  max-width: 100%;
}

select option {
  font-size: 16px;
  padding: 10px;
  background-color: #fff;
  color: #212529;
}

select option:hover {
  background-color: #f8f9fa;
}

/* Little subtle somethin' somethin' for the menu bar items */
.nav-link {
  transition: color 0.2s ease-in-out;
  -webkit-text-stroke: 1px transparent;
}

.nav-link:hover {
  color: #c8cacc !important;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
}

.dropdown-header {
  background-image: linear-gradient(to right, #007bff23, #6c757d00);
  color: #fff;
  font-weight: bold;
  padding: 0.5rem 1rem;
  margin: 0;
}

.dropdown-item:hover {
  transition: color 0.1s ease-in;
  color: #fff;
}

.main-content-backdrop {
  background: linear-gradient(90deg, #c5c5cb98 0%, white 90%) !important;
}

.align-center {
  text-align: center;
}

.login,
.register {
  width: 400px;
  background-color: #ffffff;
  box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.3);
  margin: 100px auto;
}

.login h1,
.register h1 {
  text-align: center;
  color: #5b6574;
  font-size: 24px;
  padding: 20px 0 20px 0;
  border-bottom: 1px solid #dee0e4;
}

.login .links,
.register .links {
  display: flex;
  padding: 0 15px;
}

.login .links a,
.register .links a {
  color: #9da3ac;
  text-decoration: none;
  display: inline-flex;
  padding: 0 10px 10px 10px;
  font-weight: 500;
}

.login .links a:hover,
.register .links a:hover {
  color: #9da3ac;
}

.login .links a.active,
.register .links a.active {
  border-bottom: 3px solid #3274d6;
  color: #3274d6;
}

.login form,
.register form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 20px;
}

.login form label,
.register form label {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 12%;
  height: 50px;
  background-color: #3274d6;
  color: #ffffff;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.login form input[type="password"],
.login form input[type="text"],
.login form input[type="email"],
.register form input[type="password"],
.register form input[type="text"],
.register form input[type="email"] {
  width: 80%;
  height: 50px;
  border: 1px solid #dee0e4;
  border-left: 0;
  margin-bottom: 20px;
  padding: 0 15px;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  outline: 0;
}

.login form input[type="password"]::placeholder,
.login form input[type="text"]::placeholder,
.login form input[type="email"]::placeholder,
.register form input[type="password"]::placeholder,
.register form input[type="text"]::placeholder,
.register form input[type="email"]::placeholder {
  color: #8e97a3;
}

.login form input[type="password"]:focus,
.login form input[type="text"]:focus,
.login form input[type="email"]:focus,
.register form input[type="password"]:focus,
.register form input[type="text"]:focus,
.register form input[type="email"]:focus {
  border: 1px solid #c2c6cd;
  border-left: 0;
}

.login form input[type="submit"],
.register form input[type="submit"] {
  width: 100%;
  padding: 15px;
  margin-top: 20px;
  background-color: #3274d6;
  border: 0;
  cursor: pointer;
  font-weight: 500;
  color: #ffffff;
  transition: background-color 0.2s;
  border-radius: 0;
  appearance: none;
}

.login form input[type="submit"]:hover,
.register form input[type="submit"]:hover {
  background-color: #2868c7;
  transition: background-color 0.2s;
}

.login form #rememberme,
.register form #rememberme {
  width: 100%;
  height: auto;
  padding: 5px 20px;
  background-color: transparent;
  color: #000;
  justify-content: flex-start;
}

.login form #rememberme input,
.register form #rememberme input {
  transform: scale(1.3);
  margin-right: 7px;
}

.login form .msg,
.register form .msg {
  padding: 0 20px;
  width: 100%;
}

.login form .captcha,
.register form .captcha {
  display: flex;
}

.login form .fb-btn,
.login form .gl-btn,
.register form .fb-btn,
.register form .gl-btn {
  display: flex;
  text-decoration: none;
  position: relative;
  border-radius: 4px;
  text-align: center;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  width: 92%;
  margin: 15px 0 5px 0;
  padding: 15px;
  transition: background-color 0.2s;
}

.login form .fb-btn i,
.login form .gl-btn i,
.register form .fb-btn i,
.register form .gl-btn i {
  position: absolute;
  left: 15px;
}

.login form .fb-btn:hover,
.login form .gl-btn:hover,
.register form .fb-btn:hover,
.register form .gl-btn:hover {
  color: #fff;
  transition: background-color 0.2s;
}

.login form .fb-btn,
.register form .fb-btn {
  background-color: #507CBF;
}

.login form .fb-btn:hover,
.register form .fb-btn:hover {
  background-color: #426fb4;
}

.login form .gl-btn,
.register form .gl-btn {
  background-color: #d6523e;
}

.login form .gl-btn:hover,
.register form .gl-btn:hover {
  background-color: #cf412c;
}

.login form>a,
.register form>a {
  text-decoration: none;
  color: #5b6574;
  width: 100%;
  padding: 5px 20px;
}

.login form>a:hover,
.register form>a:hover {
  color: #394049;
}

ul.mission-list li {
  display: flex;
}

.tooltip,
.custom-table-tooltip,
.bio-tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
  border: 1px solid #333;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  background-color: #f9f9f9;
  font-size: 1.2em;
  padding: 10px;
}

.tooltip-inner {
  color: #333;
  background-color: #f9f9f9;
  font-size: 14px;
  padding: 10px;
}

.bio-tooltip {
  border: 1px solid #ccc;
  background-color: #f5f5f5;
  padding: 5px 10px;
  border-radius: 4px;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
  font-size: 16px;
}

.tooltip .arrow::before {
  border-top-color: #333;
  /* Change the arrow color */
}

.cta-container {
  display: flex;
  gap: 2em;
  justify-content: center;
  margin: 2em 0 3em 0;
  /* Increased bottom margin */
  flex-wrap: wrap;
}

.cta-section {
  background: #f4f4f4;
  padding: 1.5em;
  border-radius: 8px;
  text-align: center;
  flex: 1 1 250px;
  min-width: 250px;
  max-width: 350px;
  box-sizing: border-box;
}

.cta-button {
  display: inline-block;
  margin-top: 1em;
  padding: 0.75em 1.5em;
  background: #0078d4;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
}

.cta-button:hover {
  background: #005fa3;
}

.card {
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding-top: 0.5rem;
}

.card-title {
  font-size: 1.2rem;
  font-weight: bold;
}

.card-text {
  font-size: 1rem;
}

.card-body {
  padding-top: 1.5rem;
  /* Adjust as needed */
}

.nomination-option {
  background: #f8fafc;
  border: 1.5px solid #e0e7ef;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s, border-color 0.2s;
  min-height: 100%;
  position: relative;
}

.nomination-option:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
  border-color: #0078d4;
}

.nomination-option .option-icon {
  font-size: 2.5rem;
  color: #0078d4;
  margin-bottom: 0.5rem;
}

.nomination-option h3 {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.modal-body {
  position: relative;
  max-height: 70vh;
  overflow-y: auto;
}

.leader-bio-trigger .bi-info-circle {
  transition: color 0.2s, transform 0.2s;
}

.leader-bio-trigger:hover .bi-info-circle,
.leader-bio-trigger:focus .bi-info-circle {
  color: #0d6efd;
  /* Bootstrap primary */
  transform: scale(1.2) rotate(-10deg);
  cursor: pointer;
}

.patron-card {
  transition: transform 0.15s, box-shadow 0.15s;
  background: #f8fafc;
}

.patron-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}

.patron-link:hover {
  color: #0d6efd;
  text-decoration: underline;
}

/* Optional: Bronze color if not in your theme */
.text-brown {
  color: #b08d57;
}

.patron-tier-section {
  border-top: 3px solid #e3eaf3;
  border-bottom: 3px solid #e3eaf3;
  margin-bottom: 2.5rem !important;
  margin-top: 2.5rem !important;
  background: #f4f7fa;
}

.mc-medal-image {
  margin-right: 10px;
  margin-left: 10px;
  height: 140px;
  width: 100%;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 0.5rem;
  padding: 0.5rem;
  display: block;
}

.medal-title {
  min-height: 3.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b22234;
}

:root {
  --bs-primary: #22356f;
}

/* Modern, readable, and responsive ag-Grid styling for your site */

/* Main grid container */
.ag-theme-alpine {
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  font-family: 'Montserrat', 'Raleway', Arial, sans-serif;
  font-size: 1rem;
  background: #f8fafc;
  overflow-x: auto;
}

/* Table header and footer */
.ag-theme-alpine .ag-header,
.ag-theme-alpine .ag-footer {
  background: #22356f;
  color: #fff;
  font-weight: 600;
  border-radius: 12px 12px 0 0;
}

/* Header and footer cell height and padding */
.ag-theme-alpine .ag-header-cell,
.ag-theme-alpine .ag-footer-cell {
  min-height: 54px;
  padding-top: 12px;
  padding-bottom: 12px;
  line-height: 1.3;
  white-space: normal !important;
  vertical-align: middle;
  font-size: 1.05em;
}

.ag-theme-alpine .ag-row {
  font-size: 1.05em;
}

.ag-theme-alpine .ag-cell {
  min-height: 40px;
  padding-top: 12px;
  padding-bottom: 12px;
  vertical-align: middle;
}

/* Zebra striping for rows */
.ag-theme-alpine .ag-row-even {
  background: #f4f7fa;
}

.ag-theme-alpine .ag-row-odd {
  background: #fff;
}

/* Row hover effect */
.ag-theme-alpine .ag-row-hover {
  background: #e3eaf3 !important;
  cursor: pointer;
}

/* Custom tooltip style */
.ag-theme-alpine .ag-tooltip {
  background: #22356f;
  color: #fff;
  border-radius: 8px;
  font-size: 1em;
  padding: 0.75em 1em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  max-width: 250px;
  word-break: break-word;
}

.medal-header-img {
  max-width: 140px;
  max-height: 140px;
  background: #f8fafc;
  border-radius: 0.5rem;
  padding: 0.5rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Admin-specific styles */
.admin-card-icon {
    font-size: 1.2em;
    opacity: 0.8;
}

.quick-action-btn {
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.stats-card {
    transition: transform 0.2s ease;
}

.stats-card:hover {
    transform: translateY(-2px);
}

.admin-badge {
    font-size: 0.85em;
    font-weight: 600;
}

/* Responsive improvements for admin tables */
@media (max-width: 768px) {
    .admin-table-container {
        overflow-x: auto;
    }
    
    .quick-actions .btn {
        margin-bottom: 0.5rem;
    }
    
    .admin-stats-card .list-group-item {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Admin navigation improvements */
.admin-nav-brand {
    font-size: 1.1rem;
    font-weight: 600;
}

.admin-nav-link {
    border-radius: 0.375rem;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

.admin-nav-link:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Form improvements */
.admin-form-section {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-form-section h5 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Loading states */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    width: 2rem;
    height: 2rem;
    border: 0.25rem solid #dee2e6;
    border-top: 0.25rem solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Mobile Responsiveness for Tables */

/* Intermediate breakpoint for better header handling */
@media (max-width: 992px) and (min-width: 769px) {
    .ag-theme-alpine .ag-header-cell-text {
        font-size: 0.9rem;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .ag-theme-alpine .ag-header-cell {
        min-width: 100px !important;
    }
}

@media (max-width: 768px) {
    .ag-theme-alpine {
        font-size: 0.85rem;
    }
    
    .ag-theme-alpine .ag-header-cell {
        padding: 8px 4px;
        min-width: 80px !important;
    }
    
    .ag-theme-alpine .ag-cell {
        padding: 8px 4px;
        line-height: 1.3;
    }
    
    .ag-theme-alpine .ag-header-cell-text {
        font-size: 0.8rem;
        font-weight: 600;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: 1.2;
    }
    
    .ag-theme-alpine .ag-header-cell-label {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        height: auto !important;
        min-height: 32px;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    /* Hide less important columns on mobile */
    .ag-theme-alpine .ag-header-cell[col-id="ServiceBranch"],
    .ag-theme-alpine .ag-cell[col-id="ServiceBranch"] {
        display: none;
    }
    
    /* Make name column wider on mobile since we're hiding other columns */
    .ag-theme-alpine .ag-header-cell[col-id="Name"],
    .ag-theme-alpine .ag-cell[col-id="Name"] {
        min-width: 120px !important;
        flex: 2;
    }
    
    /* Compact medals column */
    .ag-theme-alpine .ag-header-cell[col-id="MedalsEarned"],
    .ag-theme-alpine .ag-cell[col-id="MedalsEarned"] {
        min-width: 100px !important;
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .ag-theme-alpine {
        font-size: 0.8rem;
        min-height: 300px;
    }
    
    .ag-theme-alpine .ag-header-cell {
        padding: 6px 3px;
        min-width: 70px !important;
    }
    
    .ag-theme-alpine .ag-cell {
        padding: 6px 3px;
        line-height: 1.2;
    }
    
    .ag-theme-alpine .ag-header-cell-text {
        font-size: 0.75rem;
    }
    
    /* Hide rank column on very small screens */
    .ag-theme-alpine .ag-header-cell[col-id="Rank"],
    .ag-theme-alpine .ag-cell[col-id="Rank"] {
        display: none;
    }
    
    /* Make remaining columns use full width */
    .ag-theme-alpine .ag-header-cell[col-id="Name"],
    .ag-theme-alpine .ag-cell[col-id="Name"] {
        min-width: 140px !important;
        flex: 3;
    }
    
    .ag-theme-alpine .ag-header-cell[col-id="MedalsEarned"],
    .ag-theme-alpine .ag-cell[col-id="MedalsEarned"] {
        min-width: 80px !important;
        flex: 2;
        font-size: 0.7rem;
    }
}

/* Table responsive wrapper improvements */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .table-responsive table {
        font-size: 0.85rem;
    }
    
    .table-responsive th,
    .table-responsive td {
        padding: 0.5rem 0.25rem;
        white-space: nowrap;
        min-width: 80px;
    }
    
    .table-responsive th {
        font-size: 0.8rem;
        font-weight: 600;
        background-color: var(--bs-light);
        position: sticky;
        top: 0;
        z-index: 10;
    }
}