:root {
    /* Tema Dark (padrão) */
    --bg: #0e0e10;
    --bg-secondary: #16161a;
    --bg-tertiary: #1a1a1e;
    --card: rgba(255, 255, 255, 0.05);
    --card-hover: rgba(255, 255, 255, 0.08);
    --text: #f1f1f1;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --accent: #8f00ff;
    --accent-hover: #a34dff;
    --accent-light: rgba(143, 0, 255, 0.1);
    --border-glass: rgba(255, 255, 255, 0.15);
    --border-light: rgba(255, 255, 255, 0.1);
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(0, 0, 0, 0.5);
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
}

body {
    margin: 0;
    background: var(--bg);
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    display: flex;
    min-height: 100vh;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Fallback para navegadores que não suportam gradientes */
body:not(.light) {
    background-color: var(--bg);
}

/* Transições suaves para mudanças de tema */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.sidebar {
    width: 230px;
    background: var(--card);
    backdrop-filter: blur(14px);
    border-right: 1px solid var(--border-glass);
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px var(--shadow);
}

/* Melhorias específicas para tema light */
html.light .sidebar {
    background: var(--card-glass);
    border-right: 1px solid var(--border-medium);
    box-shadow: 2px 0 15px var(--shadow-medium);
}

.logo img {
    width: 150px;
    display: block;
    margin: 0 auto 20px;
}

nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 10px;
    transition: background-color 0.3s, box-shadow 0.3s;
}

nav a:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 0 10px var(--accent-hover);
}

nav a.active {
    background-color: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

nav i {
    width: 20px;
    height: 20px;
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.header {
    padding: 20px;
    border-bottom: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
    background: var(--card);
    box-shadow: 0 2px 10px var(--shadow);
}

/* Melhorias específicas para tema light */
html.light .header {
    background: var(--card-glass);
    border-bottom: 1px solid var(--border-medium);
    box-shadow: 0 2px 15px var(--shadow-medium);
}

.header h1 {
    margin: 0;
    font-weight: 600;
}

.content {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(12px);
    padding: 20px;
    border-radius: 16px;
    flex: 1;
    min-width: 300px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s, border-color 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--shadow-hover);
    background: var(--card-hover);
    border-color: var(--border-medium);
}

/* Melhorias específicas para tema light */
html.light .card {
    background: var(--card-glass);
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 25px var(--shadow-medium);
}

html.light .card:hover {
    background: var(--card-glass-hover);
    border-color: var(--border-medium);
    box-shadow: 0 8px 35px var(--shadow-strong);
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input, select {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border-glass);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text);
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    outline: none;
}

select option {
    background-color: var(--bg-secondary);
    color: var(--text);
}

button {
    padding: 12px;
    border-radius: 10px;
    border: none;
    background-color: var(--accent);
    color: white;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.flash {
    list-style: none;
    padding: 10px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 10px;
    margin-top: 15px;
}

.flash li {
    margin-bottom: 5px;
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--accent);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 0 20px var(--accent);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.5s, transform 0.5s;
    transform: translateY(-20px);
}

.toast.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Tema Light - Design System Avançado */
body.light,
html.light {
    /* Backgrounds - tons suaves e profissionais (sem branco puro) */
    --bg: #f6f7f9;
    --bg-secondary: #eef1f5;
    --bg-tertiary: #e7eaef;

    /* Cards - off-white com leve profundidade */
    --card: #f8f9fb;
    --card-hover: #f5f7fa;
    --card-glass: rgba(248, 249, 251, 0.85);
    --card-glass-hover: rgba(248, 249, 251, 0.92);

    /* Texto - contraste alto e legível */
    --text: #16181a;
    --text-secondary: #3a3f45;
    --text-muted: #5c6670;
    --text-inverse: #ffffff;

    /* Accent - mantido para identidade visual */
    --accent: #8f00ff;
    --accent-hover: #7c00e6;
    --accent-light: rgba(143, 0, 255, 0.12);
    --accent-dark: #6b00cc;

    /* Bordas - ligeiramente mais visíveis para melhor definição */
    --border-glass: rgba(0, 0, 0, 0.10);
    --border-light: rgba(0, 0, 0, 0.06);
    --border-medium: rgba(0, 0, 0, 0.14);
    --border-strong: rgba(0, 0, 0, 0.18);

    /* Sombras - incremento sutil para separar elementos */
    --shadow: rgba(0, 0, 0, 0.06);
    --shadow-medium: rgba(0, 0, 0, 0.10);
    --shadow-hover: rgba(0, 0, 0, 0.14);
    --shadow-strong: rgba(0, 0, 0, 0.18);
    --shadow-colored: rgba(143, 0, 255, 0.15);

    /* Estados - semânticos */
    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.12);
    --warning: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.12);
    --error: #ef4444;
    --error-light: rgba(239, 68, 68, 0.12);
    --info: #3b82f6;
    --info-light: rgba(59, 130, 246, 0.12);

    /* Overlays e modais */
    --overlay: rgba(0, 0, 0, 0.35);
    --overlay-light: rgba(0, 0, 0, 0.18);

    /* Gradientes especiais (suaves) */
    --gradient-primary: linear-gradient(135deg, #8f00ff 0%, #a34dff 100%);
    --gradient-secondary: linear-gradient(135deg, #f6f7f9 0%, #eef1f5 100%);
    --gradient-card: linear-gradient(135deg, rgba(248, 249, 251, 0.95) 0%, rgba(248, 249, 251, 0.80) 100%);
}

/* Responsivo */
@media (max-width: 768px) {
    .sidebar {
        width: 100px;
        padding: 10px;
    }

    .sidebar .logo img {
        width: 60px;
        margin-bottom: 10px;
    }

    nav span {
        display: none;
    }

    .header h1 {
        font-size: 20px;
    }

    .content {
        padding: 10px;
    }

    .card {
        padding: 15px;
    }
}
nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 10px;
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.2s;
}

nav a:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 0 15px var(--accent-hover);
    transform: scale(1.05);
}
/* Hero */
.hero {
    background: linear-gradient(135deg, var(--accent), #5d00b2);
    padding: 30px;
    border-radius: 16px;
    color: white;
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
    box-shadow: 0 0 20px var(--accent);
}

.hero h2 {
    margin: 0;
    font-size: 2rem;
}

.hero p {
    margin-top: 10px;
    font-weight: 300;
}

/* Mockup */
.mockup {
    position: relative;
    max-width: 600px;
    margin: 20px auto;
}

.mockup img:first-child {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
}

.screen-content {
    position: absolute;
    top: 12%;
    left: 10%;
    width: 80%;
    height: 70%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0,0,0,0.8);
}

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

/* Bloco de código */
.code-box {
    background-color: #1e1e1e;
    color: lime;
    padding: 12px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: monospace;
    margin: 10px 0;
}

/* Botão de ação */
.btn-accent {
    background: var(--accent);
    padding: 12px 20px;
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.btn-accent:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: var(--background);
}

.login-box {
    background: var(--card);
    padding: 30px;
    border-radius: 15px;
    width: 400px;
    box-shadow: var(--shadow);
}

.login-box h2 {
    margin-bottom: 20px;
    text-align: center;
}

.login-box input {
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.login-box button {
    width: 100%;
    padding: 10px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.login-box button:hover {
    opacity: 0.8;
}
/* Login page */
body.login-page {
    background: linear-gradient(135deg, #2c0050, #000000);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 0 20px rgba(0,0,0,0.7);
    text-align: center;
}

.login-card h1 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--text-color);
}

.logo-login img {
    width: 80px;
    margin-bottom: 10px;
}

.login-card input {
    width: 100%;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--input-bg);
    color: var(--text-color);
}

.login-card button {
    width: 100%;
    padding: 10px;
    border: none;
    background-color: var(--accent);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.login-card button:hover {
    filter: brightness(1.1);
}

.credit {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--muted);
}

.gradient-text {
    background: linear-gradient(90deg, #d600ff, #00ffe0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.version {
    color: var(--accent);
}
/* 🔥 Fundo com palavras flutuantes */
.bg-words {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -1;
}

.bg-words span {
    position: absolute;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.03);
    white-space: nowrap;
    user-select: none;
    animation: float 30s linear infinite;
}

.bg-words span:nth-child(1) { top: 10%; left: -50%; animation-delay: 0s; }
.bg-words span:nth-child(2) { top: 20%; left: -60%; animation-delay: 3s; }
.bg-words span:nth-child(3) { top: 35%; left: -40%; animation-delay: 6s; }
.bg-words span:nth-child(4) { top: 50%; left: -70%; animation-delay: 9s; }
.bg-words span:nth-child(5) { top: 65%; left: -30%; animation-delay: 12s; }
.bg-words span:nth-child(6) { top: 75%; left: -80%; animation-delay: 15s; }
.bg-words span:nth-child(7) { top: 5%;  left: -20%; animation-delay: 18s; }
.bg-words span:nth-child(8) { top: 85%; left: -90%; animation-delay: 21s; }
.bg-words span:nth-child(9) { top: 40%; left: -10%; animation-delay: 24s; }

@keyframes float {
    0% { transform: translateX(0); }
    100% { transform: translateX(200vw); }
}

/* 🔥 Login */
body.login-page {
    background: linear-gradient(135deg, #2c0050, #000000);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-card {
    background-color: var(--card-bg);
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 0 30px rgba(0,0,0,0.7);
    text-align: center;
}

.login-card h1 {
    margin-bottom: 10px;
    font-size: 2rem;
    color: var(--text-color);
}

.login-card .subtitle {
    margin-bottom: 25px;
    color: var(--muted);
    font-size: 0.95rem;
}

.logo-login img {
    width: 80px;
    margin-bottom: 10px;
}

.login-card input {
    width: 100%;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--input-bg);
    color: var(--text-color);
}

.login-card button {
    width: 100%;
    padding: 10px;
    border: none;
    background-color: var(--accent);
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.login-card button:hover {
    filter: brightness(1.1);
}

.credit {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--muted);
}

.gradient-text {
    background: linear-gradient(90deg, #d600ff, #00ffe0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.version {
    color: var(--accent);
}
/* Background Login */
body.login-body {
    background: linear-gradient(135deg, #1e1e1e, #121212);
    background-size: 300% 300%;
    animation: gradientBG 8s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Gradient Animation */
@keyframes gradientBG {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

/* Login Container */
.login-container {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

/* Login Card */
.login-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.4);
    width: 400px;
    max-width: 90%;
    text-align: center;
}

.login-card h1 {
    margin-bottom: 10px;
    color: #fff;
}

.login-card label {
    display: block;
    margin-top: 15px;
    color: #ccc;
    text-align: left;
}

.login-card input {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 10px;
    border: none;
    background: #222;
    color: white;
}

.login-card button {
    margin-top: 20px;
    padding: 12px 30px;
    border: none;
    background-color: #a855f7;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 0 15px #a855f7;
    transition: 0.3s;
}

.login-card button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px #a855f7;
}

/* Typing Effect */
.typing-text {
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid #a855f7;
    width: 100%;
    font-size: 0.9rem;
    color: #aaa;
    animation: typing 4s steps(40) infinite, blink 0.7s infinite;
}

@keyframes typing {
    0% { width: 0; }
    50% { width: 100%; }
    100% { width: 0; }
}

@keyframes blink {
    0%, 100% { border-color: transparent; }
    50% { border-color: #a855f7; }
}

/* Info Section */
.login-info {
    color: white;
    max-width: 400px;
}

.login-info h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.login-info p {
    opacity: 0.8;
    margin-bottom: 10px;
}

/* Responsivo */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        gap: 20px;
    }
}
/* Fundo animado com partículas espaciais */
body.login-body {
    background: radial-gradient(ellipse at bottom, #0d0d0d 0%, #000000 100%);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Estrelas */
.stars, .stars2, .stars3 {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-repeat: repeat;
    z-index: 0;
}

.stars {
    background-image: url('https://i.imgur.com/0j9e44J.png');
    animation: moveStars 100s linear infinite;
}

.stars2 {
    background-image: url('https://i.imgur.com/0j9e44J.png');
    animation: moveStars 200s linear infinite;
    opacity: 0.5;
}

.stars3 {
    background-image: url('https://i.imgur.com/0j9e44J.png');
    animation: moveStars 300s linear infinite;
    opacity: 0.3;
}

@keyframes moveStars {
    0% {background-position: 0 0;}
    100% {background-position: -10000px 5000px;}
}

/* Container Login */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    z-index: 2;
}

/* Card Login */
.login-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.7);
    transition: transform 0.4s;
}

.login-card:hover {
    transform: scale(1.02);
}

.login-card h1 {
    color: white;
    margin-bottom: 5px;
}

.login-card label {
    color: #bbb;
    display: block;
    margin-top: 15px;
    text-align: left;
}

.login-card input {
    width: 100%;
    padding: 10px;
    background: #222;
    border: none;
    border-radius: 10px;
    color: white;
    margin-top: 5px;
    transition: 0.3s;
}

.login-card input:focus {
    outline: none;
    box-shadow: 0 0 10px #a855f7;
}

.login-card button {
    margin-top: 20px;
    padding: 12px 30px;
    border: none;
    background: linear-gradient(90deg, #a855f7, #6e3acc);
    color: white;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 0 20px #a855f7;
    transition: 0.3s;
}

.login-card button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 35px #a855f7;
}

/* Texto digitando */
.typing-text {
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid #a855f7;
    width: 100%;
    color: #aaa;
    font-size: 0.9rem;
    animation: typing 5s steps(40) infinite, blink 0.7s infinite;
}

@keyframes typing {
    0% { width: 0; }
    50% { width: 100%; }
    100% { width: 0; }
}

@keyframes blink {
    0%, 100% { border-color: transparent; }
    50% { border-color: #a855f7; }
}

/* Info lateral */
.login-info {
    max-width: 400px;
    color: white;
}

.login-info h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.login-info p {
    opacity: 0.8;
    margin-bottom: 10px;
}

/* Responsivo */
@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
        gap: 20px;
    }
}
.register-link {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #ccc;
    text-align: center;
}

.register-link a {
    color: #a855f7;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.register-link a:hover {
    color: #d8b4fe;
    text-decoration: underline;
}
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 18px 0;
    cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
    accent-color: #a855f7;  /* Deixa a cor roxa igual o tema */
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

.checkbox-container label {
    cursor: pointer;
    color: #ccc;
    user-select: none;
    line-height: 1.2;
}
/* Efeito de hover no texto do checkbox */
.checkbox-container:hover label {
    color: #fff;
}
/* Adicione no final de static/css/style.css */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    display: flex;
}

/* Seção de Tecnologias - CSS Específico e Robusto */
.partners-section {
    margin-top: 40px !important;
    text-align: center !important;
    width: 100% !important;
}

.partners-title {
    font-size: 1.1rem !important;
    color: var(--text-secondary) !important;
    margin-bottom: 20px !important;
    font-weight: 500 !important;
}

.tech-logos {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}

.tech-row {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 30px !important;
    flex-wrap: wrap !important;
    flex-direction: row !important;
}

.tech-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 60px !important;
    height: 60px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
    padding: 10px !important;
    transition: transform 0.3s ease, background 0.3s ease !important;
    flex-shrink: 0 !important;
}

.tech-logo:hover {
    transform: translateY(-2px) !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.tech-logo img {
    width: 40px !important;
    height: 40px !important;
    object-fit: contain !important;
    filter: brightness(0.9) !important;
    transition: filter 0.3s ease !important;
    display: block !important;
}

.tech-logo:hover img {
    filter: brightness(1.1) !important;
}

/* Responsivo para tecnologias */
@media (max-width: 768px) {
    .tech-row {
        gap: 20px !important;
    }
    
    .tech-logo {
        width: 50px !important;
        height: 50px !important;
        padding: 8px !important;
    }
}

/* Badges e elementos de usuário */
.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 14px;
}

.badge-pro {
    background: linear-gradient(135deg, #b84dff, #8f00ff);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
/* Adicione no final de static/css/style.css */

/* Estilo para o link de upgrade para o PRO na sidebar */
.sidebar nav a.pro-link {
    background-color: rgba(184, 77, 255, 0.1); /* Um fundo sutil para destacar */
    border-left: 4px solid #b84dff; /* Borda de destaque */
}

.sidebar nav a.pro-link span {
    color: #b84dff; /* Cor do texto em destaque */
    font-weight: 700; /* Texto em negrito */
}

.sidebar nav a.pro-link i {
    color: #b84dff; /* Cor do ícone em destaque */
}

.sidebar nav a.pro-link:hover {
    background-color: rgba(184, 77, 255, 0.2);
}
/* --- Botão de Upgrade no Medidor de Uso --- */
.usage-meter {
    text-align: center; /* Garante que o botão fique centralizado */
}

/* Remove o estilo antigo para evitar conflitos */
.usage-meter .upgrade-link {
    display: none;
}

.usage-meter .btn-upgrade {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(135deg, #b84dff, #8f00ff);
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.usage-meter .btn-upgrade:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 25px rgba(184, 77, 255, 0.6);
}

.usage-meter .btn-upgrade i {
    width: 20px;
    height: 20px;
}

/* Estilos para o container dos botões de upgrade */
.upgrade-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
    align-items: center;
}

/* Estilos para o botão de teste gratuito */
.btn-teste-gratuito {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    background: linear-gradient(135deg, #50fa7b, #2ecc71);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    height: 40px;
    min-width: 180px;
    justify-content: center;
}

.btn-teste-gratuito:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(80, 250, 123, 0.4);
}

.btn-teste-gratuito:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-teste-gratuito i {
    width: 16px;
    height: 16px;
}

/* Estilos para o botão de teste gratuito na página de config */
.btn-teste-gratuito-config {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    background: linear-gradient(135deg, #50fa7b, #2ecc71);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: 15px;
    height: 40px;
    min-width: 180px;
    justify-content: center;
}

.btn-teste-gratuito-config:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(80, 250, 123, 0.4);
}

.btn-teste-gratuito-config:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-teste-gratuito-config i {
    width: 16px;
    height: 16px;
}
/* Adicione este CSS dentro da tag <style> em autopost.html */

.modal-content .btn-upgrade-modal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #b84dff, #8f00ff);
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}
.modal-content .btn-upgrade-modal:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(184, 77, 255, 0.7);
}
.modal-content .btn-upgrade-modal i {
    width: 18px;
    height: 18px;
}

/* Garante que os botões do formulário no modal fiquem bem estilizados */
.modal-content .btn-secondary {
    padding: 12px 24px;
}
.modal-content .btn-primary {
     padding: 12px 24px;
}
/* --- SISTEMA DE NOTIFICAÇÕES TOAST MELHORADO --- */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 18px 20px;
    min-width: 320px;
    max-width: 420px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent), var(--accent-hover));
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.hide {
    transform: translateX(100%);
    opacity: 0;
}

.toast.success::before {
    background: linear-gradient(180deg, #10b981, #059669);
}

.toast.error::before {
    background: linear-gradient(180deg, #ef4444, #dc2626);
}

.toast.warning::before {
    background: linear-gradient(180deg, #f59e0b, #d97706);
}

.toast.info::before {
    background: linear-gradient(180deg, #3b82f6, #2563eb);
}

.toast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.toast-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.toast-message {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0;
}

.toast-message a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.toast-message a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    transition: width linear;
}

.toast.success .toast-progress {
    background: linear-gradient(90deg, #10b981, #059669);
}

.toast.error .toast-progress {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.toast.warning .toast-progress {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.toast.info .toast-progress {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

/* Animações melhoradas */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

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

.toast.animate-in {
    animation: slideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.toast.animate-out {
    animation: slideOut 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* Responsividade para notificações */
@media (max-width: 768px) {
    #toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
        padding: 16px 18px;
    }
}

/* Estilos para botões com loading */
.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

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

/* Melhorias nos botões */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

button:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Badges PRO e FREE */
.badge-pro {
    background: linear-gradient(135deg, #b84dff, #8f00ff);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 10px;
    box-shadow: 0 2px 8px rgba(184, 77, 255, 0.3);
    animation: pulse-pro 2s infinite;
}

.badge-free {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 10px;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.badge-admin {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 10px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    animation: pulse-admin 2s infinite;
}

@keyframes pulse-pro {
    0% { box-shadow: 0 2px 8px rgba(184, 77, 255, 0.3); }
    50% { box-shadow: 0 2px 12px rgba(184, 77, 255, 0.5); }
    100% { box-shadow: 0 2px 8px rgba(184, 77, 255, 0.3); }
}

@keyframes pulse-admin {
    0% { box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4); }
    50% { box-shadow: 0 2px 12px rgba(255, 215, 0, 0.6); }
    100% { box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4); }
}

/* Responsividade para badges */
@media (max-width: 768px) {
    .badge-pro, .badge-free, .badge-admin {
        font-size: 0.7rem;
        padding: 3px 8px;
        margin-left: 8px;
    }
}

/* Estilos para configurações de conteúdo */
.config-group {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.config-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
}

.config-group select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    transition: all 0.3s ease;
}

.config-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(143, 0, 255, 0.1);
    background: rgba(255, 255, 255, 0.12);
}

.config-group select option {
    background: var(--bg-secondary);
    color: var(--text);
    padding: 8px;
}

.config-description {
    margin-top: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(143, 0, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(143, 0, 255, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Responsividade para configurações */
@media (max-width: 768px) {
    .config-group {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .config-group select {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .btn-primary {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* ===== ESTILOS DOS MODAIS ===== */

/* Overlay do modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

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

/* Container do modal */
.modal-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header do modal */
.modal-header {
    padding: 30px 30px 20px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #b84dff, #8f00ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(184, 77, 255, 0.4);
}

.modal-icon i {
    width: 30px;
    height: 30px;
    color: white;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ccc;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.1);
}

.modal-close i {
    width: 20px;
    height: 20px;
}

/* Body do modal */
.modal-body {
    padding: 30px;
}

.modal-description {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: center;
}

/* Features do modal de teste */
.modal-features {
    margin-bottom: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: #e0e0e0;
}

.feature-item i {
    width: 20px;
    height: 20px;
    color: #50fa7b;
    flex-shrink: 0;
}

/* Note do modal */
.modal-note {
    background: rgba(80, 250, 123, 0.1);
    border: 1px solid rgba(80, 250, 123, 0.3);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #50fa7b;
    font-size: 0.9rem;
}

.modal-note i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Limites do modal de FREE */
.modal-limits {
    margin-bottom: 25px;
}

.limit-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.limit-item:last-child {
    border-bottom: none;
}

.limit-item.disabled {
    opacity: 0.6;
}

.limit-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e0e0e0;
}

.limit-header i {
    width: 18px;
    height: 18px;
    color: #b84dff;
}

.limit-value {
    color: #ff6b6b;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Features PRO */
.modal-pro-features {
    background: rgba(184, 77, 255, 0.1);
    border: 1px solid rgba(184, 77, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
}

.modal-pro-features h3 {
    color: #b84dff;
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.pro-feature-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pro-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e0e0e0;
    font-size: 0.9rem;
}

.pro-feature i {
    width: 16px;
    height: 16px;
    color: #50fa7b;
}

/* Footer do modal */
.modal-footer {
    padding: 20px 30px 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Botões do modal */
.btn-modal {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: center;
}

.btn-modal i {
    width: 18px;
    height: 18px;
}

.btn-modal.btn-primary {
    background: linear-gradient(135deg, #b84dff, #8f00ff);
    color: white;
    box-shadow: 0 8px 25px rgba(184, 77, 255, 0.3);
}

.btn-modal.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(184, 77, 255, 0.5);
}

.btn-modal.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-modal.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

/* Responsividade dos modais */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header {
        padding: 20px 20px 15px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 15px 20px 20px;
        flex-direction: column;
    }
    
    .btn-modal {
        width: 100%;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
}