@font-face {
    font-family: "GTA";
    src: url("/assets/fonts/pricedow.otf");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "RDR";
    src: url("/assets/fonts/rdr.ttf");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Recon";
    src: url("/assets/fonts/eurostile.ttf");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Assassin";
    src: url("/assets/fonts/assassin.ttf");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "SIG";
    src: url("/assets/fonts/sig.ttf");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "TYPE";
    src: url("/assets/fonts/typewriter.ttf");
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg-color: #121212;
    --text-color: #EAEAEA;
    --toolbar-bg: #1F1F1F;
    --toolbar-button: #2E2E2E;
    --toolbar-button-hover: #3A3A3A;
    --toolbar-button-active: #4E8CFF;

    --accent: #4E8CFF;
    --accent-hover: #6CA3FF;
    --theme-primary: #faf295;
    --love-arcade-primary: #f87593;
    --name-generator-primary: #54e38d;
    --changelog-primary: #af54e3;
}

/* --- LIGHT THEME --- */
.light {
    --bg-color: #fafafa;
    --text-color: #1a1a1a;

    --toolbar-bg: #ffffff;
    --toolbar-button: #f0f0f0;
    --toolbar-button-hover: #e4e4e4;
    --toolbar-button-active: #4E8CFF;

    --accent: #4E8CFF;
    --accent-hover: #6CA3FF;

    /* App-specific highlight colors - keep readable on light */
    --theme-primary: #d6bb00;          /* gold-ish, slightly deeper for contrast */
    --love-arcade-primary: #e9456b;    /* deeper pink */
    --name-generator-primary: #1e9b5c; /* deeper green */
    --changelog-primary: #8d2ed6;      /* slightly darker purple */
}

body {
    user-select: none;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: system-ui, sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

.options-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 70px);
    background-color: var(--toolbar-button);
    color: var(--text-color);
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
    z-index: 900;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
}

.options-panel.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.options-content {
    text-align: center;
}

.options-content ul {
    list-style: none;
    padding: 0;
}

.options-content li {
    margin: 15px 0;
    font-size: 24px;
    cursor: pointer;
}

.theme {
    color: var(--theme-primary)
}

.love-arcade {
    color: var(--love-arcade-primary);
}

.name-generator {
    color: var(--name-generator-primary);
}

.changelog {
    color: var(--changelog-primary);
}

.character-edit {
    color: var(--accent);
}

.gta-game {
    text-shadow: 2px 2px black;
    color: white;
    font-family: GTA;
    font-size: 18px;
}

.active-game {
    color: #f0ed58;
}

.recon-game {
    font-family: Recon;
}

.assassin-game {
    font-family: Assassin;
    font-family: 18px;
}

.rdr-game {
    font-family: RDR;
}

.ps4 {
    color: #3f79d6;
}

.blood {
    color: #bb012d;
    font-size: 18px;
    text-shadow: 2px 2px black;
}

.toolbar-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--toolbar-bg);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.2), 0 -8px 20px rgba(0,0,0,0.15);
    padding: 20px 0;
    transition: background-color 0.3s;
}

.toolbar {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 0 15px;
    gap: 10px;
}

.toolbar button {
    flex: 1;
    padding: 12px 15px;
    margin: 0 5px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    background-color: var(--toolbar-button);
    color: var(--text-color);
    transition: background-color 0.25s, transform 0.2s ease-in-out, box-shadow 0.25s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    will-change: transform, background-color, box-shadow;
}

.toolbar button:hover {
    background-color: var(--toolbar-button-hover);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

.toolbar button:active {
    background-color: var(--toolbar-button-active);
    color: #fff;
    transform: scale(0.97);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toolbar button.active {
    background-color: var(--accent);
    color: #fff;
}

.rotate-icon {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.rotate-icon.rotated {
    transform: rotate(180deg);
}

.rotate-icon.fade-out {
    opacity: 0;
}

.render-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 20px;
}

.profilegta {
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 365px;
    height: 220px;
    border-radius: 8px;
    background-color: #FFFFFF;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 1600 800'%3E%3Cg %3E%3Cpath fill='%23fefff4' d='M486 705.8c-109.3-21.8-223.4-32.2-335.3-19.4C99.5 692.1 49 703 0 719.8V800h843.8c-115.9-33.2-230.8-68.1-347.6-92.2C492.8 707.1 489.4 706.5 486 705.8z'/%3E%3Cpath fill='%23fdffe8' d='M1600 0H0v719.8c49-16.8 99.5-27.8 150.7-33.5c111.9-12.7 226-2.4 335.3 19.4c3.4 0.7 6.8 1.4 10.2 2c116.8 24 231.7 59 347.6 92.2H1600V0z'/%3E%3Cpath fill='%23fbffdd' d='M478.4 581c3.2 0.8 6.4 1.7 9.5 2.5c196.2 52.5 388.7 133.5 593.5 176.6c174.2 36.6 349.5 29.2 518.6-10.2V0H0v574.9c52.3-17.6 106.5-27.7 161.1-30.9C268.4 537.4 375.7 554.2 478.4 581z'/%3E%3Cpath fill='%23faffd1' d='M0 0v429.4c55.6-18.4 113.5-27.3 171.4-27.7c102.8-0.8 203.2 22.7 299.3 54.5c3 1 5.9 2 8.9 3c183.6 62 365.7 146.1 562.4 192.1c186.7 43.7 376.3 34.4 557.9-12.6V0H0z'/%3E%3Cpath fill='%23F9FFC6' d='M181.8 259.4c98.2 6 191.9 35.2 281.3 72.1c2.8 1.1 5.5 2.3 8.3 3.4c171 71.6 342.7 158.5 531.3 207.7c198.8 51.8 403.4 40.8 597.3-14.8V0H0v283.2C59 263.6 120.6 255.7 181.8 259.4z'/%3E%3Cpath fill='%23fffec5' d='M1600 0H0v136.3c62.3-20.9 127.7-27.5 192.2-19.2c93.6 12.1 180.5 47.7 263.3 89.6c2.6 1.3 5.1 2.6 7.7 3.9c158.4 81.1 319.7 170.9 500.3 223.2c210.5 61 430.8 49 636.6-16.6V0z'/%3E%3Cpath fill='%23fff6c4' d='M454.9 86.3C600.7 177 751.6 269.3 924.1 325c208.6 67.4 431.3 60.8 637.9-5.3c12.8-4.1 25.4-8.4 38.1-12.9V0H288.1c56 21.3 108.7 50.6 159.7 82C450.2 83.4 452.5 84.9 454.9 86.3z'/%3E%3Cpath fill='%23ffeec4' d='M1600 0H498c118.1 85.8 243.5 164.5 386.8 216.2c191.8 69.2 400 74.7 595 21.1c40.8-11.2 81.1-25.2 120.3-41.7V0z'/%3E%3Cpath fill='%23ffe6c3' d='M1397.5 154.8c47.2-10.6 93.6-25.3 138.6-43.8c21.7-8.9 43-18.8 63.9-29.5V0H643.4c62.9 41.7 129.7 78.2 202.1 107.4C1020.4 178.1 1214.2 196.1 1397.5 154.8z'/%3E%3Cpath fill='%23FFDEC2' d='M1315.3 72.4c75.3-12.6 148.9-37.1 216.8-72.4h-723C966.8 71 1144.7 101 1315.3 72.4z'/%3E%3C/g%3E%3C/svg%3E");
    background-attachment: fixed;
    background-size: cover;
}

.profilegtadead {
    background-color: rgb(186, 227, 255);
    background-image: url("/assets/backgrounds/project-paper.png");
    background-blend-mode: multiply;
    background-size: cover;
    width: 365px;
    height: 476px;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: fixed;
    border-radius: 8px;
    border: 1px solid black;
    font-weight: bold;
}

.profilegtadead:hover {
    cursor: pointer;
}

@keyframes gtaIDAppear {
    0% {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.8) rotateX(25deg);
        filter: blur(6px);
    }
    60% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05) rotateX(0deg);
        filter: blur(1px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotateX(0deg);
        filter: blur(0);
    }
}

@keyframes gtaIDGlow {
    0%, 100% {
        box-shadow: 0 0 0px rgba(255, 255, 255, 0);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 230, 130, 0.8);
    }
}


.profilegta {
    animation: gtaIDAppear 0.7s ease-out forwards, gtaIDGlow 1.5s ease-in-out 0.7s;
    perspective: 1000px;
}

.profilegta:hover {
    cursor: pointer;
}

.profilerdr {
    font-family: TYPE;
    top: 40%;
    left: 50%;
    position: fixed;
    transform: translate(-50%, -50%) scaleY(0);
    transform-origin: top center;
    width: 376px;
    height: 396px;
    border-radius: 8px;
    background-color: rgb(223, 194, 114);
    text-align: center;
    opacity: 0;
    animation: unfold 0.6s ease-out forwards;
    background-image: 
        url('/assets/backgrounds/paper-fibers.png');
    background-blend-mode: multiply;
    background-size: cover;
}

.profilerdr:hover {
    cursor: pointer;
}

@keyframes unfold {
    0% {
        transform: translate(-50%, -50%) scaleY(0);
        opacity: 0;
    }
    60% {
        transform: translate(-50%, -50%) scaleY(1.05);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scaleY(1);
        opacity: 1;
    }
}

.profileacu {
    font-family: Assassin;
    top: 40%;
    left: 50%;
    position: fixed;
    transform: translate(-50%, -50%) scaleY(0.05);
    transform-origin: center top;

    width: 376px;
    height: 300px;
    border-radius: 10px;

    background-color: rgb(117, 187, 158);
    backdrop-filter: blur(4px);
    text-align: center;

    opacity: 0;
    animation: animusMaterialize 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    box-shadow:
        0 0 12px rgba(200, 255, 255, 0.4),
        inset 0 0 18px rgba(255, 255, 255, 0.15);
}

/* Fancy hover glow */
.profileacu:hover {
    cursor: pointer;
    box-shadow:
        0 0 16px rgba(0, 180, 255, 0.6),
        inset 0 0 22px rgba(255, 255, 255, 0.25);
}

/* ANIMUS panel sync-in animation */
@keyframes animusMaterialize {
    0% {
        transform: translate(-50%, -50%) scaleY(0.05);
        opacity: 0;
        filter: blur(6px);
    }
    35% {
        transform: translate(-50%, -50%) scaleY(1.15);
        opacity: 0.6;
        filter: blur(3px);
    }
    55% {
        transform: translate(-50%, -50%) scaleY(0.9);
        opacity: 1;
        filter: blur(1.5px);
    }
    75% {
        transform: translate(-50%, -50%) scaleY(1.03);
        opacity: 1;
        filter: blur(0.5px);
    }
    100% {
        transform: translate(-50%, -50%) scaleY(1);
        opacity: 1;
        filter: blur(0px);
    }
}

.profileacu:hover {
    cursor: pointer;
}

.grb-dossier-wrapper {
    position: fixed;
    max-width: 89vw;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

/* Container */
.grb-dossier {
    width: 100%;
    width: 750px;
    box-sizing: border-box;
    padding: 18px 22px;

    /* FUTURISTIC GRADIENT */
    background: linear-gradient(
        135deg,
        rgba(20, 20, 24, 0.92),
        rgba(30, 30, 36, 0.88),
        rgba(18, 18, 22, 0.95)
    );
    backdrop-filter: blur(6px);

    border: 1px solid rgba(70, 70, 80, 0.45);
    border-radius: 8px;

    font-family: 'Eurostile', sans-serif;
    color: #d4d7db;
    letter-spacing: 0.4px;

    animation: dossierSlideIn 0.65s ease forwards;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.55),
                0 0 22px rgba(0, 150, 255, 0.12);

    overflow: hidden;
    position: relative;
}

/* Scanlines overlay */
.grb-dossier::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,0.03) 0px,
        rgba(255,255,255,0.03) 2px,
        rgba(0,0,0,0.03) 3px
    );
    pointer-events: none;
    opacity: 0.35;
    animation: scanMove 5s linear infinite;
}

@keyframes scanMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100%); }
}

.grb-dossier:hover {
    cursor: pointer;
}

/* Header */
.grb-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.grb-skell {
    width: 60px;
    opacity: 0.85;
    filter: drop-shadow(0 0 3px rgba(0, 200, 255, 0.55))
            drop-shadow(0 0 6px rgba(0, 200, 255, 0.3));
    transition: 0.25s ease;
}

.grb-skell:hover {
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(0, 200, 255, 0.8))
            drop-shadow(0 0 20px rgba(0, 200, 255, 0.5));
}

/* Title */
.grb-title {
    font-size: 18px;
    font-weight: 700;
    color: #e8eaf0;
    text-shadow: 0 0 6px rgba(100,180,255,0.4),
                 0 0 12px rgba(100,180,255,0.2);
}

/* Sections */
.grb-section {
    margin: 10px 0;
}

.grb-label {
    font-size: 11px;
    opacity: 0.55;
    margin-bottom: 2px;
}

.grb-value {
    font-size: 14px;
    font-weight: 500;
}

/* Grid layout */
.grb-grid {
    margin: 8px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 20px;
}

/* Footer */
.grb-footer {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    opacity: 0.8;
}

/* KIA Style */
.grb-dead {
    border: 1px solid #3a1c1c;
    background: #1b1717;
}

.kia {
    color: #c92a2a;
    text-shadow: 0 0 10px rgba(255,0,0,0.55),
                 0 0 14px rgba(255,0,0,0.3);
    font-weight: 800;
}

.alive {
    color: #89db46;
    text-shadow: 0 0 10px rgba(60, 194, 47, 0.55),
                 0 0 14px rgba(39, 104, 26, 0.3);
    font-weight: 800;
}

@keyframes dossierSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.92); /* scale ONLY */
        filter: blur(12px);
    }
    100% {
        opacity: 1;
        transform: scale(1); /* back to normal */
        filter: blur(0px);
    }
}

.character-row {
    flex: 1;
    display: flex;
    gap: 2rem;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    text-align: center;
    padding: 20px;
}

.character-row-section {
    margin-top: 1.2rem;
}

.character-block {
    flex: 1;
    min-width: 200px;
}

.character-list {
    margin: 0;
    padding: 0;
    font-size: 14;
    list-style-type: none;
}

.character-list li {
    cursor: pointer;
    transition: background 0.2s;
}

.character-list li:hover {
    background-color: rgba(255,255,255,0.1);
}

.modern-input {
    max-width: 400px;
    padding: 12px 16px;
    font-size: 16px;
    color: var(--text-color);
    background-color: var(--toolbar-button);
    border: 2px solid var(--toolbar-button-hover);
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 5px;
}

.modern-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    background-color: var(--toolbar-bg);
}

.modern-input::placeholder {
    color: #888;
    opacity: 1;
    transition: color 0.3s ease;
}

.modern-input:disabled {
    background-color: #2a2a2a;
    color: #555;
    cursor: not-allowed;
}

.modern-input:hover:not(:focus) {
    border-color: var(--accent-hover);
}

.modern-button {
    max-width: 400px;
    min-width: 100px;
    padding: 12px 16px;
    font-size: 16px;
    color: var(--text-color);
    background-color: var(--toolbar-button);
    border: 2px solid var(--toolbar-button-hover);
    border-radius: 12px;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin: 20px;
}

.modern-button:hover {
    border-color: var(--accent-hover);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.active-button {
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.modern-button:disabled {
    background-color: #2a2a2a;
    color: #555;
    cursor: not-allowed;
}

#changelog-list {
    display: flex;
    flex-direction: column; /* stack vertically */
    gap: 10px;
    width: 100%;          /* take full width of parent container */
    max-width: 400px;
    align-items: stretch; /* make items stretch full width */
}

.changelog-item {
    display: block;       /* ensure each item is a block */
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid var(--toolbar-button-hover);
    border-radius: 8px;
    transition: background 0.2s;
    text-align: left;     /* optional */
}

.changelog-item:hover {
    background-color: var(--toolbar-button-hover);
}

#changelog-content {
  white-space: pre-wrap;   /* keeps line breaks and wraps long lines */
  word-wrap: break-word;   /* ensures long words don’t break layout */
  overflow-x: auto;        /* horizontal scroll if needed */
  padding: 10px;
}

.filter-icon {
    cursor: pointer;
    margin-right: 8px;
    color: #999;
    font-size: 1.2em;
    transition: transform 0.2s ease, color 0.2s ease;
    position: relative;
    top: 2px;
}

.filter-icon:hover {
    color: #fff;
    transform: scale(1.1);
}

.filter-icon.pulse {
    transform: scale(1.3);
    color: #ffd700;
}

.filter-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 10px;
}

.filter-icon {
    cursor: pointer;
    color: #999;
    font-size: 1.2em;
    transition: transform 0.2s ease, color 0.2s ease;
}

.filter-icon:hover {
    color: #fff;
    transform: scale(1.1);
}

.filter-icon.pulse {
    transform: scale(1.3);
    color: #ffd700;
}

.filter-dropdown {
    background: #222;
    color: #fff;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 8px 10px;
    outline: none;
    cursor: pointer;
    min-width: 140px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.filter-dropdown.active {
    display: block;
}

.filter-dropdown:hover {
    border-color: #666;
}

/* Prevent layout shift during loading */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 10px auto;
    visibility: hidden; /* instead of display:none */
}

.spinner.active {
    visibility: visible; /* toggle this class in JS */
}

.name-generator-display {
    margin-top: 80px;
}

.modern-select {
    max-width: 400px;
    padding: 12px 16px;
    font-size: 16px;
    color: var(--text-color);
    background-color: var(--toolbar-button);
    border: 2px solid var(--toolbar-button-hover);
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 5px;
    appearance: none; /* Remove default arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg fill='%23aaa' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

.modern-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    background-color: var(--toolbar-bg);
}

.modern-select:disabled {
    background-color: #2a2a2a;
    color: #555;
    cursor: not-allowed;
}

.modern-select:hover:not(:focus) {
    border-color: var(--accent-hover);
}

.collapsible-section {
    max-width: 500px;
    margin: 10px auto;
    border: 2px solid var(--toolbar-button-hover);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    background-color: var(--toolbar-button);
}

.collapsible-btn {
    width: 100%;
    padding: 14px 18px;
    text-align: left;
    font-size: 16px;
    font-weight: bold;
    color: var(--text-color);
    background: var(--toolbar-button);
    border: none;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.collapsible-btn::after {
    content: "▾";
    font-size: 18px;
    transition: transform 0.3s ease;
}

.collapsible-btn.active::after {
    transform: rotate(-180deg);
}

.collapsible-btn:hover {
    background-color: var(--toolbar-button-hover);
    border-color: var(--accent-hover);
}

.collapsible-content {
    display: none;
    padding: 10px 16px;
    background: var(--toolbar-bg);
    border-top: 1px solid var(--toolbar-button-hover);
    animation: fadeIn 0.3s ease;
}

.collapsible-content label {
    display: block;
    margin: 5px 0 2px;
    font-size: 14px;
    color: var(--text-color);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.height-group,
.networth-group {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    margin-bottom: 15px;
}

.height-group label,
.networth-group label {
    font-size: 13px;
    color: #aaa;
    min-width: 100px;
    text-align: right;
    margin-right: 8px;
}

.small-input { width: 70px !important; text-align: center; }
.amount-input { width: 110px !important; text-align: center; }

.unit-label { font-size: 14px; color: #888; }

.form-row.compact { display: flex; flex-direction: column; margin: 8px 0; }
.form-row.compact > label { font-size: 13px; color: #aaa; margin-bottom: 4px; }

input[type="date"] {
  accent-color: white;
}

#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#character-editor {
    max-height: 80vh;               /* keeps it inside viewport height */
    overflow-y: auto;               /* enables vertical scrolling */
    padding: 20px;
    box-sizing: border-box;
    scroll-behavior: smooth;        /* smooth scrolling for usability */
}

#char-edit-form button[type="submit"] {
    position: sticky;
    bottom: 10px;
    left: 0;
    width: calc(100% - 20px);
    background-color: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px;
    margin-top: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 5;
    transition: background-color 0.3s;
}

#char-edit-form button[type="submit"]:hover {
    background-color: var(--accent-hover);
}

/* --- Custom Scrollbar Styling --- */
#character-editor::-webkit-scrollbar {
    width: 10px;                    /* scrollbar width */
}

#character-editor::-webkit-scrollbar-track {
    background: var(--toolbar-bg);  /* matches dark background */
    border-radius: 10px;
}

#character-editor::-webkit-scrollbar-thumb {
    background: var(--toolbar-button-hover);
    border-radius: 10px;
    border: 2px solid var(--toolbar-bg); /* creates subtle inset effect */
    transition: background 0.3s;
}

#character-editor::-webkit-scrollbar-thumb:hover {
    background: var(--accent);      /* accent color on hover */
}

/* For Firefox */
#character-editor {
    scrollbar-width: thin;
    scrollbar-color: var(--toolbar-button-hover) var(--toolbar-bg);
}

.notification {
    padding: 10px 15px;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(-10px);
    animation: slideIn 0.3s forwards;
}

.notification.success { background: #2ecc71; }  /* green */
.notification.error { background: #e74c3c; }   /* red */

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- MOBILE OPTIMIZATION FOR GRB DOSSIERS --- */
@media (max-width: 600px) {

    /* Scale container */
    .grb-dossier-wrapper {
        width: 92%;
    }

    .grb-dossier {
        width: 100%;
        max-width: 95vw;
        padding: 16px 18px;
    }

    .grb-header {
        gap: 8px;
        margin-bottom: 10px;
    }

    .grb-skell {
        width: 45px;
    }

    .grb-title {
        font-size: 15px;
    }

    .grb-label {
        font-size: 10px;
    }

    .grb-value {
        font-size: 13px;
    }

    /* Grid becomes tighter */
    .grb-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px 10px;
    }

    @media (max-width: 420px) {
        .grb-grid {
            grid-template-columns: 1fr;
        }
    }

    .grb-footer {
        flex-direction: column;
        text-align: center;
        gap: 4px;
        font-size: 10px;
    }
}

@media (max-width: 360px) {
    .grb-dossier-wrapper {
        transform: translate(-50%, -50%) scale(0.85);
    }
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.padded-input-right {
    padding-right: 26px !important; /* space for pencil icon */
}

.edit-icon-right {
    position: absolute;
    right: 36px; /* sits inside input */
    color: #aaa;
    pointer-events: none;  /* ensures it's not clickable */
    font-size: 14px;
}

.lock-icon {
    margin-left: 8px;
    cursor: pointer;
}

#love-bar {
    width: 40px;
    height: 200px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin: 20px auto;
    border: 2px solid white;

    display: flex;
    align-items: flex-end;  /* FIX — bar fills from bottom */
}

#love-bar-fill {
    width: 100%;
    height: 0%;
    background: linear-gradient(to top, #ff0055, #ff77c5);
    transition: height 1.2s ease-out;
}

#compatibility {
    font-size: 32px;
    margin-top: 10px;
    transition: 0.6s ease;
}

.glow-up {
    text-shadow: 0 0 10px #ff55aa, 0 0 20px #ff99dd;
    color: #ffbbff;
}