/* Main project stylesheet */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* Global design variables */
:root {
  /* Primary brand color used for main buttons and links */
  --primary: #6366f1;

  /* Darker primary color used on hover */
  --primary-hover: #4f46e5;

  /* Light primary background used for soft states */
  --primary-light: #eef2ff;

  /* Secondary accent color used in some UI elements */
  --accent: #8b5cf6;

  /* Light accent background used for soft accent states */
  --accent-light: #f5f3ff;

  /* Text color for success messages and badges */
  --success-text: #059669;

  /* Background color for success states */
  --success-bg: #ecfdf5;

  /* Border color for success states */
  --success-border: #a7f3d0;

  /* Text color for warning messages and badges */
  --warning-text: #d97706;

  /* Background color for warning states */
  --warning-bg: #fffbeb;

  /* Border color for warning states */
  --warning-border: #fde68a;

  /* Text color for danger and error states */
  --danger-text: #dc2626;

  /* Background color for danger and error states */
  --danger-bg: #fef2f2;

  /* Border color for danger and error states */
  --danger-border: #fecaca;

  /* Main page background color */
  --bg: #f8f9fc;

  /* Older alias for the main background color */
  --bg-color: #f8f9fc;

  /* Default card and panel background color */
  --card-bg: #ffffff;

  /* Main text color used across the site */
  --text-main: #0f172a;

  /* Muted text color for subtitles and helper text */
  --text-muted: #64748b;

  /* Lighter text color for placeholders and soft text */
  --text-light: #94a3b8;

  /* Default border color used in cards and inputs */
  --border: #e2e8f0;

  /* Older alias for the default border color */
  --border-color: #e2e8f0;

  /* Focus border color used for active inputs */
  --border-focus: #6366f1;

  /* Role color for admin pages and badges */
  --color-admin: #6366f1;

  /* Role color for club pages and badges */
  --color-club: #8b5cf6;

  /* Role color for organizer pages and badges */
  --color-organizer: #059669;

  /* Role color for student pages and badges */
  --color-student: #0ea5e9;

  /* Small shadow used for subtle depth */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);

  /* Medium shadow used for cards and panels */
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);

  /* Large shadow used for stronger elevation */
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);

  /* Older alias for the default shadow */
  --shadow: var(--shadow-md);

  /* Base border radius used in shared components */
  --radius: 12px;

  /* Small border radius used for compact elements */
  --radius-sm: 6px;

  /* Medium border radius used for buttons and inputs */
  --radius-md: 8px;

  /* Large border radius used for cards */
  --radius-lg: 12px;

  /* Extra large border radius used for bigger panels */
  --radius-xl: 16px;
}


/* Reset default spacing and use border-box sizing everywhere */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Make the page take the full browser height */
html,
body {
  height: 100%;
}

/* Set the main font and base page layout */
body {
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 14px;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Set shared heading font weight and spacing */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  line-height: 1.3;
}

/* Set the default link color */
a {
  color: var(--primary);
  text-decoration: none;
}

/* Change link color on hover */
a:hover {
  color: var(--primary-hover);
}

/* Make form controls use the same font as the page */
input,
select,
textarea {
  font-family: inherit;
}

/*--------------------------------------------------------------------*/
/* Login page body layout */
body.login-body {
  background: #f8f9fc;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Wrapper for each login input field */
.login-field {
  margin-bottom: 18px;
}

/* Label above each login input */
.login-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 6px;
}

/* Email, password, and text inputs on the login form */
.login-field input[type="email"],
.login-field input[type="password"],
.login-field input[type="text"] {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  color: #0f172a;
  background: #f8f9fc;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  font-family: 'DM Sans', sans-serif;
}

/* Focus state for login inputs */
.login-field input:focus {
  border-color: #6366f1;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

/* Container used to position the password toggle button */
.pw-wrap {
  position: relative;
}

/* Add extra right padding so the toggle does not overlap text */
.pw-wrap input {
  padding-right: 60px !important;
}

/* Show/hide password button inside the input */
.pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6366f1;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  padding: 4px 6px;
  border-radius: 4px;
  transition: background 0.15s;
}

/* Hover state for the password toggle */
.pw-toggle:hover {
  background: #eef2ff;
}

/* Row that holds the remember-me checkbox and submit button */
.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

/* Remember-me label and checkbox styling */
.login-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  cursor: pointer;
}

/* Checkbox input styles for remember-me */
.login-checkbox input {
  accent-color: #6366f1;
  width: 15px;
  height: 15px;
  cursor: pointer;
}

/* Main login submit button */
.login-submit {
  width: 100%;
  height: 46px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: opacity 0.18s, transform 0.12s, box-shadow 0.18s;
  letter-spacing: -0.2px;
}

/* Hover state for the login button */
.login-submit:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

/* Active state removes the lift effect */
.login-submit:active {
  transform: none;
}

/* Small helper text under the form */
.login-help {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.6;
}

/* Alert shown for login errors */
.login-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  color: #dc2626;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
}

/* Legacy centered auth card layout */
.auth {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 48px 16px;
}

/* Placeholder for login-specific responsive tweaks */
@media (max-width: 820px) {
}

/* Full-screen centered login layout with background image */
body.login-centered {
  background: url('../images/background.jpg') center/cover no-repeat fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 16px;
}

/* Dark overlay over the login background image */
.login-bg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 15, 35, 0.55);
  z-index: 0;
}

/* Wrapper that centers the login card on the page */
.login-card-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Main white card that holds the login form */
.login-card {
  width: 100%;
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 40px 36px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

/* Container for the logo inside the card */
.login-card-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 24px;
}

/* The CEMS logo image on the login screen */
.login-logo-img {
  height: 150px;
  width: auto;
  display: block;
  margin: 0 auto 16px;
  background: #fff;
  border-radius: 8px;
  padding: 6px 12px;
}

/* Login title text above the form */
.login-card .login-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 4px;
}

/* Small subtitle under the login title */
.login-card .login-sub {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 28px;
}

/* Small footer text under the card (credits or tips) */
.login-card-footer {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

/*----------------------------------------------------------------*/
/* Shared top navigation bar used by all roles */
.dash-nav,
.admin-nav,
.club-nav,
.organizer-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  min-height: 64px;
  flex-shrink: 0;
  padding: 0 24px;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  gap: 16px;
}

/* Role-specific accent line under the nav bar */
.admin-nav {
  border-bottom-color: var(--color-admin);
}

/* Club manager nav accent color */
.club-nav {
  border-bottom-color: var(--color-club);
}

/* Event organizer nav accent color */
.organizer-nav {
  border-bottom-color: var(--color-organizer);
}

/* Left nav area: role badge and extra info */
.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

/* Center nav area: CEMS logo */
.nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Right nav area: welcome text, profile, logout */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

/* CEMS logo image in the nav */
.nav-logo {
  height: 34px;
  width: auto;
  display: block;
}

/* Clickable logo link wrapper */
.nav-logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

/* Club-specific left nav section */
.nav-left-club {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Club name text in the nav bar */
.nav-club-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-main);
}

/*--------------------------------------------*/
/* Nav role badges for different dashboards */
.admin-badge,
.badge-admin-nav {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Club nav badge color */
.badge-club-nav {
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Organizer nav badge color */
.badge-organizer-nav {
  background: #ecfdf5;
  color: var(--success-text);
  border: 1px solid rgba(5, 150, 105, 0.2);
}

/* Student nav badge color */
.badge-student {
  background: #f0f9ff;
  color: var(--color-student);
  border: 1px solid rgba(14, 165, 233, 0.2);
}

/* Base style for all status badges */
.badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* Badge used for pending or in-review items */
.badge-pending {
  background: var(--warning-bg);
  color: var(--warning-text);
  border: 1px solid var(--warning-border);
}

/* Badge used for published or approved items */
.badge-published {
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid var(--success-border);
}

/* Badge used for rejected or failed items */
.badge-rejected {
  background: var(--danger-bg);
  color: var(--danger-text);
  border: 1px solid var(--danger-border);
}

/* Badge used to label admin users or areas */
.badge-admin {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Badge used to label club-related items */
.badge-club {
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Badge used to label organizer-related items */
.badge-organizer {
  background: #ecfdf5;
  color: var(--success-text);
  border: 1px solid rgba(5, 150, 105, 0.2);
}

/* Smaller badge size variant */
.badge-sm {
  font-size: 10px;
  padding: 2px 8px;
}

/* Extra badge to the right of titles (e.g. role next to name) */
.badge-role {
  margin-left: 6px;
  font-size: 11px;
}

/*-----------------------------------------*/
/* Base stat badge used for dashboard counters */
.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

/* Vertical stat badge layout used on dashboards */
.stat-badge-v {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: auto;
  padding: 14px 20px;
  gap: 4px;
}

/* Large number inside a vertical stat badge */
.stat-badge-v .stat-num {
  font-size: 26px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

/* Label text inside a vertical stat badge */
.stat-badge-v .stat-label {
  font-size: 12px !important;
  color: var(--text-muted) !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

/* Primary color for stat numbers */
.stat-num-primary {
  color: var(--primary);
}

/* Default text color for stat numbers */
.stat-num-main {
  color: var(--text-main);
}

/* Warning color for stat numbers */
.stat-num-warning {
  color: var(--warning-text);
}

/* Accent color for stat numbers */
.stat-num-accent {
  color: var(--accent);
}

/* Organizer color for stat numbers */
.stat-num-organizer {
  color: var(--color-organizer);
}

/* Green stat number for published organizer counts */
.stat-num-organizer-pub {
  color: #16a34a;
}

/* Warning border color for vertical stat badges */
.stat-badge-v.border-warning {
  border-color: var(--warning-border);
}

/* Accent border color for vertical stat badges */
.stat-badge-v.border-accent {
  border-color: #ede9fe;
}

/* Published stat badge border color */
.stat-badge-published {
  border-color: #bbf7d0;
}

/* Pending stat badge colors */
.stat-badge-pending {
  border-color: #ffedd5;
  color: #c2410c;
}

/* Rejected stat badge colors */
.stat-badge-rejected {
  border-color: #fecdd3;
  color: #be123c;
}

/* Row that holds multiple stat badges */
.stats-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0 24px;
}

/* Small event count text beside dashboard headings */
.event-count-label {
  font-size: 13px;
  color: var(--text-muted);
}

/*------------------------------------*/
/* Main content container for all dashboard pages */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 48px;
  flex: 1;
}

/* Remove extra top padding when the container is used on <main> */
main.container {
  padding-top: 0;
}

/* Header row at the top of each page (title + actions) */
.page-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
  margin-bottom: 24px;
}

/* Right side of the header that holds action buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Main page title used on dashboards */
.dash-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

/* Subtitle text under the main page title */
.dash-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Small label used above sections (e.g. Quick Actions) */
.section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Extra top margin for standalone page titles */
.page-title {
  margin-top: 30px;
}

/* Small helper class for top spacing */
.main-top-sm {
  margin-top: 20px;
}

/* Medium helper class for top spacing */
.main-top-md {
  margin-top: 28px;
}

/* Top margin used before a new section */
.section-top {
  margin-top: 30px;
}

/* Top margin used above page header blocks */
.page-header-top {
  margin-top: 30px;
}

/* Bottom spacing under table cards */
.table-card-bottom {
  margin-bottom: 40px;
}

/* Larger bottom spacing under table cards */
.table-card-bottom-lg {
  margin-bottom: 60px;
}

/* Vertical spacing around alerts */
.alert-mt {
  margin: 16px 0;
}

/* Grid layout used for dashboard summary cards */
.dash-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

/* Block that wraps the club dashboard heading */
.club-header-block {
  margin-top: 30px;
  margin-bottom: 8px;
}

/*-------------------------------------*/
/* Base button styles used by all button variants */
.btn-primary,
.btn-secondary,
.btn-back,
.btn-logout,
.btn-profile,
.btn-create-new,
.btn-action-outline,
.btn-sm,
.btn-join,
.btn-join-club,
.btn-member,
.btn-quick,
.btn-approve,
.btn-reject,
.btn-delete,
.btn-cancel,
.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 16px;
  height: 40px;
  border-radius: var(--radius-md);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s, transform 0.12s;
  white-space: nowrap;
  line-height: 1;
}

/* Primary filled button for main actions */
.btn-primary,
.btn-create-new {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Hover state for primary buttons */
.btn-primary:hover,
.btn-create-new:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Secondary button with white background and border */
.btn-secondary {
  background: #fff;
  color: var(--text-main);
  border-color: var(--border);
}

/* Hover state for secondary buttons */
.btn-secondary:hover {
  background: #f8f9fc;
  border-color: #c5c9d6;
  color: var(--text-main);
}

/* Compact back button with muted text */
.btn-back {
  background: #fff;
  color: var(--text-muted);
  border-color: var(--border);
  height: 32px;
  font-size: 12px;
  padding: 0 12px;
}

/* Hover state for back button */
.btn-back:hover {
  background: #f8f9fc;
  color: var(--text-main);
  border-color: #c5c9d6;
}

/* Compact logout button with red text */
.btn-logout {
  background: #fff;
  color: var(--danger-text);
  border-color: var(--danger-border);
  height: 32px;
  font-size: 12px;
  padding: 0 12px;
}

/* Hover state for logout button */
.btn-logout:hover {
  background: var(--danger-bg);
  color: var(--danger-text);
  border-color: var(--danger-border);
}

/* Compact profile button with light indigo background */
.btn-profile {
  background: var(--primary-light);
  color: var(--primary);
  border-color: rgba(99, 102, 241, 0.2);
  height: 32px;
  font-size: 12px;
  padding: 0 12px;
  margin-left: 4px;
}

/* Hover state for profile button */
.btn-profile:hover {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-hover);
}

/* Smaller red button used for soft danger actions */
.btn-danger-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
  transition: background 0.18s;
}

/* Hover state for soft danger button */
.btn-danger-soft:hover {
  background: #fecdd3;
}

/* Approve button with success colors */
.btn-approve {
  background: var(--success-bg);
  color: var(--success-text);
  border-color: var(--success-border);
}

/* Hover state for approve button */
.btn-approve:hover {
  background: #d1fae5;
  color: #047857;
  border-color: #6ee7b7;
}

/* Reject and delete buttons with danger colors */
.btn-reject,
.btn-delete {
  background: var(--danger-bg);
  color: var(--danger-text);
  border-color: var(--danger-border);
}

/* Hover state for reject and delete buttons */
.btn-reject:hover,
.btn-delete:hover {
  background: #fee2e2;
  color: #b91c1c;
}

/* Neutral cancel button */
.btn-cancel {
  background: #fff;
  color: var(--text-muted);
  border-color: var(--border);
}

/* Hover state for cancel button */
.btn-cancel:hover {
  background: var(--bg);
  color: var(--text-main);
}

/* Outline action button with primary border */
.btn-action-outline {
  background: #fff;
  color: var(--primary);
  border-color: rgba(99, 102, 241, 0.25);
  height: 36px;
  font-size: 12px;
}

/* Hover state for outline action button */
.btn-action-outline:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

/* Filled action button with light primary background */
.btn-action {
  background: var(--primary-light);
  color: var(--primary);
  border-color: rgba(99, 102, 241, 0.2);
}

/* Hover state for filled action button */
.btn-action:hover {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-hover);
}

/* Smaller size variant for compact buttons */
.btn-sm {
  height: 32px;
  font-size: 12px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
}

/* Disabled state used to block interaction */
.btn-disabled,
.btn-disabled:hover {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
}

/* Join button for club/event actions */
.btn-join {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  height: 36px;
  font-size: 12px;
}

/* Hover state for join button */
.btn-join:hover {
  background: var(--primary-hover);
  color: #fff;
}

/* Join-club button used on club cards */
.btn-join-club {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s;
}

/* Hover state for join-club button */
.btn-join-club:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

/* Member badge-style button for already joined state */
.btn-member {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid var(--success-border);
}

/* Quick action button used in headers and cards */
.btn-quick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  height: 36px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  background: #fff;
  color: var(--text-main);
  border: 1px solid var(--border);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.12s;
  white-space: nowrap;
}

/* Hover state for quick action button */
.btn-quick:hover {
  background: var(--primary-light);
  border-color: rgba(99, 102, 241, 0.3);
  color: var(--primary);
  transform: translateY(-1px);
}

/* Pending member state button */
.btn-member-pending {
  background: #fff7ed;
  color: #c2410c;
  border-color: #ffedd5;
}

/* Declined member state button */
.btn-member-declined {
  background: #fff1f2;
  color: #be123c;
  border-color: #fecdd3;
}

/* Feedback button with amber gradient */
.btn-feedback {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s;
}

/* Hover state for feedback button */
.btn-feedback:hover {
  opacity: 0.88;
}

/* Muted button used when feedback is already submitted */
.btn-feedback-done {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

/* Helper class for extra spacing on submit buttons */
.btn-submit {
  margin-top: 10px;
}

/* Full-width submit button for feedback forms */
.btn-submit-feedback {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  border-radius: 10px;
}

/* Inline-flex helper for buttons inside text flows */
.btn-inline-flex {
  display: inline-flex;
  margin-top: 16px;
  width: auto;
  padding: 0 24px;
}

/* Prevents action buttons from wrapping to the next line */
.btn-action-nowrap {
  text-decoration: none;
  white-space: nowrap;
}

/* Special delete button for announcements */
.btn-delete-ann {
  color: #ef4444;
  border-color: #fecaca;
}

/* Inline form wrapper for approve/reject actions */
.form-inline {
  display: inline;
}

/*------------------------------------*/
/* Grid layout for admin dashboard cards */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

/* Main admin dashboard card */
.admin-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.18s;
  text-decoration: none;
  color: var(--text-main);
  cursor: pointer;
}

/* Hover state for admin cards */
.admin-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateY(-2px);
  color: var(--text-main);
}

/* Admin card title */
.admin-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

/* Admin card description text */
.admin-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Link wrapper that removes underline from admin cards */
.admin-card-link {
  text-decoration: none;
}

/* Icon box shown at the top of admin cards */
.card-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  flex-shrink: 0;
}

/* Default user icon colors */
.card-icon-box.users-icon {
  background: var(--primary-light);
  color: var(--primary);
}

/* Approval icon colors */
.card-icon-box.approval-icon {
  background: var(--success-bg);
  color: var(--success-text);
}

/* Logs icon colors */
.card-icon-box.logs-icon {
  background: #fffbeb;
  color: #d97706;
}

/* Green icon box variant */
.icon-box-green {
  background: #ecfdf5;
  color: #059669;
}

/* Purple icon box variant */
.icon-box-purple {
  background: #f5f3ff;
  color: #8b5cf6;
}

/* Bottom link inside admin cards */
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  margin-top: auto;
}

/* Hover state for admin card links */
.card-link:hover {
  color: var(--primary-hover);
}

/* Primary-colored action link text */
.card-action-link-primary {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-top: auto;
}

/* Accent-colored action link text */
.card-action-link-accent {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
}

/* Success-colored action link text */
.card-action-link-success {
  font-size: 13px;
  font-weight: 600;
  color: var(--success-text);
  margin-top: auto;
}

/* Amber-colored action link text */
.card-action-link-amber {
  font-size: 13px;
  font-weight: 600;
  color: #d97706;
  margin-top: auto;
}

/*-------------------------------------*/
/* Grid layout for event cards */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 16px 0;
}

/* Main event card container */
.event-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.18s;
}

/* Hover state for event cards */
.event-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateY(-2px);
}

/* Event image at the top of the card */
.event-card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  display: block;
}

/* Top content area of the event card */
.event-header {
  padding: 14px 16px 0;
}

/* Small event date label above the title */
.event-date {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
}

/* Main body content area of the event card */
.event-body {
  padding: 10px 16px;
  flex: 1;
}

/* Event title text */
.event-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.3;
}

/* Wrapper for event metadata like time and location */
.event-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 8px;
}

/* Each metadata row inside the event card */
.event-meta p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Short event description text */
.event-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Footer area for event actions like buttons */
.event-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/*--------------------------------*/
/* Container that stacks organizer event cards vertically */
.event-list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

/* Main horizontal card used on organizer dashboards */
.organizer-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: box-shadow 0.18s, border-color 0.18s;
}

/* Hover state for organizer cards */
.organizer-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: rgba(99, 102, 241, 0.2);
}

/* Left body area inside organizer card */
.org-event-body {
  flex: 1;
  min-width: 0;
}

/* Header row inside organizer card (title + badges) */
.org-event-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

/* Organizer card event title */
.org-event-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

/* Row that holds buttons and quick actions */
.org-event-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Row for event metadata (date, time, location, etc.) */
.org-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* Each metadata item inside the organizer card */
.org-meta-row span {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Right side of organizer card that shows stats */
.card-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Box that wraps a single stat (value + label) */
.stat-box {
  text-align: center;
  min-width: 56px;
}

/* Large stat value (e.g. registrations count) */
.stat-number {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

/* Small label under the stat value */
.stat-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Text label shown when there are no events */
.empty-event-label {
  font-size: 15px;
  color: var(--text-main);
}

/* Header row above the organizer event list */
.event-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

/* Container that stacks compact event rows */
.event-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Compact row-style event item */
.event-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  transition: box-shadow 0.18s;
}

/* Hover state for event rows */
.event-row:hover {
  box-shadow: var(--shadow-sm);
}

/* Left part of the row (date, title, meta) */
.row-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

/* Right part of the row (actions and badges) */
.row-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Small calendar-style date box */
.date-box {
  text-align: center;
  min-width: 52px;
  padding: 6px 8px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

/* Month text inside the date box */
.date-box .month {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.5px;
}

/* Day number inside the date box */
.date-box .day {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

/* Past events shown with lower opacity */
.event-row-past {
  opacity: 0.65;
}

/* Past date box styling */
.date-box-past {
  background: #f3f4f6;
  color: #9ca3af;
}

/* Row that groups event action buttons */
.event-action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/*-----------------------------*/
/* Vertical list container for club rows */
.club-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

/* Single club row card */
.club-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  transition: box-shadow 0.18s, border-color 0.18s;
}

/* Hover state for club row cards */
.club-row:hover {
  box-shadow: var(--shadow-sm);
  border-color: rgba(99, 102, 241, 0.15);
}

/* Left group that holds icon and club text */
.club-info-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

/* Circular icon with club initials */
.club-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  text-transform: uppercase;
}

/* Club name and meta text block */
.club-text h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 3px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Short club description or extra info */
.club-text p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

/* Right-side action area (join button, status, etc.) */
.club-action {
  flex-shrink: 0;
}

/* Inline badge color for pending club membership */
.pending-badge-inline {
  color: var(--warning-text);
}

/*-----------------------------*/
/* Card wrapper around data tables */
.table-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin: 16px 0;
  box-shadow: var(--shadow-sm);
}

/* Header row above the table title and actions */
.table-card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Table card title text */
.table-card-header h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-main);
}

/* Base styling for all data tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

/* Header row styling */
.data-table thead tr {
  border-bottom: 1px solid var(--border);
  background: #fafbfc;
}

/* Header cells styling */
.data-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Body cells styling */
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-main);
  vertical-align: middle;
}

/* Remove border under the last row */
.data-table tr:last-child td {
  border-bottom: none;
}

/* Hover state for table rows */
.data-table tbody tr:hover {
  background: #fafbff;
}

/* Container for action buttons inside table cells */
.action-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Table cell with date text that should not wrap */
.td-date {
  white-space: nowrap;
}

/* Narrow column used for row numbers */
.th-num {
  width: 50px;
}

/* Extra border used as a print separator */
.td-print-separator {
  border-bottom: 1px solid #ddd;
}

/* Comment cell styling inside tables */
.data-table td.comment-cell {
  color: var(--text-muted);
  font-style: italic;
  max-width: 380px;
}

/* Emphasized text inside comment cells */
.data-table td.comment-cell em {
  opacity: 0.65;
}

/* Highlight used when an event is fully registered */
.reg-full {
  color: #dc2626;
  font-weight: 600;
}

/*--------------------------------------------------*/
/* Card wrapper used around forms */
.form-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 28px 32px;
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
}

/* Main label shown above form fields */
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

/* Small muted text inside a label */
.label-hint {
  font-weight: normal;
  color: #64748b;
}

/* Helper text shown under a field */
.field-hint {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-top: 4px;
}

/* Base styles for text inputs, selects, and textareas */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="datetime-local"],
input[type="date"],
select,
textarea {
  display: block;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--text-main);
  background: #fff;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}

/* Extra styling for textareas */
textarea {
  height: auto;
  padding: 10px 12px;
  resize: vertical;
  min-height: 100px;
}

/* Focus state for form fields */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="datetime-local"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Placeholder text color */
input::placeholder,
textarea::placeholder {
  color: var(--text-light);
}

/* Custom dropdown arrow styling for select fields */
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* Read-only input styling for locked fields */
.input-readonly {
  background: #f1f5f9;
  color: #64748b;
}

/* Uppercase text styling for club code fields */
.input-uppercase {
  text-transform: uppercase;
}

/* Search input width limit */
.search-input-constrained {
  max-width: 340px;
}

/* Divider between profile form sections */
.section-divider {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

/* Title used above a divided form section */
.section-divider-title {
  font-size: 16px;
  margin: 0 0 15px;
  color: var(--text-main);
}

/* Spacing between profile form field groups */
.profile-field-group {
  margin-bottom: 20px;
}

/* File input styling for event banner upload */
.file-input {
  padding: 6px 0;
  font-size: 0.93rem;
}

/* Wrapper around the current banner preview */
.banner-preview-wrap {
  margin-bottom: 10px;
}

/* Current banner image preview */
.banner-preview-img {
  max-height: 120px;
  border-radius: 8px;
  margin-bottom: 8px;
  display: block;
}

/* Label for removing the current banner */
.remove-banner-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  cursor: pointer;
}

/* Styled textarea used in feedback forms */
.form-textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-main);
  font-size: 0.95rem;
  padding: 12px 14px;
  resize: vertical;
  min-height: 110px;
  font-family: inherit;
  box-sizing: border-box;
}

/* Focus state for feedback textarea */
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

/*--------------------------------------------------------------*/
/* Base alert box used for feedback messages */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Success alert styling */
.alert-success {
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid var(--success-border);
}

/* Warning alert styling */
.alert-warning {
  background: var(--warning-bg);
  color: var(--warning-text);
  border: 1px solid var(--warning-border);
}

/* Danger alert styling */
.alert-danger {
  background: var(--danger-bg);
  color: var(--danger-text);
  border: 1px solid var(--danger-border);
}

/*------------------------------*/
/* Main empty state container shown when there is no content */
.empty-state {
  width: 1052px;
  margin: 0 auto;
  padding: 48px 32px;
  text-align: center;
  color: var(--text-main);
  background: linear-gradient(180deg, var(--card-bg) 0%, #fcfdff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

/* Empty state title */
.empty-state h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

/* Empty state description text */
.empty-state p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Message shown when a search returns no matches */
.no-results-msg {
  display: none;
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 10px;
}

/* Text inside the no-results message box */
.no-results-msg p {
  margin: 6px 0 0;
  font-size: 13px;
}

/*----------------------------------*/
/* Three-column grid for student quick action cards */
.actions-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

/* Base action card used for student dashboard tiles */
.action-card-3 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 22px 24px;
  border-radius: 16px;
  text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s;
}

/* Hover state for action cards */
.action-card-3:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Large icon wrapper inside action card */
.action-card-3 .card-icon-lg {
  font-size: 2rem;
  display: flex;
  align-items: center;
}

/* SVG icon sizing inside the large icon wrapper */
.action-card-3 .card-icon-lg svg {
  width: 28px;
  height: 28px;
}

/* Action card title text */
.action-card-3 h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

/* Action card description text */
.action-card-3 p {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.82;
}

/* Primary action card variant (indigo gradient) */
.primary-card-3 {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #fff;
}

/* Secondary action card variant (student cyan gradient) */
.secondary-card-3 {
  background: linear-gradient(135deg, var(--color-student) 0%, #0284c7 100%);
  color: #fff;
}

/* Tertiary action card variant (accent purple gradient) */
.tertiary-card-3 {
  background: linear-gradient(135deg, var(--accent) 0%, #6d28d9 100%);
  color: #fff;
}

/*-----------------------------------------------------------*/
/* Grid layout for analytics stat cards */
.analytics-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

/* Single analytics stat card */
.analytics-stat-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 25px;
  text-align: center;
}

/* Large analytics number */
.analytics-stat-num {
  font-size: 36px;
  font-weight: 800;
}

/* Label under the analytics number */
.analytics-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Primary color for analytics numbers */
.analytics-stat-num.color-primary {
  color: var(--primary);
}

/* Green color for published analytics numbers */
.analytics-stat-num.color-published {
  color: #16a34a;
}

/* Orange color for pending analytics numbers */
.analytics-stat-num.color-pending {
  color: #c2410c;
}

/* Accent color for analytics numbers */
.analytics-stat-num.color-accent {
  color: #9333ea;
}

/* Card wrapper for the member growth chart */
.growth-chart {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 60px;
}

/* Row that holds all growth bars */
.growth-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  height: 120px;
}

/* Single month column inside the growth chart */
.growth-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

/* Value label shown above each growth bar */
.growth-bar-value {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
}

/* Filled part of each growth bar */
.growth-bar-fill {
  width: 100%;
  background: var(--primary);
  border-radius: 4px 4px 0 0;
}

/* Month label shown under each growth bar */
.growth-bar-month {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
}

/* Table cell that contains the fill-rate bar */
.fill-rate-cell {
  min-width: 140px;
}

/* Wrapper for fill-rate bar and percentage */
.fill-rate-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Background track for the fill-rate bar */
.fill-rate-bar-bg {
  flex: 1;
  background: #f1f5f9;
  border-radius: 6px;
  height: 8px;
  overflow: hidden;
}

/* Filled portion of the fill-rate bar */
.fill-rate-bar-fill {
  height: 100%;
  border-radius: 6px;
}

/* Percentage text beside the fill-rate bar */
.fill-rate-pct {
  font-size: 12px;
  font-weight: 700;
  min-width: 36px;
}

/*-------------------------------------------------------------------------------*/
/* Toolbar row used above lists and tables */
.toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

/* Wrapper that keeps the search input and icon aligned */
.search-bar-wrap {
  position: relative;
  flex: 1;
  max-width: 600px;
  min-width: 200px;
}

/* Search icon placed inside the input */
.search-bar-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Search input styling */
.search-bar-wrap input {
  padding-left: 38px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-size: 13px;
  width: 100%;
  background: #fff;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}

/* Focus state for search input */
.search-bar-wrap input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(45, 107, 228, 0.12);
}

/* Inline label that shows an icon and small text */
.meta-icon-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Small uppercase label inside meta-icon-label */
.meta-icon-label strong {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  margin-right: 2px;
}

/* Organizer tag chip shown on event rows */
.organizer-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--text-muted);
  background: #f4f6f9;
  border: 1px solid var(--border-color);
  border-radius: 99px;
  padding: 2px 10px;
  font-weight: 500;
}

/* Small separator dot in meta information lines */
.meta-dot {
  color: var(--text-light);
  margin: 0 4px;
}

/*----------------------------------------------------------*/
/* List of past events on the student dashboard */
.past-events-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

/* Header above the past events section */
.past-events-header {
  margin-top: 36px;
}

/* Subtitle text under the past events header */
.past-events-subtitle {
  margin-bottom: 16px;
}

/* Single past event row card */
.past-event-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  gap: 12px;
  flex-wrap: wrap;
}

/* Past event title text */
.past-event-info h4 {
  margin: 0 0 3px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Past event metadata text */
.past-event-info p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Wrapper for the student event search input */
.event-search-wrap {
  position: relative;
  margin-bottom: 18px;
}

/* Search icon inside the student event search field */
.event-search-wrap svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Student event search input */
.event-search-wrap input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 42px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-main);
  background: #fff;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  font-family: 'DM Sans', sans-serif;
}

/* Focus state for student event search */
.event-search-wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Placeholder color for student event search */
.event-search-wrap input::placeholder {
  color: var(--text-light);
}

/* No-results message container for student event search */
.event-no-results {
  display: none;
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

/* Title text inside the event no-results message */
.event-no-results strong {
  display: block;
  font-size: 15px;
  color: var(--text-main);
  margin-bottom: 6px;
}

/*-----------------------------------------------------*/
/* Star rating widget for feedback submission */
.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 6px;
  margin: 12px 0 18px;
}

/* Hide the radio inputs behind the star labels */
.star-rating input[type="radio"] {
  display: none;
}

/* Star label styling inside the rating widget */
.star-rating label {
  font-size: 2.4rem;
  color: #d1d5db;
  cursor: pointer;
  transition: color 0.15s;
  line-height: 1;
}

/* Highlight selected and hovered stars */
.star-rating input[type="radio"]:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: #f59e0b;
}

/* Read-only stars shown when feedback is already submitted */
.readonly-stars {
  display: inline-flex;
  gap: 4px;
  font-size: 1.8rem;
}

/* Filled star color in read-only mode */
.readonly-stars .star-filled {
  color: #f59e0b;
}

/* Empty star color in read-only mode */
.readonly-stars .star-empty {
  color: #d1d5db;
}

/* Wrapper around the read-only stars block */
.readonly-stars-wrap {
  margin-bottom: 20px;
}

/* Small label shown next to the read-only rating */
.readonly-rating-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-left: 8px;
  align-self: center;
}

/* Red color used for required rating marker */
.rating-required {
  color: #ef4444;
}

/* Muted text used for optional comment label */
.comment-optional {
  color: var(--text-muted);
  font-weight: 400;
}

/* Main feedback form card */
.feedback-card {
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 32px 36px;
  max-width: 600px;
  margin: 0 auto;
}

/* Feedback card main title */
.feedback-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text-main);
}

/* Event metadata text under the feedback title */
.feedback-card .event-meta-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Outer container for the feedback page */
.feedback-container {
  margin-top: 30px;
}

/* Centered alert box on the feedback page */
.feedback-alert-centered {
  max-width: 600px;
  margin: 0 auto 24px;
}

/* Title shown above the feedback form */
.feedback-form-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 20px;
  color: var(--text-main);
}

/* Read-only box used to display submitted comments */
.readonly-comment-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
  min-height: 60px;
}

/* Small note showing when feedback was submitted */
.submitted-at-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 16px;
}

/*-------------------------------------------*/
/* Grid that shows average rating and star breakdown */
.feedback-summary-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 28px;
}

/* Box that displays the average rating score */
.avg-rating-box {
  text-align: center;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 14px;
  padding: 20px 28px;
  color: #fff;
  min-width: 120px;
}

/* Large average rating number */
.avg-rating-box .avg-number {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

/* Star row under the average number */
.avg-rating-box .avg-stars {
  font-size: 1.1rem;
  margin: 6px 0 4px;
  letter-spacing: 2px;
}

/* Small label under the average rating */
.avg-rating-box .avg-label {
  font-size: 0.8rem;
  opacity: 0.85;
}

/* List that shows star rating breakdown rows */
.breakdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Single breakdown row (e.g. 5 stars, bar, count) */
.breakdown-item {
  display: grid;
  grid-template-columns: 70px 1fr 40px;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
}

/* Label for each star level (e.g. "5 stars") */
.breakdown-item .star-label {
  color: var(--text-muted);
  font-weight: 500;
}

/* Background track for the breakdown bar */
.breakdown-bar-track {
  height: 10px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

/* Filled part of the breakdown bar */
.breakdown-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: 99px;
  transition: width 0.4s ease;
}

/* Count of responses for each star level */
.breakdown-count {
  text-align: right;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* Inline rating stars used inside table rows or lists */
.rating-stars-inline {
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: 1px;
}

/* Empty star color in inline rating rows */
.rating-stars-inline .star-empty {
  color: #d1d5db;
}

/* Message shown when there is no feedback yet */
.no-feedback-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
}

/* Title text inside the no-feedback state */
.no-feedback-state h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
}

/* Header spacing for the view feedback page */
.feedback-page-header {
  margin-bottom: 24px;
}

/* Small label above feedback sections (e.g. "Ratings") */
.rating-section-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 14px;
}

/* Table cell styling for response date */
.response-date-cell {
  white-space: nowrap;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Smaller time text next to the date */
.response-time {
  font-size: 0.78rem;
}

/* Label next to the response rating */
.response-rating-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 4px;
}

/*-------------------------------------*/
/* Single announcement entry wrapper */
.announcement-card {
  margin-bottom: 16px;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

/* Inner content container for an announcement */
.announcement-inner {
  width: 100%;
}

/* Header row with title and actions */
.announcement-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

/* Announcement title text */
.announcement-title {
  font-size: 1rem;
}

/* Meta text (author, date, etc.) under the title */
.announcement-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Main body text of the announcement */
.announcement-body {
  margin-top: 10px;
  white-space: pre-wrap;
  line-height: 1.6;
}

/*-----------------------------------------------*/
/* Filter form row above the logs table */
.filter-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Wrapper to control width of log filter select */
.filter-select-wrap {
  min-width: 180px;
}

/* Log filter dropdown styling */
.filter-select {
  height: 40px;
  padding: 0 30px 0 12px;
  font-size: 13px;
}

/* Log table date cell */
.td-log-date {
  white-space: nowrap;
  font-size: 12px;
  color: var(--text-muted);
}

/* Log table email cell */
.td-log-email {
  font-size: 12px;
  color: var(--text-muted);
}

/* Log table detail/description cell */
.td-log-detail {
  font-size: 13px;
}

/* Log table IP address cell */
.td-log-ip {
  font-size: 12px;
  color: var(--text-muted);
}

/* Pagination container under the logs table */
.pagination-wrap {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 20px;
}

/* Single pagination link/button */
.pagination-link {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

/*-------------------------------*/
/* Hide the print header on screen */
.print-header {
  display: none;
}

/* Print-only styles for attendee view and table output */
@media print {
  /* Hide screen-only elements when printing */
  .no-print,
  .dash-nav,
  .admin-nav,
  .club-nav,
  .organizer-nav,
  .footer,
  .btn-back,
  .btn-logout,
  .btn-primary,
  .btn-sm,
  .header-actions {
    display: none !important;
  }

  /* Reset page styling for print */
  body {
    background: #fff !important;
    font-size: 12pt;
    color: #000;
  }

  /* Make the main container full width in print */
  .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Show the print header above the table */
  .print-header {
    display: block !important;
    text-align: center;
    margin-bottom: 18pt;
    padding-bottom: 10pt;
    border-bottom: 2px solid #000;
  }

  /* Main title inside the print header */
  .print-header h1 {
    font-size: 16pt;
    font-weight: 700;
    margin: 0 0 4pt;
    color: #000;
  }

  /* Subtitle text inside the print header */
  .print-header p {
    font-size: 10pt;
    color: #444;
    margin: 2pt 0 0;
  }

  /* Remove card styling for cleaner print layout */
  .table-card {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    margin: 0 !important;
    width: 100% !important;
  }

  /* Table styling for print */
  .data-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 10pt;
  }

  /* Header cells in printed tables */
  .data-table th {
    background: #f0f0f0 !important;
    color: #000 !important;
    border: 1px solid #888 !important;
    padding: 6pt 8pt !important;
    font-size: 9pt;
    text-transform: uppercase;
    letter-spacing: 0.4px;
  }

  /* Body cells in printed tables */
  .data-table td {
    border: 1px solid #ccc !important;
    padding: 6pt 8pt !important;
    color: #000 !important;
    background: #fff !important;
  }

  /* Alternate row color in print */
  .data-table tbody tr:nth-child(even) td {
    background: #f8f8f8 !important;
  }

  /* Disable hover styles in print */
  .data-table tbody tr:hover {
    background: none !important;
  }

  /* Show print-only table cells */
  .print-only {
    display: table-cell !important;
  }

  /* Set printed page size and margins */
  @page {
    size: A4 landscape;
    margin: 15mm;
  }

  /* Prevent table rows from breaking across pages */
  .data-table tbody tr {
    page-break-inside: avoid;
  }

  /* Tighten spacing around the page header in print */
  .page-header-row {
    margin-top: 0 !important;
    margin-bottom: 8pt !important;
  }

  /* Printed page title styling */
  .page-header-row .dash-title {
    font-size: 13pt;
    color: #000;
  }

  /* Printed page subtitle styling */
  .page-header-row .dash-subtitle {
    font-size: 10pt;
    color: #444;
  }
}

/*----------------------------------------------------*/
/* Footer shown at the bottom of the page */
.footer {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: var(--text-light);
  border-top: 1px solid var(--border);
  background: var(--card-bg);
  margin-top: auto;
}

/*----------------------------------------------*/
/* Responsive layout tweaks for tablets and small screens */
@media (max-width: 768px) {
  /* Stack nav content and shrink height on small screens */
  .dash-nav,
  .admin-nav,
  .club-nav,
  .organizer-nav {
    height: auto;
    min-height: 56px;
    flex-wrap: wrap;
    padding: 10px 16px;
    gap: 8px;
  }

  /* Move logo to first row and align left */
  .nav-center {
    order: -1;
    width: 100%;
    justify-content: flex-start;
  }

  /* Keep left and right sections after the logo row */
  .nav-left {
    order: 0;
  }

  .nav-right {
    order: 1;
  }

  /* Reduce horizontal padding on the main container */
  .container {
    padding: 0 16px 32px;
  }

  /* Make admin dashboard cards single-column */
  .admin-grid {
    grid-template-columns: 1fr;
  }

  /* Make event cards single-column */
  .events-grid {
    grid-template-columns: 1fr;
  }

  /* Stack organizer cards vertically on small screens */
  .organizer-card {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Let organizer stats row expand full width */
  .card-right {
    width: 100%;
    justify-content: flex-start;
  }

  /* Stack page header content vertically */
  .page-header-row {
    flex-direction: column;
  }

  /* Make header actions full-width row */
  .header-actions {
    width: 100%;
  }

  /* Slightly smaller table text on small screens */
  .data-table {
    font-size: 12px;
  }

  /* Reduce table padding for tight layouts */
  .data-table th,
  .data-table td {
    padding: 8px 10px;
  }

  /* Stack feedback summary grid into a single column */
  .feedback-summary-grid {
    grid-template-columns: 1fr;
  }
}

/* Extra-small screen tweaks (phones) */
@media (max-width: 480px) {
  /* Tighter padding for form cards */
  .form-card {
    padding: 20px;
  }

  /* Slightly smaller page title on mobile */
  .dash-title {
    font-size: 20px;
  }
}