/* ---------------------------------------------------------
   GLOBAL
--------------------------------------------------------- */
:root {
    --accent: #9B4CFF;
    --accent-hover: #9B4CFF;
}

body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background: #000;
    color: #fff;
    margin: 0;
    padding: 0;
}

/* ---------------------------------------------------------
   SIDEBAR
--------------------------------------------------------- */


.sidebar h3 {
    color: var(--accent);
    margin-top: 25px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 4px;
}

.sidebar ul {
    list-style: none;
    padding-left: 0;
}

.sidebar li {
    margin: 8px 0;
}

.sidebar a {
    color: #ccc;
    text-decoration: none;
    padding: 6px 4px;
    display: block;
    border-left: 3px solid transparent;
    transition: 0.2s ease;
}

.sidebar a:hover {
    color: var(--accent-hover);
    border-left: 3px solid var(--accent);
    background: rgba(122, 43, 239, 0.1);
}

.sidebar a.active {
    color: var(--accent);
    border-left: 3px solid var(--accent);
    background: rgba(122, 43, 239, 0.15);
}

/* ---------------------------------------------------------
   HEADER
--------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 210px;
    right: 0;
    height: 60px;
    background: url('/assets/images/earthburnsban3.jpg') center center / cover no-repeat;
    color: #eee;
    padding: 12px 20px;
    border-bottom: 1px solid #333;
    z-index: 900;
}

/* ---------------------------------------------------------
   PAGE CONTENT
--------------------------------------------------------- */
.page-container {
    margin-left: 215px;
    margin-top: 60px;
    padding: 20px;
}

.page-container h1 {
    color: var(--accent);
    border-left: 4px solid var(--accent);
    padding-left: 10px;
}

/* ---------------------------------------------------------
   DASHBOARD GRID
--------------------------------------------------------- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.dash-tile {
    background: #222;
    padding: 20px;
    border-radius: 8px;
    text-decoration: none;
    color: #eee;
    transition: background 0.2s;
}

.dash-tile:hover {
    background: #333;
}

.dash-tile h2 {
    margin: 0 0 10px;
    font-size: 20px;
}

.dash-tile p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}

/* ---------------------------------------------------------
   TABLES
--------------------------------------------------------- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    color: white;
}

table th {
    background: #1a1a1a;
    color: var(--accent);
    padding: 10px;
    border-bottom: 2px solid var(--accent);
}

table td {
    padding: 10px;
    border-bottom: 1px solid #333;
}

table tr:hover {
    background: rgba(122, 43, 239, 0.1);
}

/* ---------------------------------------------------------
   FORMS
--------------------------------------------------------- */
label {
    display: block;
    margin-top: 12px;
    color: #ccc;
    font-weight: 500;
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
input[type="file"],
textarea,
select {
    background: #111;
    border: 1px solid #333;
    border-left: 3px solid var(--accent);
    padding: 8px;
    color: white;
    width: 100%;
    border-radius: 4px;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 6px var(--accent);
    outline: none;
}

/* ---------------------------------------------------------
   BUTTONS
--------------------------------------------------------- */
button {
    padding: 12px 20px;
    background: var(--accent);
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 8px var(--accent-hover);
}

/* ---------------------------------------------------------
   PREVIEW THUMBNAILS
--------------------------------------------------------- */
.preview-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid var(--accent);
    border-radius: 4px;
}


.action-button {
    display: inline-block;
    padding: 10px 18px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.action-button:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 8px var(--accent-hover);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

table th,
table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #333;
    box-sizing: border-box;
}

table th {
    font-weight: 600;
    background: #151515;
}



.form-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.cancel-button {
    display: inline-block;
    padding: 10px 18px;
    background: #444;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.cancel-button:hover {
    background: #555;
}

.action-edit {
    padding: 6px 12px;
    background: #2a7ae2;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    transition: background 0.2s ease;
}

.action-edit:hover {
    background: #1f5fb0;
}

.action-delete {
    padding: 6px 12px;
    background: #d9534f;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    transition: background 0.2s ease;
}

.action-delete:hover {
    background: #b94743;
}

.action-view {
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    color: white;
}

.action-view {
    background: #5a5aff;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

table td:last-child,
table th:last-child {
    width: 150px;
}

.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #0d0d0d;
}

.login-card {
    width: 380px;
    background: #111;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 12px #000;
    text-align: center;
}

.login-banner {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 20px;
}

.login-card label {
    display: block;
    text-align: left;
    margin-top: 12px;
    margin-bottom: 4px;
}

.login-card input[type="text"],
.login-card input[type="password"] {
    width: 100%;
    padding: 10px;
    background: #222;
    border: 1px solid #333;
    border-radius: 4px;
    color: #eee;
}

.login-card .remember {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.error-box {
    background: #b94743;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    color: #fff;
}

.sidebar-userinfo {
    padding: 15px;
    border-bottom: 1px solid #333;
    background: #0f0f0f;
    text-align: left;
}

.sidebar-userinfo .userinfo-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #fff;
}

.sidebar-userinfo .userinfo-date,
.sidebar-userinfo .userinfo-time {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 2px;
}

.userinfo-time {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    margin-top: 4px;
}

.form-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #222;
    border-radius: 8px;
}

.form-section h2 {
    margin-top: 0;
}



.form-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.cancel-button {
    display: inline-block;
    padding: 10px 18px;
    background: #444;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.cancel-button:hover {
    background: #555;
}





.dashboard-section {
    margin-bottom: 40px;
}

.dashboard-section h2 {
    margin-bottom: 15px;
}

.message-card {
    background: #222;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    border: 1px solid #333;
}

.message-meta {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.message-text {
    font-size: 20px;
    color: #eee;
    margin-bottom: 10px;
    white-space: pre-wrap;
}

/* Message board width */
.message-board {
    width: 80%;
    margin-top: 40px;
}

/* Header row: title left, button right */
.message-board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* Align the button nicely */
.mb-new {
    margin-left: auto;
}

/* Message cards */
.message-card {
    background: #222;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    border: 1px solid #333;
}

.message-meta {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.message-text {
    font-size: 20px;
    color: #eee;
    margin-bottom: 10px;
    white-space: pre-wrap;
}

/* --- GRID LAYOUT --- */
.dashboard-grid-wide {
    width: 80%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-left: 0;
    margin-right: 0;
    margin-top: 30px;
    padding-left: 0;   /* THIS is the key */	
}

/* --- TILE BASE --- */
.dash-tile {
    background: #222;
    padding: 20px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    border: 1px solid #333;
    transition:
        background 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

/* --- TILE HOVER --- */
.dash-tile:hover {
    background: #2a2a2a;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 0 18px rgba(155, 109, 255, 0.45);
}

/* --- TILE TEXT --- */
.dash-tile h2 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.dash-tile p {
    margin: 0;
    font-size: 14px;
    color: #ccc;
}

/* --- ICON CONTAINER --- */
.tile-icon {
    height: 40px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

/* --- ICON BASE STYLE --- */
.icon-svg {
    width: 32px;
    height: 32px;
    stroke: #9b6dff;
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;

    /* Always visible */
    stroke-dasharray: 80;
    stroke-dashoffset: 0;

    /* Smooth transitions */
    transition:
        filter 0.3s ease,
        transform 0.3s ease;
}

/* --- ICON ENTRY ANIMATION (single-run) --- */
.dash-tile:hover .icon-svg {
    animation: iconDraw 0.6s ease forwards;
    filter: drop-shadow(0 0 6px #9b6dff);
    transform: scale(1.08);
}

/* --- Stroke-draw animation --- */
@keyframes iconDraw {
    0% {
        stroke-dashoffset: 80;
        opacity: 0.4;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

/* --- OPTIONAL: subtle pulse glow --- */
.dash-tile:hover {
    animation: pulseGlow 1.4s ease-in-out;
}

@keyframes pulseGlow {
    from { box-shadow: 0 0 12px rgba(155, 109, 255, 0.25); }
    to   { box-shadow: 0 0 22px rgba(155, 109, 255, 0.55); }
}

/* --- HOLOGRAPHIC GRID OVERLAY (ULTRA BRIGHT) --- */
.holo-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;

    /* MUCH brighter neon grid */
    background:
        linear-gradient(90deg, rgba(155,109,255,0.75) 2px, transparent 2px),
        linear-gradient(0deg, rgba(155,109,255,0.75) 2px, transparent 2px);
    background-size: 40px 40px;

    opacity: 0;
    transform: translateY(120px) scale(1.15);
    filter: blur(10px);

    animation: holoSweep 2.0s ease-out forwards;
}

/* --- HOLOGRAPHIC SWEEP ANIMATION --- */
@keyframes holoSweep {
    0% {
        opacity: 0;
        transform: translateY(140px) scale(1.2);
        filter: blur(14px);
    }
    15% {
        opacity: 1;
        transform: translateY(60px) scale(1.1);
        filter: blur(8px);
    }
    40% {
        opacity: 0.95;
        transform: translateY(20px) scale(1.05);
        filter: blur(5px);
    }
    70% {
        opacity: 0.7;
        transform: translateY(-10px) scale(1.02);
        filter: blur(4px);
    }
    100% {
        opacity: 0;
        transform: translateY(-40px) scale(0.98);
        filter: blur(10px);
    }
}

/* --- HOLOGRAPHIC SCAN BAR OVERLAY (SHORTER + QUICK FADE) --- */
.holo-scan-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;

    opacity: 0;

    /* Narrower, bright neon scan bar */
    background:
        linear-gradient(
            to right,
            transparent 0%,
            rgba(155,109,255,0.85) 49%,
            rgba(255,255,255,1) 50%,
            rgba(155,109,255,0.85) 51%,
            transparent 100%
        ),
        linear-gradient(90deg, rgba(155,109,255,0.55) 2px, transparent 2px),
        linear-gradient(0deg, rgba(155,109,255,0.55) 2px, transparent 2px);

    background-size: 100% 100%, 40px 40px, 40px 40px;
    background-repeat: no-repeat;

    filter: blur(5px);

    /* 20% shorter: 2.8s → 2.2s */
    animation: holoScanMove 1.6s linear forwards;
}

/* --- CONSTANT SPEED SCAN MOVEMENT --- */
@keyframes holoScanMove {
    0% {
        opacity: 1;
        transform: translateX(-120%);
        filter: blur(10px);
    }
    85% {
        opacity: 1;
        transform: translateX(120%);
        filter: blur(5px);
    }
    100% {
        opacity: 0;
        transform: translateX(150%);
        filter: blur(12px);
    }
}

/* --- REALISTIC METAL TITLE BAR (PERFECTLY ALIGNED) --- */
.lp-metal-title {
    width: 80%;                 /* matches dashboard grid */
    margin-top: 40px;   /* increased gap */	
    margin: 20px auto 30px auto;
	margin-left: 0;
    margin-right: 0;
    padding: 26px 34px;
    border-radius: 14px;

    /* Photorealistic brushed metal */
    background: 
        linear-gradient(90deg,
            rgba(255,255,255,0.25) 0%,
            rgba(180,180,180,0.35) 20%,
            rgba(140,140,140,0.45) 40%,
            rgba(110,110,110,0.55) 60%,
            rgba(140,140,140,0.45) 80%,
            rgba(180,180,180,0.35) 100%
        );

    /* Fine metal grain */
    background-blend-mode: overlay;
    filter: brightness(1.1) contrast(1.15);

    /* Deep metal depth */
    box-shadow:
        inset 0 2px 4px rgba(255,255,255,0.7),
        inset 0 -4px 8px rgba(0,0,0,0.6),
        0 6px 14px rgba(0,0,0,0.5),
        0 0 12px rgba(155,109,255,0.4);

    border: 1px solid #666;
    position: relative;
    overflow: hidden;
}

/* --- DEEP EMBOSSED / CUT-OUT TEXT --- */
.lp-metal-title span {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: 1px;

    color: transparent;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.8),
        rgba(255,255,255,0.35)
    );
    -webkit-background-clip: text;
    background-clip: text;

    text-shadow:
        2px 2px 4px rgba(255,255,255,0.5),
        -2px -2px 4px rgba(0,0,0,0.7);

    display: inline-block;   /* ensures perfect centering */
}


/* --- OPTIONAL: subtle metal shine sweep --- */
.lp-metal-title::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255,255,255,0.7) 50%,
        transparent 100%
    );
    opacity: 0.45;
    transform: skewX(-20deg);
    animation: metalShine 2.4s ease-out 1;
}

@keyframes metalShine {
    0% { left: -120%; }
    100% { left: 140%; }
}

.lp-dashboard-wrap {
    width: 80%;
    margin: 0 auto;
}

.lp-align-wrap {
    width: 100%;
    margin: 0;
    padding: 0;
}


.lp-metal-title {
    width: 80%;
    margin-top: 40px;   /* <-- NEW GAP */
    margin-bottom: 30px;

    padding: 26px 0;    /* vertical only */
    border-radius: 14px;

    background:
        linear-gradient(90deg,
            #d0d0d0 0%,
            #b8b8b8 20%,
            #9e9e9e 40%,
            #8a8a8a 60%,
            #9e9e9e 80%,
            #b8b8b8 100%
        );

    background-blend-mode: overlay;
    filter: brightness(1.12) contrast(1.18);

    box-shadow:
        inset 0 2px 4px rgba(255,255,255,0.7),
        inset 0 -4px 8px rgba(0,0,0,0.6),
        0 6px 14px rgba(0,0,0,0.5),
        0 0 12px rgba(155,109,255,0.4);

    border: 1px solid #777;

    position: relative;
    overflow: hidden;

    text-align: center; /* centers the text */
}

.lp-metal-title span {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: 1px;

    color: transparent;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.8),
        rgba(255,255,255,0.35)
    );
    -webkit-background-clip: text;
    background-clip: text;

    text-shadow:
        2px 2px 4px rgba(255,255,255,0.5),
        -2px -2px 4px rgba(0,0,0,0.7);

    display: inline-block;
}

/* --- FUTURISTIC GLOWING TITLE --- */
.lp-title {
    width: 80%;
    margin-top: 50px;     /* clean gap under header */
    margin-bottom: 30px;
    text-align: left;   /* centers the text */
}

/* --- GLOWING HOLOGRAPHIC TEXT --- */
.lp-title span {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 1.5px;

    color: #dcdcff;

    /* Neon glow */
    text-shadow:
        0 0 6px rgba(155,109,255,0.8),
        0 0 12px rgba(155,109,255,0.6),
        0 0 22px rgba(155,109,255,0.4),
        0 0 40px rgba(155,109,255,0.3);

    /* Slight holographic shimmer */
    animation: lpGlowPulse 3s ease-in-out infinite;
}

/* --- HOLOGRAPHIC PULSE ANIMATION --- */
@keyframes lpGlowPulse {
    0% {
        text-shadow:
            0 0 6px rgba(155,109,255,0.8),
            0 0 12px rgba(155,109,255,0.6),
            0 0 22px rgba(155,109,255,0.4),
            0 0 40px rgba(155,109,255,0.3);
        opacity: 0.95;
    }
    50% {
        text-shadow:
            0 0 10px rgba(185,139,255,1),
            0 0 20px rgba(185,139,255,0.8),
            0 0 35px rgba(185,139,255,0.6),
            0 0 60px rgba(185,139,255,0.5);
        opacity: 1;
    }
    100% {
        text-shadow:
            0 0 6px rgba(155,109,255,0.8),
            0 0 12px rgba(155,109,255,0.6),
            0 0 22px rgba(155,109,255,0.4),
            0 0 40px rgba(155,109,255,0.3);
        opacity: 0.95;
    }
}

/* --- SIDEBAR RIGHT GLOW LINE --- */
/* ---------------------------------------------------------
   SIDEBAR
--------------------------------------------------------- */
.sidebar {
    position: fixed;      /* keep sidebar fixed */
    top: 0;
    left: 0;
    width: 180px;         /* sidebar width */
    height: 100vh;
    background: transparent;
    padding: 20px 10px 20px 20px; /* right padding included */
    overflow-y: auto;
    z-index: 1000;        /* sidebar stays above main content */
}

/* Thin glowing purple line */
.sidebar::after {
    content: "";
    position: absolute;
    top: 0;
    right: -2px; /* move glow OUTSIDE the sidebar */
    width: 2px;
    height: 100%;
    background: transparent;

    box-shadow:
        0 0 6px #9b6dff,
        0 0 12px #9b6dff,
        0 0 20px rgba(155,109,255,0.7);

    z-index: 999; /* glow sits above background but below content */
    animation: sidebarGlowPulse 3s ease-in-out infinite;
}

/* Pulse animation */
@keyframes sidebarGlowPulse {
    0% {
        box-shadow:
            0 0 6px #9b6dff,
            0 0 12px #9b6dff,
            0 0 20px rgba(155,109,255,0.7);
    }
    50% {
        box-shadow:
            0 0 10px #b58cff,
            0 0 20px #b58cff,
            0 0 35px rgba(181,140,255,0.9);
    }
    100% {
        box-shadow:
            0 0 6px #9b6dff,
            0 0 12px #9b6dff,
            0 0 20px rgba(155,109,255,0.7);
    }
}

.sidebar h3 {
    color: #cbb3ff;
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 18px;
    letter-spacing: 1px;

    text-shadow:
        0 0 4px #9b6dff,
        0 0 8px rgba(155,109,255,0.7);
}
/* Make ID + Poly Count columns thinner */
.models-table td:nth-child(1),
.models-table th:nth-child(1) {
    width: 60px;
}

.models-table td:nth-child(4),
.models-table th:nth-child(4) {
    width: 100px;
}

/* Give Actions column more space */
.models-table td:nth-child(6),
.models-table th:nth-child(6) {
    width: 220px;
}



.item-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 20px;
}

.item-col .form-section {
    background: #222;
    padding: 20px;
    border-radius: 8px;
}

@media (max-width: 1100px) {
    .item-grid {
        grid-template-columns: 1fr;
    }
}



.form-compact label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
}

.form-compact input,
.form-compact select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid #333;
    background: #111;
    color: #eee;
}

.form-compact label {
    display: block;
    margin-top: 12px;
    margin-bottom: 5px;
}

.form-compact input,
.form-compact textarea,
.form-compact select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid #333;
    background: #111;
    color: #eee;
}

.form-compact input,
.form-compact textarea,
.form-compact select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid #333;
    background: #111;
    color: #eee;
    box-sizing: border-box;
}


.form-compact textarea {
    resize: none;
    height: 60px; /* ~3 lines */
    overflow-y: auto;
}

.form-compact label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
}

.form-compact {
    width: 80%;
    margin: 0;
}

.form-compact button {
    background: var(--accent-purple);
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
}

.form-compact button:hover {
    background: #a45cff;
}

.form-compact input[type="checkbox"] {
    width: auto;
    padding: 0;
    margin-right: 8px;
    vertical-align: middle;
    transform: translateY(1px); /* optional micro-adjust */
}


.action-button {
    background: var(--accent-purple);
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
}

.form-compact button:hover,
.action-button:hover {
    background: #a45cff;
}

.form-compact button,
    background: var(--accent-purple);
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
}
.action-button {
    background: var(--accent-purple) !important;
    border: none !important;
    padding: 12px 20px !important;
    border-radius: 6px !important;
    color: #222 !important;
    font-weight: 600 !important;
    cursor: pointer;
    display: inline-block;
}

.action-button:hover {
    background: #a45cff !important;
}

.toggle-icon {
    display: inline-block;
    width: 20px;
    margin-right: 8px;
    color: var(--accent-purple);
    font-weight: bold;
}

.section-content[data-editable="1"] .content-display:hover {
    background: #222;
    border-radius: 6px;
    padding: 5px;
    cursor: pointer;
}

.content-editor {
    width: 100%;
    height: 200px;
    background: #111;
    border: 1px solid #333;
    color: #eee;
    border-radius: 6px;
    padding: 10px;
    margin-top: 10px;
}


.roadmap-container {
    max-width: 1400px;
    padding: 20px;
}


.section-content .save-content-button {
    background: var(--accent-purple) !important;
    color: #fff !important;
    padding: 10px 18px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    margin-top: 10px !important;
    display: inline-block !important;
    border: none !important;
    opacity: 1 !important;
}

.section-content .save-content-button {
    background: var(--accent-purple) !important;
    color: #fff !important;

    padding: 10px 18px !important;
    border-radius: 6px !important;
    border: 2px solid var(--accent-purple) !important;

    display: inline-block !important;
    opacity: 1 !important;

    font-weight: 600 !important;
    cursor: pointer !important;

    margin-top: 12px !important;
}

.section-content .save-content-button {
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.5) !important;
}

.section-content .save-content-button:hover {
    background: #b06cff !important;
    border-color: #b06cff !important;
}

a.action-back {
    background: #6f4acb;        /* deeper purple */
    color: white;
    padding: 8px 14px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
}

a.action-back:hover {
    background: #8a63e8;
}


.roles-table td:nth-child(3),
.roles-table th:nth-child(3) {
    width: 45%;
}

.roles-table td:nth-child(2),
.roles-table th:nth-child(2) {
    width: 30%;
}

.roles-table td:nth-child(1),
.roles-table th:nth-child(1) {
    width: 25%;
}


.audio-edit-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: #1e1e1e;
    padding: 25px;
    border-radius: 10px;
}

.audio-edit-wrapper label {
    display: block;
    margin-top: 15px;
    font-weight: 600;
}

.audio-edit-wrapper input,
.audio-edit-wrapper select,
.audio-edit-wrapper textarea {
    width: 100%;
    box-sizing: border-box;
}

.audio-edit-wrapper button {
    display: block;
    margin: 25px auto 0 auto;
}

.idea-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
    background: #333;
}

.placeholder-thumb {
    background: #2a2a2a;
    border: 1px dashed #444;
}

.idea-description {
    max-height: 80px;
    overflow: hidden;
}

.idea-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
}

.idea-search-form input[type="text"],
.idea-search-form select {
    width: 200px;        /* Adjust as you prefer */
}

.idea-search-form button {
    margin-top: 10px;    /* Adds the missing gap */
}

.idea-search-form {
    max-width: 900px;
}

.btn-accent {
    background: #6a1b9a; /* deep purple accent */
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
}
.btn-accent:hover {
    background: #7b2bb0;
}

.action-button {
    background: #6a1b9a; /* your purple accent */
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.action-button:hover {
    background: #7b2bb0;
}

.delete-button {
    background: #c62828; /* red */
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}
.delete-button:hover {
    background: #e53935;
}

.idea-tile {
    background: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-top: 3px solid #6a1b9a; /* purple accent */
    border-radius: 12px;
    padding: 18px;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.idea-tile:hover {
    background: #262626;
    transform: translateY(-3px);
}

/* Title */
.idea-title {
    font-size: 22px;       /* bigger */
    font-weight: 600;
    margin-bottom: 10px;
    color: #e0e0e0;
}

/* Metadata */
.idea-meta {
    color: #bbb;
    font-size: 14px;       /* slightly bigger */
    margin-bottom: 10px;
    line-height: 1.5;
}

.idea-description {
    color: #ccc;
    font-size: 15px;
    line-height: 1.5;
    white-space: pre-line; /* preserve newlines */
    
    display: -webkit-box;
    -webkit-line-clamp: 3; /* number of lines to show */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.idea-description {
    position: relative;
}

.idea-description::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40%;
    height: 1.5em;
    background: linear-gradient(to right, transparent, #1e1e1e);
}

.idea-thumb {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.idea-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* no cropping */
}

.placeholder-thumb {
    border: 1px dashed #444;
}

.idea-view {
    max-width: 900px;        /* wider tile */
    margin: 0 auto;
    background: #1e1e1e;
    padding: 25px;
    border-radius: 12px;
    border-top: 3px solid #6a1b9a; /* purple accent */
}

.action-button,
.delete-button {
    display: inline-block;
    padding: 10px 18px;      /* identical padding */
    border-radius: 6px;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.4;        /* consistent height */
}

.action-button {
    background: #6a1b9a;     /* purple accent */
    color: #fff;
}
.action-button:hover {
    background: #7b2bb0;
}

.delete-button {
    background: #c62828;     /* red for destructive only */
    color: #fff;
}
.delete-button:hover {
    background: #e53935;
}

.idea-description-list {
    white-space: pre-line;
    font-size: 15px;
    line-height: 1.5;

    display: -webkit-box;
    -webkit-line-clamp: 3;      /* only 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.idea-description-view {
    white-space: pre-line;
    font-size: 16px;
    line-height: 1.6;
    color: #ddd;

    max-height: calc(1.6em * 30);  /* ~30 lines */
    overflow-y: auto;              /* scroll if too long */
    padding-right: 10px;           /* space for scrollbar */
}

.dash-tile.not-ready {
    position: relative;
    cursor: not-allowed;
    opacity: 0.85;
}

.dash-tile.not-ready::after {
    content: "";
    position: absolute;
    top: 6px;
    right: 6px;
    width: 10px;
    height: 10px;
    background: #ff3b3b;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(255, 0, 0, 0.6);
}

.task-search-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.task-search-bar input[type="text"],
.task-search-bar select {
    background: #1e1e1e;
    border: 1px solid #333;
    padding: 6px 10px;
    border-radius: 6px;
    color: #fff;
    width: 160px;      /* FIXED WIDTH — no full width */
}

.task-search-bar .chk {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ccc;
}

.task-search-bar button {
    padding: 8px 14px;
}

.task-search-bar .chk {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #1e1e1e;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #333;
    height: 32px;              /* matches input/select height */
    line-height: 20px;         /* fixes vertical alignment */
    box-sizing: border-box;
}


.task-search-bar .chk input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #b38cff;
    cursor: pointer;
}


.task-content h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.task-meta {
    font-size: 15px;
}

.task-tile {
    width: 1150px;               /* wider */
    min-height: 140px;           /* 30px smaller vertically */
    background: #1e1e1e;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;         /* vertical centering */
    gap: 20px;
}

/* Column 1: Icon */
.task-icon {
    flex: 0 0 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-icon .icon-svg {
    width: 70px;
    height: 70px;
    fill: #b38cff;
}

/* Column 2: Content */
.task-content {
    flex: 1;
}

.task-content h3 {
    margin: 0 0 8px;
    font-size: 26px;             /* bigger */
}

.task-meta {
    font-size: 20px;             /* bigger */
    color: #ccc;
    margin-bottom: 4px;
}

/* Column 3: Actions */
.task-actions {
    flex: 0 0 150px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.task-actions .action-button {
    padding: 10px 18px;
    font-size: 15px;
}

select[multiple] {
    min-height: 140px;
    background: #1e1e1e;
    border: 1px solid #333;
    padding: 6px;
    border-radius: 6px;
    color: #fff;
}

.form-standard input,
.form-standard select,
.form-standard textarea {
    width: 60%;
}
