/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[2].use[1]!../../node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js??ruleSet[1].rules[14].oneOf[2].use[2]!../../node_modules/next/font/google/target.css?{"path":"src/app/layout.tsx","import":"Inter","arguments":[{"subsets":["latin","vietnamese"],"weight":["300","400","500","600","700"],"variable":"--font-inter"}],"variableName":"inter"} ***!
  \****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* cyrillic-ext */
@font-face {
  font-family: '__Inter_5e6426';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/_next/static/media/ba9851c3c22cd980-s.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: '__Inter_5e6426';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/_next/static/media/21350d82a1f187e9-s.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: '__Inter_5e6426';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/_next/static/media/c5fe6dc8356a8c31-s.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: '__Inter_5e6426';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/_next/static/media/19cfc7226ec3afaa-s.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: '__Inter_5e6426';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/_next/static/media/df0a9ae256c0569c-s.p.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: '__Inter_5e6426';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/_next/static/media/8e9860b6e62d6359-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: '__Inter_5e6426';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/_next/static/media/e4af272ccee01ff0-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: '__Inter_5e6426';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/ba9851c3c22cd980-s.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: '__Inter_5e6426';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/21350d82a1f187e9-s.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: '__Inter_5e6426';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/c5fe6dc8356a8c31-s.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: '__Inter_5e6426';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/19cfc7226ec3afaa-s.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: '__Inter_5e6426';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/df0a9ae256c0569c-s.p.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: '__Inter_5e6426';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/8e9860b6e62d6359-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: '__Inter_5e6426';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/e4af272ccee01ff0-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: '__Inter_5e6426';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/ba9851c3c22cd980-s.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: '__Inter_5e6426';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/21350d82a1f187e9-s.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: '__Inter_5e6426';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/c5fe6dc8356a8c31-s.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: '__Inter_5e6426';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/19cfc7226ec3afaa-s.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: '__Inter_5e6426';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/df0a9ae256c0569c-s.p.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: '__Inter_5e6426';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/8e9860b6e62d6359-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: '__Inter_5e6426';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/e4af272ccee01ff0-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: '__Inter_5e6426';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/ba9851c3c22cd980-s.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: '__Inter_5e6426';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/21350d82a1f187e9-s.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: '__Inter_5e6426';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/c5fe6dc8356a8c31-s.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: '__Inter_5e6426';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/19cfc7226ec3afaa-s.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: '__Inter_5e6426';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/df0a9ae256c0569c-s.p.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: '__Inter_5e6426';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/8e9860b6e62d6359-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: '__Inter_5e6426';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/e4af272ccee01ff0-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: '__Inter_5e6426';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/ba9851c3c22cd980-s.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: '__Inter_5e6426';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/21350d82a1f187e9-s.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: '__Inter_5e6426';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/c5fe6dc8356a8c31-s.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: '__Inter_5e6426';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/19cfc7226ec3afaa-s.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: '__Inter_5e6426';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/df0a9ae256c0569c-s.p.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: '__Inter_5e6426';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/8e9860b6e62d6359-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: '__Inter_5e6426';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/e4af272ccee01ff0-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}@font-face {font-family: '__Inter_Fallback_5e6426';src: local("Arial");ascent-override: 90.49%;descent-override: 22.56%;line-gap-override: 0.00%;size-adjust: 107.06%
}.__className_5e6426 {font-family: '__Inter_5e6426', '__Inter_Fallback_5e6426';font-style: normal
}.__variable_5e6426 {--font-inter: '__Inter_5e6426', '__Inter_Fallback_5e6426'
}

/*!*************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!../../node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************************/
/* Custom resets */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

:root {
  --font-sans: var(--font-inter), sans-serif;
  --bg-primary: #0a0c10;
  --bg-secondary: #121620;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --color-brand: #5a3eca;
  --color-brand-hover: #482db0;
  --color-success: #10b981;
  --color-danger: #ef4444;
  --glass-bg: rgba(18, 22, 32, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-glow: rgba(90, 62, 202, 0.15);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-primary: #f9fafb;
    --bg-secondary: #ffffff;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-glow: rgba(90, 62, 202, 0.08);
  }
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
}

/* Glassmorphism Panel */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--glass-glow) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: rotateGlow 20s linear infinite;
}

@keyframes rotateGlow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .glass-panel::before {
    animation: none;
  }
}

.content-wrapper {
  position: relative;
  z-index: 1;
}

/* Header Styling */
header {
  margin-bottom: 2.5rem;
  text-align: center;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #a5b4fc 0%, var(--color-brand) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
  font-weight: 400;
}

/* Badge styling */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  background: rgba(90, 62, 202, 0.1);
  color: var(--color-brand);
  border: 1px solid rgba(90, 62, 202, 0.2);
}

/* Grid layout for list */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Card styling */
.card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: light) {
  .card {
    background: rgba(0, 0, 0, 0.02);
  }
}

.card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(90, 62, 202, 0.3);
  box-shadow: 0 10px 20px -10px rgba(90, 62, 202, 0.15);
}

@media (prefers-color-scheme: light) {
  .card:hover {
    background: rgba(0, 0, 0, 0.04);
  }
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-family: monospace;
}

.card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Info Banner */
.info-banner {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--color-success);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.info-banner svg {
  flex-shrink: 0;
}

.grid-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.empty-message {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Auth Pages Style */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(at 0% 0%, rgba(243, 232, 255, 0.4) 0px, transparent 50%),
    radial-gradient(at 50% 0%, rgba(224, 242, 254, 0.4) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(255, 228, 230, 0.4) 0px, transparent 50%), var(--bg-primary);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

@media (prefers-color-scheme: light) {
  .auth-container {
    background:
      radial-gradient(at 0% 0%, #f3e8ff 0px, transparent 50%),
      radial-gradient(at 50% 0%, #e0f2fe 0px, transparent 50%),
      radial-gradient(at 100% 0%, #ffe4e6 0px, transparent 50%), #f8fafc;
  }
}

.auth-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  position: relative;
  z-index: 10;
}

@media (prefers-color-scheme: light) {
  .auth-card {
    background: #ffffff;
    border-color: #f1f5f9;
    box-shadow: 0 10px 30px -10px rgba(90, 62, 202, 0.06);
  }
}

.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.auth-logo {
  color: var(--color-brand);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-logo svg {
  color: var(--color-brand);
}

.auth-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.auth-desc {
  font-size: 0.825rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  line-height: 1.4;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
}

@media (prefers-color-scheme: light) {
  .form-label {
    color: #1e293b;
  }
}

.required-star {
  color: var(--color-danger);
  margin-left: 0.125rem;
  font-weight: 700;
}

.form-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.875rem;
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 1px var(--color-brand);
}

@media (prefers-color-scheme: light) {
  .form-input {
    border-color: #cbd5e1;
    background: #ffffff;
    color: #1e293b;
  }
  .form-input:focus {
    border-color: var(--color-brand);
    box-shadow: 0 0 0 1px var(--color-brand);
  }
}

.form-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.form-button {
  width: 100%;
  padding: 0.625rem;
  background-color: var(--color-brand);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.form-button:hover {
  background-color: var(--color-brand-hover);
}

.form-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.password-toggle-btn {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
}

.auth-link {
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
}

.auth-link:hover {
  color: var(--color-brand);
}

.auth-remember-me-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.auth-footer {
  margin-top: 1.25rem;
  text-align: center;
}

.otp-container {
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.otp-input {
  width: 2.75rem;
  height: 2.75rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s ease;
}

.otp-input:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 1px var(--color-brand);
}

@media (prefers-color-scheme: light) {
  .otp-input {
    border-color: #cbd5e1;
    background: #ffffff;
    color: #1e293b;
  }
}

.toast {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 9999;
  font-size: 0.875rem;
  font-weight: 500;
  animation: slideIn 0.2s ease-out;
}

.toast-success {
  border-left: 4px solid var(--color-success);
}

.toast-error {
  border-left: 4px solid var(--color-danger);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (prefers-color-scheme: light) {
  .toast {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #1e293b;
  }
}

/* Global spin animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Password field input right padding protection */
.form-input-wrapper .form-input {
  padding-right: 2.5rem;
}

/* Responsive OTP inputs to prevent wrapping on narrow mobile displays */
@media (max-width: 380px) {
  .otp-container {
    gap: 0.25rem;
  }
  .otp-input {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1rem;
  }
}

/* Dashboard Layout Shell */
.dashboard-container {
  display: flex;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background-color: #f8fafc; /* Soft Slate Background */
}

.sidebar {
  width: 240px;
  height: 100vh;
  height: 100dvh;
  background-color: #ffffff; /* Clean Card white */
  border-right: 1px solid #f1f5f9; /* Soft Border Slate-100 */
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }
}

.sidebar-logo {
  height: 64px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}

.sidebar-logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a; /* Slate-900 */
}

.sidebar-menu {
  flex: 1 1;
  padding: 1.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
}

.sidebar-item-wrapper {
  display: flex;
  flex-direction: column;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #64748b; /* Slate-500 */
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  background: none;
  border: none;
  text-align: left;
  width: 100%;
}

.sidebar-item:hover {
  background-color: #f1f5f9; /* Slate-100 */
  color: #1e293b;
}

.sidebar-item.active {
  background-color: #5a3eca; /* Vibrant Indigo primary */
  color: #ffffff;
  font-weight: 600;
}

.sidebar-item-chevron {
  margin-left: auto;
  transition: transform 0.2s ease;
}

.sidebar-item-chevron.open {
  transform: rotate(90deg);
}

.sidebar-submenu {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.sidebar-subitem {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem 0.625rem 2.5rem; /* Indent pl-4 equivalent */
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.sidebar-subitem:hover {
  background-color: #f1f5f9;
  color: #1e293b;
}

.sidebar-subitem.active {
  color: #5a3eca;
  font-weight: 600;
  background-color: #eef2ff; /* Vibrant Indigo Light */
  border-left: 3px solid #5a3eca;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  padding-left: calc(2.5rem - 3px);
}

.main-content-wrapper {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.header {
  height: 64px;
  background-color: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  flex-shrink: 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.search-wrapper {
  position: relative;
  width: 280px;
}

.search-input {
  width: 100%;
  height: 38px;
  padding: 0 1rem 0 2.5rem;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9999px; /* Pill-shaped */
  font-size: 0.875rem;
  color: #1e293b;
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  background-color: #ffffff;
  border-color: #5a3eca;
  box-shadow: 0 0 0 1px #5a3eca;
}

.search-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.bell-btn {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.bell-btn:hover {
  background-color: #f1f5f9;
  color: #1e293b;
}

.avatar-wrapper {
  position: relative;
}

.avatar-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  overflow: hidden;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.avatar-btn:focus,
.avatar-btn:hover {
  border-color: #5a3eca;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-dropdown {
  position: absolute;
  right: 0;
  top: 42px;
  width: 240px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  overflow: hidden;
  padding: 0.5rem 0;
  animation: dropdownFade 0.2s ease-out;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-header {
  padding: 0.75rem 1.25rem;
}

.dropdown-user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
}

.dropdown-user-email {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.125rem;
  word-break: break-all;
}

.dropdown-separator {
  height: 1px;
  background-color: #f1f5f9;
  margin: 0.5rem 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  color: #334155;
  text-decoration: none;
  width: 100%;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: #f8fafc;
  color: #0f172a;
}

.dropdown-item.text-danger {
  color: #e11d48;
}

.dropdown-item.text-danger:hover {
  background-color: #fff1f2;
  color: #e11d48;
}

.main-content {
  flex: 1 1;
  padding: 2rem;
  overflow-y: auto;
  background-color: #f8fafc;
}

/* GitLab Style Profile Layout */
.profile-container {
  max-width: 1000px;
  margin: 0 auto;
}

.profile-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2rem;
}

.profile-section {
  display: grid;
  grid-template-columns: 350px 1fr;
  grid-gap: 2.5rem;
  gap: 2.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid #e2e8f0;
}

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

.profile-info-col {
  max-width: 300px;
}

.profile-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.profile-section-desc {
  font-size: 0.825rem;
  color: #64748b;
  line-height: 1.5;
}

.profile-form-col {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.01);
}

.profile-avatar-picker {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.profile-avatar-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #e2e8f0;
  background-color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-avatar-placeholder {
  color: #94a3b8;
}

.avatar-picker-btn {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #5a3eca;
  border: 1px solid #e2e8f0;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.avatar-picker-btn:hover {
  background-color: #eef2ff;
  border-color: #5a3eca;
}

.avatar-picker-btn input[type='file'] {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
}

@media (max-width: 900px) {
  .profile-section {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .profile-info-col {
    max-width: 100%;
  }
}

/* User Management Dashboard Styles */
.users-page-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.users-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.users-page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a; /* Slate 900 */
  margin: 0 0 0.25rem 0;
}

.users-page-subtitle {
  font-size: 0.875rem;
  color: #64748b; /* Slate 500 */
  margin: 0;
}

.add-member-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #5a3eca; /* Vibrant Purple */
  color: #ffffff;
  border: none;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(90, 62, 202, 0.15);
}

.add-member-btn:hover {
  background-color: #4a2fb4;
  box-shadow: 0 6px 16px rgba(90, 62, 202, 0.25);
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 0.75rem;
  gap: 0.75rem;
}

.stats-card {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  border: 1px solid rgba(0, 0, 0, 0.02);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
  transition: transform 0.2s ease;
}

.stats-card:hover {
  transform: translateY(-1px);
}

.stats-card-label {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.85;
}

.stats-card-value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

/* Stats Pastel Colors */
.total-users-card {
  background-color: #e0f2fe; /* pastel-blue */
  color: #0369a1; /* pastel-blue-text */
}

.active-roles-card {
  background-color: #f3e8ff; /* pastel-purple */
  color: #6b21a8; /* pastel-purple-text */
}

.admin-count-card {
  background-color: #ffe4e6; /* pastel-orange */
  color: #b91c1c; /* pastel-orange-text */
}

/* Filter Bar */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background-color: #ffffff;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
}

.filter-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.filter-search-wrapper {
  position: relative;
  width: 260px;
}

.search-bar-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.filter-search-input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2.25rem;
  font-size: 0.875rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  outline: none;
  background-color: #ffffff;
  transition: all 0.2s ease;
}

.filter-search-input:focus {
  border-color: #5a3eca;
  box-shadow: 0 0 0 1px #5a3eca;
}

.filter-select {
  width: 160px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  color: #334155;
  background-color: #ffffff;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-select:focus {
  border-color: #5a3eca;
  box-shadow: 0 0 0 1px #5a3eca;
}

/* Compact Table */
.table-container {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
  overflow-x: auto;
}

.compact-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.compact-table th {
  padding: 0.875rem 1rem;
  background-color: #f8fafc;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #e2e8f0;
}

.compact-table td {
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  white-space: nowrap;
}

.compact-table tbody tr:hover {
  background-color: rgba(248, 250, 252, 0.5);
}

.role-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding-left: 0.5rem;
  height: 1rem;
}

.role-badge.role-admin {
  color: #dc2626;
  border-left: 3px solid #dc2626;
}

.role-badge.role-manager {
  color: #7c3aed;
  border-left: 3px solid #7c3aed;
}

.role-badge.role-user {
  color: #2563eb;
  border-left: 3px solid #2563eb;
}

.status-label {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 500;
  font-size: 0.875rem;
}

.status-label svg {
  flex-shrink: 0;
}

.status-label.status-active {
  color: #059669; /* Emerald 600 */
}

.status-label.status-blocked {
  color: #e11d48; /* Rose 600 */
}

/* Table Actions & Custom Tooltips */
.table-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background-color: #f8fafc;
  color: #0f172a;
}

.action-btn.edit:hover {
  border-color: #5a3eca;
  color: #5a3eca;
}

.action-btn.lock:hover {
  border-color: #ef4444;
  color: #ef4444;
  background-color: #fef2f2;
}

.action-btn.unlock:hover {
  border-color: #10b981;
  color: #10b981;
  background-color: #ecfdf5;
}

.action-btn.reset:hover {
  border-color: #f59e0b;
  color: #f59e0b;
  background-color: #fffbeb;
}

.tooltip-wrapper {
  position: relative;
  display: inline-flex;
}

.tooltip-wrapper .tooltip-text {
  visibility: hidden;
  width: max-content;
  background-color: #0f172a;
  color: #ffffff;
  text-align: center;
  border-radius: 4px;
  padding: 0.375rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  position: absolute;
  z-index: 50;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.15s ease-in-out;
  pointer-events: none;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.tooltip-wrapper .tooltip-text::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -4px;
  border-width: 4px;
  border-style: solid;
  border-color: #0f172a transparent transparent transparent;
}

.tooltip-wrapper:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Pagination Row */
.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.pagination-left {
  font-size: 0.875rem;
  color: #64748b;
}

.pagination-right {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.pagination-btn,
.pagination-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.pagination-btn:hover:not(:disabled),
.pagination-number:hover {
  background-color: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

.pagination-btn:disabled {
  color: #cbd5e1;
  border-color: #e2e8f0;
  cursor: not-allowed;
  opacity: 0.6;
}

.pagination-number.active {
  background-color: #5a3eca;
  color: #ffffff;
  border-color: #5a3eca;
}

/* Modal Dialog Styles */
.modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  background-color: rgba(15, 23, 42, 0.4);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-container {
  background-color: #ffffff;
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.modal-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.modal-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background-color: #f1f5f9;
  color: #475569;
}

.modal-form {
  padding: 1.5rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 2rem;
}

.modal-btn-cancel {
  background-color: #ffffff;
  color: #475569;
  border: 1px solid #e2e8f0;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-btn-cancel:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
}

.modal-btn-submit {
  background-color: #5a3eca;
  color: #ffffff;
  border: none;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-btn-submit:hover:not(:disabled) {
  background-color: #4a2fb4;
}

.modal-btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Back Link */
.back-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.back-link:hover {
  color: #5a3eca;
}

/* Permissions Grid & Item Cards */
.permissions-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  grid-gap: 0.75rem;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (min-width: 640px) {
  .permissions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.permission-item-card {
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 0.875rem;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  transition: all 0.15s ease;
}

.permission-item-card:hover {
  border-color: #cbd5e1;
  background-color: #f8fafc;
}

.permission-item-card.active {
  border-color: #5a3eca;
  background-color: rgba(90, 62, 202, 0.03);
}

/* Custom Checkbox focus styling */
.custom-checkbox {
  accent-color: #5a3eca;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Outline purple button */
.btn-outline {
  background-color: #ffffff;
  color: #5a3eca;
  border: 1px solid #5a3eca;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-outline:hover:not(:disabled) {
  background-color: rgba(90, 62, 202, 0.05);
  border-color: #4a2fb4;
  color: #4a2fb4;
}

.btn-outline:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Global Loading Overlay */
.global-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 12, 16, 0.7); /* dark semi-translucent backdrop */
  backdrop-filter: blur(8px); /* beautiful glassmorphism blur */
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999; /* highest z-index to block all interactions */
  animation: fadeInOverlay 0.2s ease-out forwards;
}

.global-loading-spinner-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-secondary, #121620);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  padding: 2.5rem 3.5rem;
  border-radius: 20px;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: scaleInSpinner 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.global-loading-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3.5px solid rgba(90, 62, 202, 0.15);
  border-top-color: var(--color-brand, #5a3eca);
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 15px rgba(90, 62, 202, 0.3);
}

.global-loading-text {
  color: var(--text-primary, #f3f4f6);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0;
  animation: pulseText 1.5s ease-in-out infinite;
}

@keyframes fadeInOverlay {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleInSpinner {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes pulseText {
  0%,
  100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

