/* estilo global para a Área do Representante OPENFLUXO */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root {
    --bg-gradient: radial-gradient(circle at top left, #6c4dfd, #050614 60%);
    --sidebar-bg: rgba(5, 6, 20, 0.95);
    --card-bg: rgba(5, 6, 20, 0.9);
    --accent-start: #7a5cff;
    --accent-end: #33c3ff;
    --text-color: #f5f5ff;
    --text-muted: #b5b8e8;
    --border-color: rgba(255, 255, 255, 0.06);
}

body {
    min-height: 100vh;
    display: flex;
    background: var(--bg-gradient);
    color: var(--text-color);
}

/* Sidebar */
aside {
    width: 260px;
    background: var(--sidebar-bg);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
}

.logo-symbol {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
}

.logo-text {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.08em;
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

nav li a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #d7dbff;
    font-size: 14px;
    opacity: 0.85;
    transition: background 0.2s, opacity 0.2s, transform 0.1s;
}

nav li a:hover {
    background: rgba(122, 92, 255, 0.18);
    opacity: 1;
    transform: translateX(2px);
}

nav li a.active {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    color: #050614;
    font-weight: 600;
}

/* Footer in sidebar */
.sidebar-footer {
    margin-top: auto;
    font-size: 12px;
    color: #8588b3;
    opacity: 0.8;
}

/* Main content */
main {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

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

.page-title {
    font-size: 22px;
    font-weight: 600;
}

small {
    color: var(--text-muted);
}

.user-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(5, 6, 20, 0.8);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
}

.user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    background: rgba(51, 195, 255, 0.12);
    color: #b6e5ff;
    margin-left: 4px;
}

/* Cards grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.card {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 16px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(16px);
}

.card h2 {
    font-size: 16px;
    margin-bottom: 8px;
}

.card p {
    font-size: 13px;
    color: #cfd2ff;
    margin-bottom: 10px;
}

.card ul {
    list-style: none;
    font-size: 13px;
    color: #dfe2ff;
}

.card ul li {
    margin-bottom: 4px;
}

.badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-right: 6px;
    margin-bottom: 6px;
}

.button {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    color: #050614;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.button.secondary {
    background: none;
    border: 1px solid var(--accent-start);
    color: var(--accent-start);
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.table th,
.table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.table th {
    color: #cfd2ff;
    font-weight: 600;
}

/* Forms */
form .form-group {
    margin-bottom: 12px;
}

form label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    color: #cfd2ff;
}

form input,
form textarea,
form select {
    width: 100%;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(5, 6, 20, 0.8);
    color: #ffffff;
    font-size: 13px;
}

form textarea {
    resize: vertical;
}

form button {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    color: #050614;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

#preview img,
#preview video {
    max-width: 100%;
    margin-bottom: 10px;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    aside {
        display: none;
    }
    main {
        padding: 16px;
    }
}