/* ================================
   Creator UI – ListoolAI (Dark)
   Style: Framer / Linear
================================ */

/* VARIABLES UI KIT */
:root {
    --bg-1: #0d1117;
    --bg-2: #161b22;
    --bg-3: #1c2128;

    --text-1: #ffffff;
    --text-2: #a9b1c7;

    --brand: #4c8dff;
    --brand-hover: #3c76dd;
    --brand-light: rgba(76,141,255,0.15);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 28px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.20);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.18);

    --transition: all .2s ease;
}

/* RESET */
body {
    margin: 0;
    padding: 0;
    background: var(--bg-1);
    font-family: 'Inter', sans-serif;
    color: var(--text-1);
}

/* CENTER PAGE */
.page-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 100vh;
    padding: 20px;
}

/* CARD */
.card {
    background: var(--bg-2);
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 420px;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

/* TITRES */
h1, h2, h3 {
    color: var(--text-1);
    margin: 0 0 10px 0;
}

/* PARAGRAPHES */
p {
    color: var(--text-2);
}

/* CHAMPS */
.field {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.field label {
    font-size: 14px;
    color: var(--text-2);
    margin-bottom: 6px;
}

.field input {
    padding: 14px;
    font-size: 16px;
    background: var(--bg-3);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-xl);
    color: var(--text-1);
    transition: var(--transition);
}

.field input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-light);
}

/* BUTTON PRIMARY */
.btn-primary {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 30px;
    background: var(--brand);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--brand-hover);
    box-shadow: 0 0 20px var(--brand-light);
}

/* ERROR MESSAGE */
.error {
    background: rgba(255, 0, 0, 0.15);
    border: 1px solid rgba(255, 0, 0, 0.35);
    color: #ff7777;
    padding: 12px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

/* SUCCESS MESSAGE */
.success {
    background: rgba(76, 255, 140, 0.15);
    border: 1px solid rgba(76, 255, 140, 0.35);
    color: #4cff8c;
    padding: 12px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

/* LINKS */
a {
    color: var(--brand);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--brand-hover);
}


.alert-error {
    background: rgba(255, 82, 82, 0.12);
    border: 1px solid rgba(255, 82, 82, 0.35);
    padding: 14px 18px;
    border-radius: 16px;
    color: #ff6b6b;
    font-size: 15px;
    margin-bottom: 22px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    text-align: center;
}

/* ============================================
   LINEAR GLOW PREMIUM — Creator Dashboard
============================================ */

.card {
    background:#111827 !important;
    border-radius:26px !important;
    padding:28px !important;
    border:1px solid rgba(255,255,255,0.07);
    box-shadow:0 8px 20px rgba(0,0,0,0.35);
}

/* ======================================
   SIDEBAR — LINEAR GLOW HYBRID
====================================== */

.creator-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 80px; /* collapsed */
    height: 100vh;
    background: #0d1220;
    border-right: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: width 0.28s ease;
    overflow: hidden;
}

.creator-sidebar:hover {
    width: 230px; /* expanded */
}

/* LOGO */
.sidebar-logo {
    padding: 22px 16px;
    display: flex;
    justify-content: center;
}

.sidebar-logo img {
    width: 42px;
    height: 42px;
    filter: drop-shadow(0 0 12px rgba(76,141,255,0.65));
}

/* NAV MENU */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 10px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #cbd5e1;
    padding: 12px 14px;
    text-decoration: none;
    border-radius: 12px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.sidebar-nav a:hover {
    background: rgba(76,141,255,0.15);
    color: white;
}

/* ACTIVE ITEM */
.sidebar-nav a.active {
    background: rgba(76,141,255,0.25);
    border-left: 3px solid #4c8dff;
    color: #4c8dff;
    padding-left: 11px;
}

/* ICON */
.sidebar-nav .icon {
    font-size: 20px;
}

/* LABEL */
.sidebar-nav .label {
    opacity: 0;
    transition: opacity 0.2s;
}

.creator-sidebar:hover .label {
    opacity: 1;
}

/* BOTTOM */
.sidebar-bottom {
    padding: 20px 10px;
}

.sidebar-bottom a {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #ff9b9b;
    padding: 12px 14px;
    text-decoration: none;
    border-radius: 12px;
}

.sidebar-bottom a:hover {
    background: rgba(255,80,80,0.15);
}

/* CONTENT */
.creator-content {
    margin-left: 80px;
    padding: 30px;
    transition: margin-left 0.28s ease;
}

.creator-sidebar:hover ~ .creator-content {
    margin-left: 230px;
}
