:root {
    --bg-main: #0B0E14;
    --bg-panel: rgba(20, 24, 34, 0.6);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --accent-blue: #3B82F6;
    --accent-purple: #8B5CF6;
    --accent-gradient: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 100%);
    --hover-bg: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: radial-gradient(circle at top right, rgba(139, 92, 246, 0.15), transparent 40%),
                      radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.15), transparent 40%);
}

.app-container {
    display: grid;
    grid-template-columns: 300px 1fr 350px;
    gap: 20px;
    width: 95vw;
    max-width: 1600px;
    height: 90vh;
    background: rgba(11, 14, 20, 0.4);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    padding: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Scrollbar Customization */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 10px; }

/* Panéis Comuns */
.sidebar-left, .main-editor, .sidebar-right {
    background: var(--bg-panel);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Logos & Headers */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}
.logo-icon {
    background: var(--accent-gradient);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
}

.section-title h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-weight: 600;
}

/* Radar List */
.trending-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.trending-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.trending-item:hover {
    background: var(--hover-bg);
}
.trending-item.active {
    background: rgba(139, 92, 246, 0.1);
    border-left: 3px solid var(--accent-purple);
}
.trending-item .rank {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    width: 20px;
}
.topic-info h4 { font-size: 15px; margin-bottom: 4px; }
.topic-info p { font-size: 12px; color: var(--text-secondary); }

/* Main Editor */
.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.editor-header h2 { font-size: 20px; }

.editor-canvas {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
}
.input-title {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    outline: none;
    width: 100%;
}
.toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}
.toolbar button {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
}
.toolbar button:hover { background: var(--hover-bg); color: white; }
.input-body {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.6;
    flex: 1;
    resize: none;
    outline: none;
}

/* Right Sidebar */
.publish-card {
    background: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
}
.checkbox-group { margin: 15px 0; }
.checkbox-group label { font-size: 14px; margin-left: 8px; cursor: pointer; }

.ig-card {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.ig-image {
    width: 100%;
    aspect-ratio: 1/1;
    background: linear-gradient(45deg, #1f1f1f, #2a2a2a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}
.ig-caption {
    padding: 15px;
    font-size: 13px;
    line-height: 1.5;
}
.ig-tags { color: #3B82F6; margin-top: 10px; }

/* Buttons */
.btn-publish {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.btn-publish:hover { opacity: 0.9; }

.btn-ai {
    background: rgba(139, 92, 246, 0.1);
    color: #A78BFA;
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}
.btn-ai:hover { background: rgba(139, 92, 246, 0.2); }

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
}
.btn-secondary:hover { background: var(--hover-bg); }
