/* ====================== THEME VARIABLES & RESETS ====================== */

/*:root {
    --asme-dark-blue: #00082d;
    --asme-deep-blue: #041d56;
    --asme-medium-blue: #0f2473;
    --asme-light-blue: #266ca8;
    --asme-pale-blue: #ade0fb;
    --asme-gray: #e1e5ee;

    --bg-dark: #0a0a1a;
    --bg-darker: #050510;
    --text-light: #f0f0f0;
    --text-lighter: #ffffff;
    --card-dark: #1a1a2e;
}*/


:root {
    --bg-dark: #0a0a1a;
    --bg-darker: #050510;
    --card-dark: #1a1a2e;
    --text-light: #f0f0f0;
    --text-secondary: #ade0fb;
    --text-lighter: #ffffff;
    --border-color: rgba(173, 224, 251, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --logo-filter: brightness(0) invert(1);

    --asme-dark-blue: #00082d;
    --asme-deep-blue: #041d56;
    --asme-medium-blue: #0f2473;
    --asme-light-blue: #266ca8;
    --asme-pale-blue: #ade0fb;
    --asme-gray: #e1e5ee;

    --nav-scrolled-bg: rgba(15, 23, 42, 0.95);
    --btn-outline-hover-bg: rgba(173, 224, 251, 0.1);

    --icon-fill: #b396d0;

    --notifications-color: #fff;

    --bg-element: rgba(173, 224, 251, 0.1);
}

/*[data-theme="light"] {
    --bg-dark: #f4f3ee;
    --bg-darker: #ffffff;         
    --card-dark: #f4f3ee;         
    --text-light: #1a1a1a;     
    --text-secondary: #2d3a55;   
    --text-lighter: #000000;      

    --asme-dark-blue: #1c2454;  
    --asme-deep-blue: #15314b;   
    --asme-medium-blue: #39597e;  
    --asme-light-blue: #6e9fc0;  
    --asme-pale-blue: #0f2a71;   
    --asme-gray: #333533;         

    --border-color: rgba(0, 0, 0, 0.15);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --logo-filter: none; 

    --notifications-color: #333533;

    --nav-scrolled-bg: rgba(255, 255, 255, 0.95);
    --btn-outline-hover-bg: rgba(46, 107, 181, 0.1);

    --bg-element: rgba(73, 80, 87, 0.5);

    --icon-fill: #f4c501; 
    --icon-fill-hover: #444444;
}

[data-theme="dark"] {
    --icon-fill: #ffffff;   
    --icon-fill-hover: #dddddd;
}*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

html {
  transition: 
    background-color 0.3s ease,
    color 0.3s ease;
}

body {
    width: 100%;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    transition: 
      background-color 0.3s ease,
      color 0.3s ease;
}

a, button, input, select, textarea {
  transition: 
    color 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.card, .btn, .nav-links a, .sidebar-nav a {
  transition: 
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    color 0.3s ease;
}

/* Theme Toggle Styles */
.theme-toggle {
  --size: 2rem;
  --icon-fill: var(--text-secondary);
  --icon-fill-hover: var(--text-lighter);
  
  background: none;
  border: none;
  padding: 0;
  
  inline-size: var(--size);
  block-size: var(--size);
  aspect-ratio: 1;
  border-radius: 50%;
  
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  outline-offset: 5px;
}

.theme-toggle > svg {
  inline-size: 100%;
  block-size: 100%;
  stroke-linecap: round;
}

.sun-moon {
  fill: var(--icon-fill);
  transition: fill 0.3s ease;
}

.theme-toggle:hover .sun-moon {
  fill: var(--icon-fill-hover);
}

.sun {
  transform-origin: center center;
  transition: transform 0.5s cubic-bezier(.5,1.25,.75,1.25);
}

.sun-beams {
  transform-origin: center center;
  transition: 
    transform 0.5s cubic-bezier(.5,1.5,.75,1.25),
    opacity 0.5s cubic-bezier(.25,.8,.25,1);
}

[data-theme="dark"] .sun {
  transform: scale(1.75);
}

[data-theme="dark"] .sun-beams {
  opacity: 0;
  transform: rotateZ(-25deg);
}

[data-theme="dark"] .moon > circle {
  transform: translateX(-7px);
}

@supports (cx: 1) {
  [data-theme="dark"] .moon > circle {
    cx: 17;
    transform: translateX(0);
  }
}

/* ====================== ANIMATED BACKGROUND ====================== */
.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(60px);
    animation: float 15s infinite ease-in-out;
}

.bg-particle {
    position: absolute;
    border-radius: 50%;
    background: var(--bg-element);
    filter: blur(1px);
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(10px, -20px) rotate(5deg);
    }
    50% {
        transform: translate(-15px, -10px) rotate(-5deg);
    }
    75% {
        transform: translate(5px, 15px) rotate(3deg);
    }
}

/* ====================== NAVIGATION ====================== */
/* User Navigation (non-admin pages) */
body:not(.admin-page) nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: var(--bg-darker);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: sticky; /* Changed from fixed to sticky */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Admin Navigation (reset positioning) */
body.admin-page nav {
    position: relative;
    background-color: var(--bg-darker);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Scrolled state for user nav */
body:not(.admin-page) nav.scrolled {
    background-color: var(--nav-scrolled-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 5%;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* Logo */
.logo {
    height: 40px;
    transition: transform 0.3s ease;
    filter: var(--logo-filter);
    margin-right: auto; /* Added this line to push nav items right */
}
.logo:hover {
    transform: scale(1.05);
}

/* Nav Links */
.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    list-style: none;
    margin-left: auto; /* Added this line to ensure right alignment */
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--asme-light-blue);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--asme-pale-blue);
}

.nav-links a:hover:after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--asme-light-blue);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(38,108,168,0.3);
}

.btn-primary:hover {
    background-color: var(--asme-medium-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(38,108,168,0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--asme-pale-blue);
    border: 2px solid var(--asme-pale-blue);
}

.btn-outline:hover {
    background-color: var(--btn-outline-hover-bg);
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1000;
    background: transparent;
    border: none;
}

.mobile-menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--asme-pale-blue);
    margin: 4px 0;
    transition: all 0.3s ease;
}

/* Active state transforms */
.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ====================== NOTIFICATIONS ====================== */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.notification-dropdown {
    width: 380px;
    max-height: 500px;
    overflow: hidden;
    padding: 0;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    background: var(--card-dark);
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    display: none;
}

.notification-dropdown.show {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 15px 20px;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-weight: 600;
    color: var(--asme-pale-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-container {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--asme-light-blue) transparent;
}

.notification-container::-webkit-scrollbar {
    width: 6px;
}

.notification-container::-webkit-scrollbar-thumb {
    background-color: var(--asme-light-blue);
    border-radius: 3px;
}

.notification-item {
    display: flex;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.2s ease;
    position: relative;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background: rgba(38, 108, 168, 0.15);
    transform: translateX(3px);
}

.notification-item.unread {
    background: rgba(38, 108, 168, 0.1);
    border-left: 3px solid var(--asme-light-blue);
}

.notification-icon {
    margin-right: 15px;
    color: var(--asme-light-blue);
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(38, 108, 168, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-icon svg {
    width: 20px;
    height: 20px;
}

.notification-content {
    flex-grow: 1;
}

.notification-content h6 {
    margin-bottom: 5px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-lighter);
}

.notification-content p {
    margin-bottom: 5px;
    font-size: 0.85rem;
    color: var(--asme-pale-blue);
    line-height: 1.5;
}

.notification-content small {
    display: block;
    font-size: 0.75rem;
    color: var(--asme-pale-blue);
    opacity: 0.7;
}

.notification-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.notification-item:hover .notification-actions {
    opacity: 1;
}

.mark-read-btn {
    background: none;
    border: none;
    color: var(--asme-pale-blue);
    cursor: pointer;
    font-size: 0.7rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.mark-read-btn:hover {
    opacity: 1;
}

.view-all-btn {
    display: block;
    text-align: center;
    padding: 12px;
    background: rgba(38, 108, 168, 0.2);
    color: var(--asme-pale-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.view-all-btn:hover {
    background: rgba(38, 108, 168, 0.3);
    color: white;
}

.empty-notifications {
    padding: 30px 20px;
    text-align: center;
    color: var(--asme-pale-blue);
    opacity: 0.7;
}

.empty-notifications svg {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.notification-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-right: 10px;
}

.notification-icon-wrapper svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.notification-icon-wrapper:hover svg {
    transform: scale(1.1);
    color: var(--asme-pale-blue);
}

.notification-item.unread.account-type {
    border-left: 3px solid #ffc107;
    background: rgba(255, 193, 7, 0.1);
}

.notification-item.unread.admin-type {
    border-left: 3px solid #ff4757;
    background: rgba(255, 71, 87, 0.1); 
}

.notification-item.unread.account-type .notification-icon {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.notification-item.unread.admin-type .notification-icon {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
}

.nav-item.dropdown {
    list-style: none;
    position: relative;
}


/* ====================== MAIN CONTENT ====================== */
main {
    flex: 1 0 auto;
    min-height: calc(100vh - 400px);
    width: 100%;
    margin: 2rem auto;
    padding: 0 5%;
}

section {
  width: 100%;
  padding: 5rem 0;
}

section.full-width {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: relative;
  left: 0;
  padding: 5rem 0;
}

section.full-width .card {
  width: 100%;
  max-width: 100%;
  border-radius: 0;
}

h1, h2, h3 {
    color: var(--text-lighter);
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* ====================== CARDS & GRIDS ====================== */
.card {
    background-color: var(--card-dark);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    padding: 1rem;
}

.card:hover {
    box-shadow: 0 10px 20px var(--shadow-color);
    border-color: rgba(173, 224, 251, 0.3);
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-lighter);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.section-title {
    text-align: center;
    max-width: None;
    margin-bottom: 3rem;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    max-width: ;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--asme-light-blue), var(--asme-pale-blue));
    border-radius: 3px;
}

/* ====================== FLASH MESSAGES ====================== */
.flash-center-container {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    gap: 10px;
}

/* Adjust for admin pages */
body.admin-page .flash-center-container {
    left: 280px;
}

.flash-message {
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    animation: fadeIn 0.3s ease-out forwards;
    opacity: 0;
    max-width: min(600px, 90vw);
    text-align: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
    word-break: break-word;
    overflow-wrap: anywhere;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    pointer-events: auto;
    margin-top: 20px;
}

/* Adjust for user pages with fixed nav */
body:not(.admin-page) .flash-message {
    margin-top: 80px;
}

/* Adjust for scrolled state */
body:not(.admin-page) nav.scrolled ~ .flash-center-container .flash-message {
    margin-top: 60px;
}

.flash-message.success {
    background: rgba(46, 213, 115, 0.92);
}

.flash-message.error {
    background: rgba(255, 71, 87, 0.92);
}

.flash-message.warning {
    background: rgba(255, 165, 2, 0.92);
}

.flash-message.info {
    background: rgba(38, 108, 168, 0.92);
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* ====================== EVENTS & NEWS ====================== */
.hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.events-container {
    border-radius: 12px;
    transition: all 0.3s ease;
    padding: 1rem;
}

.event-card {
    background: var(--card-dark);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.event-card-header {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.event-card-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card-default-img {
    width: 100%;
    height: 100%;
    background: var(--asme-medium-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-date-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(10, 10, 26, 0.8);
    border-radius: 10px;
    padding: 0.5rem 1rem;
    text-align: center;
    color: white;
}

.event-month {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--asme-pale-blue);
}

.event-day {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
}

.event-card-body {
    padding: 1.5rem;
}

.event-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.event-type {
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-weight: 500;
}

.event-type.workshop {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.event-type.conference {
    background: rgba(33, 150, 243, 0.2);
    color: #2196F3;
}

.event-type.seminar {
    background: rgba(255, 152, 0, 0.2);
    color: #FF9800;
}

.event-time {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--asme-pale-blue);
}

.event-card-body h3 {
    margin: 0.5rem 0 1rem;
    font-size: 1.3rem;
}

.event-location {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--asme-pale-blue);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.event-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-register-by {
    font-size: 0.8rem;
    color: var(--asme-pale-blue);
}

.event-registration-closed, .event-past {
    font-size: 0.9rem;
    color: #F44336;
}

.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--card-dark);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.news-card-header {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-card-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-default-img {
    width: 100%;
    height: 100%;
    background: var(--asme-medium-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-date-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(10, 10, 26, 0.8);
    border-radius: 10px;
    padding: 0.5rem;
    text-align: center;
    color: white;
    line-height: 1.2;
}

.news-day {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
}

.news-month {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.news-year {
    display: block;
    font-size: 0.7rem;
    color: var(--asme-pale-blue);
}

.news-card-body {
    padding: 1.5rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.news-category {
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-weight: 500;
}

.news-category.announcements {
    background: rgba(156, 39, 176, 0.2);
    color: #9C27B0;
}

.news-category.achievements {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
}

.news-category.updates {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.news-category.events {
    background: rgba(33, 150, 243, 0.2);
    color: #2196F3;
}

.news-author {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--asme-pale-blue);
}

.news-card-body h3 {
    margin: 0.5rem 0 1rem;
    font-size: 1.3rem;
}

.news-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* ====================== PAGINATION ====================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.pagination-link {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    background: var(--bg-dark);
    color: white;
    text-decoration: none;
    border: 1px solid rgba(173, 224, 251, 0.3);
    transition: all 0.3s ease;
}

.pagination-link:hover {
    background: var(--asme-pale-blue);
    color: var(--bg-dark);
}

.pagination-link.active {
    background: var(--asme-pale-blue);
    color: var(--bg-dark);
    font-weight: bold;
}

.pagination-ellipsis {
    padding: 0.5rem;
    color: var(--asme-pale-blue);
}

/* ====================== SEARCH & FILTERS ====================== */
.search-input {
    padding: 0.5rem 1rem;
    border-radius: 30px;
    border: 1px solid var(--asme-pale-blue);
    background: var(--card-dark);
    color: var(--text-light);
    font-size: 0.9rem;
    margin-left: auto;
    width: 250px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--asme-light-blue);
    box-shadow: 0 0 0 2px rgba(38, 108, 168, 0.3);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .search-input {
        width: 100%;
        margin-left: 0;
    }
}

/* ====================== FOOTER ====================== */
footer {
    flex-shrink: 0;
    background-color: var(--bg-darker);
    padding: 3rem 5%;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

footer h3 {
    color: var(--asme-pale-blue);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

footer p {
    color: var(--text-light);
    opacity: 0.8;
    line-height: 1.6;
}

footer ul {
    list-style: none;
}

footer li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

footer a {
    color: var(--text-light);
    opacity: 0.8;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    opacity: 1;
    color: var(--asme-pale-blue);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(173, 224, 251, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: rgba(173, 224, 251, 0.2);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-light);
    opacity: 0.6;
    font-size: 0.9rem;
}

/* ====================== ADMIN LAYOUT ====================== */
.admin-container {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-dark);
    position: relative;
}

.admin-sidebar {
    width: 280px;
    background-color: var(--bg-darker);
    border-right: 1px solid var(--border-color);
    position: fixed;
    height: 100vh;
    z-index: 100;
    overflow-y: auto;
    top: 0;
    left: 0;
    transition: transform 0.3s ease;
}

.sidebar-brand {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-brand img {
    height: 40px;
    filter: var(--logo-filter);
}

.sidebar-brand span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-lighter);
}

.sidebar-nav {
    padding: 1rem;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
    position: relative;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-nav a:hover {
    background: rgba(173, 224, 251, 0.1);
    color: var(--asme-pale-blue);
}

.sidebar-nav li.active a {
    background: rgba(38, 108, 168, 0.2);
    color: var(--asme-pale-blue);
}

.sidebar-nav li.active a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--asme-light-blue);
    border-radius: 0 3px 3px 0;
}

.nav-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.nav-text {
    flex: 1;
}

.nav-badge {
    background-color: var(--asme-light-blue);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    margin-left: 10px;
}

.admin-notification-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    background-color: #ff4757;
    color: white !important;
    border-radius: 11px;
    font-size: 0.7rem;
    font-weight: 700;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 6px;
    border: 2px solid var(--bg-darker);
    animation: pulse 2s infinite ease;
    line-height: 1;
}

@keyframes pulse {
    0% {
        transform: translateY(-50%) scale(1);
    }
    50% {
        transform: translateY(-50%) scale(1.1);
    }
    100% {
        transform: translateY(-50%) scale(1);
    }
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    position: absolute;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--asme-medium-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-transform: uppercase;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details {
    flex: 1;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-lighter);
}

.user-role {
    font-size: 0.75rem;
    color: var(--asme-pale-blue);
    text-transform: capitalize;
}

.logout-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    cursor: pointer;
}

.logout-btn:hover {
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
}

.logout-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-main-wrapper {
    margin-left: 280px;
    flex: 1;
    min-height: 100vh;
    width: calc(100% - 280px);
    position: relative;
    z-index: 1;
}

.admin-header {
    position: sticky;
    top: 0;
    z-index: 90; /* Lower than sidebar z-index */
    background-color: var(--bg-darker);
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 280px; /* Match sidebar width */
    width: calc(100% - 280px);
}

.admin-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-lighter);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-box {
    position: relative;
    width: 250px;
}

.search-box svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    stroke: var(--asme-pale-blue);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--card-dark);
    color: var(--text-light);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--asme-light-blue);
    box-shadow: 0 0 0 3px rgba(38, 108, 168, 0.2);
}

.notifications {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.3s ease;
    cursor: pointer;
}

.notifications:hover {
    background: rgba(173, 224, 251, 0.1);
    color: var(--asme-pale-blue);
}

.notifications svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.notification-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #ff4757;
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-main {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--card-dark);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-color);
    border-color: rgba(173, 224, 251, 0.3);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(173, 224, 251, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--asme-pale-blue);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.stat-info h3 {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--asme-pale-blue);
    margin-bottom: 0.5rem;
}

.stat-info p {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-lighter);
    margin: 0;
}

.stat-trend {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.8rem;
}

.stat-trend svg {
    width: 14px;
    height: 14px;
    margin-right: 6px;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stat-trend.up {
    color: #4CAF50;
}

.stat-trend.up svg {
    stroke: #4CAF50;
}

.stat-trend.down {
    color: #F44336;
}

.stat-trend.down svg {
    stroke: #F44336;
}

.stat-trend.neutral {
    color: var(--asme-pale-blue);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.content-card {
    background-color: var(--card-dark);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.content-card:hover {
    box-shadow: 0 10px 20px var(--shadow-color);
    border-color: rgba(173, 224, 251, 0.3);
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-lighter);
}

.card-body {
    padding: 1.5rem;
    overflow-x: auto;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--card-dark);
    margin-bottom: 1.5rem;
}

table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--asme-pale-blue);
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    border-bottom: 1px solid rgba(173, 224, 251, 0.05);
    white-space: nowrap;
}

tr:last-child td {
    border-bottom: none;
}

.user-cell {
    display: flex;
    align-items: center;
}

.user-avatar.small {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
    margin-right: 10px;
}

.user-details .username {
    display: block;
    font-weight: 500;
    color: var(--text-lighter);
}

.user-details .email {
    display: block;
    font-size: 0.8rem;
    color: var(--asme-pale-blue);
    margin-top: 2px;
}

.role-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(173, 224, 251, 0.1);
    color: var(--asme-pale-blue);
    text-transform: capitalize;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.active {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.status-badge.banned {
    background: rgba(244, 67, 54, 0.1);
    color: #F44336;
}

.status-badge.info {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.status-badge.warn {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
}

.activity-item {
    display: flex;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(173, 224, 251, 0.05);
}

.activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(173, 224, 251, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.activity-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--asme-pale-blue);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.activity-content p {
    margin: 0 0 0.25rem;
    font-size: 0.9rem;
    color: var(--text-lighter);
}

.activity-time {
    font-size: 0.8rem;
    color: var(--asme-pale-blue);
}

.empty-state {
    padding: 1.5rem;
    background: var(--card-dark);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.empty-state svg {
    width: 40px;
    height: 40px;
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--asme-pale-blue);
}

.admin-footer {
    background-color: var(--bg-darker);
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    margin-left: 280px;
    width: calc(100% - 280px);
}
/* ====================== ADMIN NOTIFICATION BADGE ====================== */
.admin-sidebar .admin-notification-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    background-color: #ff4757;
    color: white !important;
    border-radius: 11px;
    font-size: 0.7rem;
    font-weight: 700;
    position: absolute;
    right: -30px;
    top: 49%;
    transform: translateY(-50%);
    padding: 0 6px;
    border: 2px solid var(--bg-darker);
    animation: pulse 2s infinite ease;
    line-height: 1;
    z-index: 1;
}
.admin-sidebar .nav-item.active .admin-notification-badge, .admin-sidebar .nav-item:hover .admin-notification-badge {
    background-color: #ff4757 !important;
    color: white !important;
    border-color: var(--bg-darker) !important;
}
.admin-sidebar .nav-item:hover .admin-notification-badge {
    transform: translateY(-50%) scale(1.1);
}
@keyframes pulse {
    0% {
        transform: translateY(-50%) scale(1);
    }
    50% {
        transform: translateY(-50%) scale(1.1);
    }
    100% {
        transform: translateY(-50%) scale(1);
    }
}
.admin-sidebar .nav-item.active .admin-notification-badge {
    transform: translateY(-50%) scale(1.05);
}
.nav-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}
.nav-text {
    flex: 1;
}
.nav-badge {
    background-color: var(--asme-light-blue);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    margin-left: 8px;
}
.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.user-info {
    display: flex;
    align-items: center;
}
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--asme-medium-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-transform: uppercase;
    overflow: hidden;
}
.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.user-details {
    display: flex;
    flex-direction: column;
}
.user-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
}
.user-role {
    font-size: 0.75rem;
    color: var(--asme-pale-blue);
    text-transform: capitalize;
}
.logout-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.3s ease;
}
.logout-btn:hover {
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
}
.logout-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.admin-main-wrapper {
    margin-left: 280px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: calc(100% - 280px);
    position: relative;
    z-index: 1;
}
.admin-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg-darker);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.admin-main {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}
.admin-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-lighter);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.search-box {
    position: relative;
    width: 250px;
}
.search-box svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    stroke: var(--asme-pale-blue);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}
.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--card-dark);
    color: var(--text-light);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.search-box input:focus {
    outline: none;
    border-color: var(--asme-light-blue);
    box-shadow: 0 0 0 3px rgba(38, 108, 168, 0.2);
}
.notifications {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.3s ease;
    cursor: pointer;
}
.notifications:hover {
    background: rgba(173, 224, 251, 0.1);
    color: var(--asme-pale-blue);
}
.notifications svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}
.notification-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #ff4757;
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.stat-card {
    background-color: var(--card-dark);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-color);
    border-color: rgba(173, 224, 251, 0.3);
}
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(173, 224, 251, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.stat-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--asme-pale-blue);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}
.stat-info h3 {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--asme-pale-blue);
    margin-bottom: 0.5rem;
}
.stat-info p {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-lighter);
    margin: 0;
}
.stat-trend {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.8rem;
}
.stat-trend svg {
    width: 14px;
    height: 14px;
    margin-right: 6px;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.stat-trend.up {
    color: #4CAF50;
}
.stat-trend.up svg {
    stroke: #4CAF50;
}
.stat-trend.down {
    color: #F44336;
}
.stat-trend.down svg {
    stroke: #F44336;
}
.stat-trend.neutral {
    color: var(--asme-pale-blue);
}
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 1fr;
   }
}
.content-card {
    background-color: var(--card-dark);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
.content-card:hover {
    box-shadow: 0 10px 20px var(--shadow-color);
    border-color: rgba(173, 224, 251, 0.3);
}
.card-body {
    padding: 1.5rem;
    overflow-x: auto;
}
.table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--card-dark);
    margin-bottom: 1.5rem;
}
table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}
.member-table td, .user-table td {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--asme-pale-blue);
    border-bottom: 1px solid var(--border-color);
}
td {
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    border-bottom: 1px solid rgba(173, 224, 251, 0.05);
    white-space: nowrap;
}
tr:last-child td {
    border-bottom: none;
}
.user-cell {
    display: flex;
    align-items: center;
}
.user-avatar.small {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
    margin-right: 10px;
}
.user-details .username {
    display: block;
    font-weight: 500;
    color: var(--text-lighter);
}
.user-details .email {
    display: block;
    font-size: 0.8rem;
    color: var(--asme-pale-blue);
    margin-top: 2px;
}
.role-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(173, 224, 251, 0.1);
    color: var(--asme-pale-blue);
    text-transform: capitalize;
}
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}
.status-badge.active {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}
.status-badge.banned {
    background: rgba(244, 67, 54, 0.1);
    color: #F44336;
}
.status-badge.info {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}
.status-badge.warn {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
}
.activity-item {
    display: flex;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(173, 224, 251, 0.05);
}
.activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(173, 224, 251, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}
.activity-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--asme-pale-blue);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}
.activity-content p {
    margin: 0 0 0.25rem;
    font-size: 0.9rem;
    color: var(--text-lighter);
}
.activity-time {
    font-size: 0.8rem;
    color: var(--asme-pale-blue);
}
.empty-state {
    padding: 1.5rem;
    background: var(--card-dark);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.empty-state svg {
    width: 40px;
    height: 40px;
    opacity: 0.5;
    margin-bottom: 0.5rem;
}
.empty-state p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--asme-pale-blue);
}
.admin-footer {
    background-color: var(--bg-darker);
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    margin-left: 280px;
    width: calc(100% - 280px);
}
/* ====================== TEAM PAGE STYLES ====================== */
.team-section {
    margin-bottom: 3rem;
}
.team-section-title {
    font-size: 1.8rem;
    color: var(--text-lighter);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--asme-light-blue);
    text-align: center;
}
.card-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    width: 100%;
}
.member-card {
    padding: 1.5rem;
    width: 750px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 0 0 auto;
}
.profile-image-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 3px solid var(--asme-light-blue);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    cursor: pointer;
}
.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.profile-img:hover {
    transform: scale(1.05);
}
.profile-initials {
    width: 100%;
    height: 100%;
    background: var(--asme-medium-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: bold;
}
.member-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.member-role, .member-level {
    font-size: 0.9rem;
    color: var(--asme-pale-blue);
    margin-bottom: 0.5rem;
}
/* Featured Admin Card */
.featured-card-group {
    max-width: 600px;
    margin: 0 auto;
}
.featured-admin-card {
    max-width: 700px;
    padding: 2.5rem;
}
.featured-admin-card .profile-image-container {
    width: 150px;
    height: 150px;
}
.featured-admin-card .profile-initials {
    font-size: 4rem;
}
.featured-admin-card .member-info h3 {
    font-size: 1.8rem;
}
.featured-admin-card .member-role {
    font-size: 1.1rem;
}
/* Three Column Group */
.three-column-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    width: 100%;
}
/* Five Column Grid */
.five-column-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.7rem;
    width: 100%;
}
.three-column-group .member-card {
    width: 350px;
    padding: 1rem;
}
.five-column-grid .member-card {
    width: 220px;
    padding: 1rem;
}
/* For smallest member cards in auto-wrapping grid */
.auto-wrapping-grid .member-card {
    width: 250px;
    padding: 0.8rem;
}
/* Auto Wrapping Grid */
.auto-wrapping-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
}
/* Committee Filter Styles */
.committee-filter {
    margin-bottom: 2rem;
    text-align: center;
}
.committee-filter label {
    font-size: 1.1rem;
    color: var(--text-lighter);
    margin-right: 1rem;
}
.committee-filter select {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid var(--asme-light-blue);
    background-color: var(--card-dark);
    color: var(--text-lighter);
    font-size: 1rem;
    cursor: pointer;
}
.committee-filter select:focus {
    outline: none;
    border-color: var(--asme-pale-blue);
    box-shadow: 0 0 5px rgba(173, 224, 251, 0.3);
}
/* Image Popup Styles */
.image-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.popup-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    cursor: default;
}
.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}
/* ====================== GALLERY & MEDIA STYLES ====================== */
.media-gallery-container {
    position: relative;
}
.media-gallery {
    position: relative;
    background: var(--bg-darker);
}
.gallery-slide {
    transition: opacity 0.5s ease;
}
.gallery-slide.active {
    opacity: 1 !important;
    z-index: 1;
}
.gallery-arrow {
    transition: all 0.3s ease;
    opacity: 0.7;
}
.gallery-arrow:hover {
    opacity: 1;
    background: rgba(0,0,0,0.8) !important;
    transform: translateY(-50%) scale(1.1);
}
.thumbnail-btn {
    transition: all 0.3s ease;
}
.thumbnail-btn:hover {
    transform: scale(1.05);
}
.thumbnail-btn.active {
    border-color: var(--asme-blue) !important;
    transform: scale(1.05);
}
/* Video Player Controls */
video::-webkit-media-controls {
    opacity: 0;
    transition: opacity 0.3s;
}
video:hover::-webkit-media-controls {
    opacity: 1;
}
/* ====================== PROFILE GRID STYLES ====================== */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}
.profile-card {
    grid-row: span 2;
    position: relative;
    height: fit-content;
}
.profile-card-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(135deg, var(--asme-dark-blue), var(--bg-dark));
    border-radius: 12px 12px 0 0;
}
.profile-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 2rem;
}
.profile-image-container {
    position: relative;
    margin: 2rem 0 1.5rem;
}
.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.profile-image-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--asme-medium-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.profile-initial {
    font-size: 3.5rem;
    color: white;
}
.verified-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--asme-light-blue);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}
.profile-name {
    font-size: 2rem;
    margin-bottom: 0.25rem;
    color: var(--text-lighter);
}
.profile-username {
    color: var(--asme-pale-blue);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.verified-icon {
    color: var(--asme-light-blue);
    display: inline-flex;
}
.committee-card {
    background: rgba(173, 224, 251, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid rgba(173, 224, 251, 0.2);
    backdrop-filter: blur(5px);
}
.committee-name {
    margin: 0;
    font-size: 1.1rem;
    color: var(--asme-pale-blue);
}
.committee-role {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: var(--text-light);
}
.committee-info {
    margin-bottom: 1.5rem;
    background: rgba(173, 224, 251, 0.05);
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px dashed rgba(173, 224, 251, 0.2);
}
.committee-membership {
    font-size: 0.85rem;
    color: var(--asme-pale-blue);
    margin-bottom: 0;
}
.committee-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1rem;
}
.badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid;
    backdrop-filter: blur(5px);
    transition: transform 0.2s ease;
}
.blue-badge {
    background: rgba(38, 108, 168, 0.2);
    color: var(--asme-light-blue);
    border-color: var(--asme-light-blue);
}
.green-badge {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border-color: #2ecc71;
}
.red-badge {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border-color: #e74c3c;
}
.gold-badge {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
    border-color: #f1c40f;
}
.silver-badge {
    background: rgba(189, 195, 199, 0.2);
    color: #bdc3c7;
    border-color: #bdc3c7;
}
.purple-badge {
    background: rgba(155, 89, 182, 0.2);
    color: #9b59b6;
    border-color: #9b59b6;
}
/* About Card */
.about-card {
    height: 100%;
}
.about-card-body {
    height: calc(100% - 3.5rem);
    display: flex;
    flex-direction: column;
}
.about-text {
    line-height: 1.8;
    margin: 0;
    flex-grow: 1;
}
.about-placeholder {
    background: rgba(173, 224, 251, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px dashed rgba(173, 224, 251, 0.2);
    flex-grow: 1;
}
.placeholder-text {
    color: var(--asme-pale-blue);
    line-height: 1.7;
    margin: 0;
}
/* Contact Card */
.contact-card {
    height: 100%;
}
.contact-card-body {
    height: calc(100% - 3.5rem);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    height: 100%;
}
.contact-item {
    display: flex;
    flex-direction: column;
}
.contact-label {
    font-size: 0.9rem;
    color: var(--asme-pale-blue);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.contact-icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.contact-value {
    margin: 0;
    font-weight: 500;
    color: var(--text-lighter);
}
/* Email Link Styling */
.email-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--asme-pale-blue);
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    background: rgba(219, 68, 55, 0.1);
}
.email-link:hover {
    background: rgba(219, 68, 55, 0.2);
    color: #db4437;
    transform: translateY(-1px);
}
.email-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
/* Phone Link Styling */
.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--asme-pale-blue);
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    background: rgba(66, 133, 244, 0.1);
}
.phone-link:hover {
    background: rgba(66, 133, 244, 0.2);
    color: #4285f4;
    transform: translateY(-1px);
}
.phone-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
/* No Phone Styling */
.no-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    background: rgba(173, 224, 251, 0.05);
}
/* LinkedIn Link Styling */
.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--asme-pale-blue);
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    background: rgba(10, 102, 194, 0.1);
}
.linkedin-link:hover {
    background: rgba(10, 102, 194, 0.2);
    color: #0a66c2;
    transform: translateY(-1px);
}
.linkedin-logo {
    width: 18px;
    height: 18px;
    fill: #0a66c2;
    stroke: none;
}
.linkedin-link:hover .linkedin-logo {
    fill: #0a66c2;
}
/* ====================== EVENTS TABS ====================== */
.events-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}
.tab-btn {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    color: var(--asme-pale-blue);
    cursor: pointer;
    transition: all 0.3s ease;
}
.tab-btn.active {
    border-bottom-color: var(--asme-blue);
    color: var(--text-lighter);
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
.events-subtitle {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}
.event-card-header img, .event-card-header video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.event-card:hover .event-card-header img, .event-card:hover .event-card-header video {
    transform: scale(1.05);
}
.media-count-badge {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
/* ====================== RESPONSIVE ADJUSTMENTS ====================== */
@media (max-width: 1400px) {
    /* Large desktop adjustments */
    .admin-main {
        padding: 2rem 1.5rem;
    }
    
    .content-grid {
        gap: 1.25rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    /* Standard desktop adjustments */
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        width: 240px;
    }
    
    .admin-main-wrapper {
        margin-left: 240px;
        width: calc(100% - 240px);
    }
    
    .admin-footer {
        margin-left: 240px;
        width: calc(100% - 240px);
    }
    
    .stat-card {
        padding: 1.25rem;
    }
}

@media (max-width: 992px) {
    /* Tablet landscape adjustments */
    .admin-sidebar {
        width: 220px;
    }
    
    .admin-main-wrapper {
        margin-left: 220px;
        width: calc(100% - 220px);
    }
    
    .admin-footer {
        margin-left: 220px;
        width: calc(100% - 220px);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sidebar-brand span {
        display: none;
    }
    
    .sidebar-brand {
        justify-content: center;
        padding: 1.25rem 1rem;
    }
    
    .nav-text {
        display: none;
    }
    
    .sidebar-nav a {
        justify-content: center;
        padding: 0.75rem;
    }
    
    .nav-icon {
        margin-right: 0;
    }
    
    .admin-notification-badge {
        right: 8px;
    }
}

@media (max-width: 768px) {
    /* Tablet portrait adjustments */
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 280px;
    }
    
    .admin-sidebar.active {
        transform: translateX(0);
    }
    
    .admin-main-wrapper {
        margin-left: 0;
        width: 100%;
    }
    
    .admin-footer {
        margin-left: 0;
        width: 100%;
    }
    
    .admin-header {
        padding: 1rem;
        position: relative;
    }
    
    .header-actions {
        gap: 1rem;
    }
    
    .search-box {
        width: 180px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .table-container {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

@media (max-width: 576px) {
    /* Mobile adjustments */
    .admin-main {
        padding: 1.5rem 1rem;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .search-box {
        width: 100%;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-info p {
        font-size: 1.5rem;
    }
    
    .admin-footer {
        padding: 1rem;
        text-align: center;
    }
    
    .user-cell {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .user-avatar.small {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    td, th {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 400px) {
    /* Small mobile adjustments */
    .admin-sidebar {
        width: 260px;
    }
    
    .admin-main {
        padding: 1.25rem 0.75rem;
    }
    
    .stat-icon {
        width: 36px;
        height: 36px;
    }
    
    .stat-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .activity-icon {
        width: 28px;
        height: 28px;
    }
    
    .activity-icon svg {
        width: 16px;
        height: 16px;
    }
}

/* Special height adjustments for mobile */
@media (max-height: 700px) {
    .sidebar-nav {
        padding-bottom: 4rem;
    }
    
    .sidebar-footer {
        position: relative;
    }
}

/* Print styles */
@media print {
    .admin-sidebar,
    .admin-header,
    .admin-footer {
        display: none !important;
    }
    
    .admin-main-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    .admin-main {
        padding: 0 !important;
    }
    
    .content-card {
        box-shadow: none !important;
        border: none !important;
        page-break-inside: avoid;
    }
    
    table {
        page-break-inside: auto;
    }
    
    tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }
}
/* ====================== RESPONSIVE STYLES ====================== */
@media (max-width: 1200px) {
    /* Tablet landscape adjustments */
    .content-grid {
        grid-template-columns: 1fr;
    }
    .profile-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 992px) {
    /* Tablet portrait adjustments */
    .admin-container {
        flex-direction: column;
    }
    .admin-sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }
    .admin-main-wrapper {
        margin-left: 0;
        width: 100%;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    /* Mobile landscape/small tablet adjustments */
    /* Mobile menu button - NO VISUAL DOTS */
    .mobile-menu-toggle {
        all: unset;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        cursor: pointer;
        z-index: 1000;
        padding: 0;
        margin: 0;
    }
    .mobile-menu-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--asme-pale-blue);
        margin: 4px 0;
        transition: all 0.3s ease;
    }
    /* Active state transforms */
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    /* Navigation menu */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-darker);
        flex-direction: column;
        padding: 6rem 2rem;
        transition: right 0.3s ease;
        z-index: 999;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    }
    .nav-links.active {
        right: 0;
    }
    /* General content adjustments */
    h1 {
        font-size: 2.5rem;
    }
    .grid, .events-container, .news-container, .stats-grid {
        grid-template-columns: 1fr;
    }
    /* Forms */
    input, select, textarea {
        font-size: 16px;
    }
}
@media (max-width: 576px) {
    /* Mobile portrait adjustments */
    h1 {
        font-size: 2rem;
    }
    .profile-grid {
        grid-template-columns: 1fr;
    }
    /* Remove any potential spacing issues */
    .mobile-menu-toggle {
        margin-right: -5px;
        /* Adjust if needed */
    }
}
/* Touch target optimizations */
@media (pointer: coarse) {
    .mobile-menu-toggle {
        min-width: 48px;
        min-height: 48px;
    }
}