@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500&family=Poppins:wght@400;600;700&family=Montserrat:wght@400;700&display=swap');

:root {
--dark-bg: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
--darker-bg: #0a0a0a;
--card-bg: rgba(30, 30, 30, 0.95);
--card-border: rgba(255, 255, 255, 0.1);
--primary: #00d4ff;
--primary-hover: #00b8e6;
--success: #00ff88;
--danger: #ff4757;
--warning: #ffa502;
--info: #3742fa;
--text: #ffffff;
--text-muted: #a0a0a0;
--accent: #ff6b6b;
--gradient-primary: linear-gradient(90deg, #00d4ff, #3742fa, #ff6b6b, #00ff88);
--gradient-success: linear-gradient(45deg, #00ff88, #00d4ff);
--gradient-danger: linear-gradient(45deg, #ff4757, #ff6b6b);
--shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
--shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
background: var(--dark-bg);
color: var(--text);
font-family: 'Poppins', 'Inter', 'Montserrat', Arial, sans-serif;
min-height: 100vh;
overflow-x: hidden;
position: relative;
}

body::before {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: 
radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
radial-gradient(circle at 80% 20%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
radial-gradient(circle at 40% 40%, rgba(55, 66, 250, 0.1) 0%, transparent 50%);
pointer-events: none;
z-index: -1;
}

body, .card, .modal-content, .form-control, .form-select, .navbar, .footer, .accordion-button, .accordion-body, .accordion-header, .table, .table th, .table td {
color: #fff !important;
}

.text-muted, .form-label, .text-secondary, .accordion-button:not(.collapsed) {
color: #e0e0e0 !important;
}

.table-dark th, .table-dark td {
color: #fff !important;
}

input, textarea, select {
color: #fff !important;
background: rgba(255,255,255,0.05) !important;
}

::placeholder {
color: #b0b0b0 !important;
opacity: 1;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .section-title {
font-family: 'Montserrat', 'Poppins', 'Inter', Arial, sans-serif;
font-weight: 700;
letter-spacing: 0.5px;
background: var(--gradient-primary);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.monospace {
font-family: 'JetBrains Mono', monospace;
font-size: 0.9rem;
font-weight: 400;
}

.navbar {
background: rgba(10, 10, 10, 0.95);
backdrop-filter: blur(20px);
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
font-size: 1.7rem;
background: var(--gradient-primary);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.card {
background: var(--card-bg);
border: 1px solid var(--card-border);
border-radius: 16px;
box-shadow: var(--shadow-card);
backdrop-filter: blur(20px);
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
height: 100%;
position: relative;
overflow: hidden;
}

.card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 2px;
background: var(--gradient-primary);
opacity: 0;
transition: opacity 0.3s ease;
}

.card:hover {
transform: translateY(-8px) scale(1.02);
box-shadow: var(--shadow-glow), var(--shadow-card);
border-color: var(--primary);
}

.card:hover::before {
opacity: 1;
}

.card-title, .section-title {
font-size: 1.3rem;
margin-bottom: 1.2rem;
border-bottom: 1px solid rgba(255,255,255,0.08);
padding-bottom: 0.5rem;
background: var(--gradient-primary);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.card-title::after {
content: '';
position: absolute;
bottom: -1px;
left: 0;
width: 40px;
height: 2px;
background: var(--gradient-primary);
}

.stat-number {
font-size: 3rem;
font-weight: 700;
font-family: 'Poppins', 'Montserrat', 'Inter', Arial, sans-serif;
background: var(--gradient-primary);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
text-shadow: 0 0 30px rgba(0, 212, 255, 0.5), 0 0 10px #ff6b6b;
animation: colorShift 4s linear infinite;
}

@keyframes colorShift {
0% { filter: hue-rotate(0deg); }
100% { filter: hue-rotate(360deg); }
}

.btn, .btn-action {
font-family: 'Poppins', 'Montserrat', 'Inter', Arial, sans-serif;
font-weight: 600;
letter-spacing: 0.5px;
transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.btn-primary, .btn-outline-primary {
background: var(--gradient-primary);
color: #fff;
border: none;
box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover, .btn-outline-primary:hover {
background: var(--gradient-primary);
filter: brightness(1.1) saturate(1.2);
color: #fff;
box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.btn-success {
background: var(--gradient-success);
color: white;
box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.btn-danger {
background: var(--gradient-danger);
color: white;
box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.log-entry {
padding: 0.75rem 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
font-size: 0.9rem;
font-family: 'JetBrains Mono', monospace;
transition: all 0.2s ease;
}

.log-entry:hover {
background: rgba(255, 255, 255, 0.02);
padding-left: 10px;
}

.log-container {
background: #10151a;
border: 2.5px solid #00ffe7;
border-radius: 14px;
box-shadow: 0 0 18px #00ffe799, 0 2px 24px #000a;
font-family: 'JetBrains Mono', monospace;
color: #e0ffe0;
padding: 1.2em 1em 1em 1.2em;
max-height: 380px;
min-height: 120px;
overflow-y: auto;
margin-bottom: 0.5em;
transition: box-shadow 0.3s, border-color 0.3s;
position: relative;
}
@media (max-width: 768px) {
.log-container {
max-height: 220px;
padding: 0.7em 0.5em 0.5em 0.7em;
}
}
.log-container:after {
content: '';
position: absolute;
left: 0; right: 0; bottom: 0; height: 2px;
background: linear-gradient(90deg, #00ffe7, #00ff99, #00ffe7);
background-size: 200% 100%;
animation: border-glow 2.5s linear infinite;
border-radius: 0 0 12px 12px;
opacity: 0.7;
}
@keyframes border-glow {
0% { background-position: 0% 50%; }
100% { background-position: 100% 50%; }
}
.log-entry {
color: #baffc9;
font-size: 0.97em;
margin-bottom: 0.18em;
padding: 0.12em 0.3em;
border-radius: 6px;
word-break: break-word;
transition: background 0.2s;
display: flex;
align-items: center;
gap: 0.4em;
}
.log-entry .log-time {
color: #00ffe7;
font-size: 0.85em;
opacity: 0.7;
margin-right: 0.3em;
}
.log-entry.text-info { color: #7fffd4; }
.log-entry.text-danger { color: #ff6b6b; }
.log-entry.text-success { color: #00ff99; }
.log-entry.text-warning { color: #ffe066; }
.log-entry:hover {
background: rgba(0,255,231,0.08);
}
.log-cursor {
display: inline-block;
width: 0.7em;
height: 1em;
background: #00ffe7;
margin-left: 0.1em;
border-radius: 2px;
animation: blink-cursor 1s steps(1) infinite;
vertical-align: middle;
}
@keyframes blink-cursor {
0%, 100% { opacity: 1; }
50% { opacity: 0; }
}

.group-badge {
font-family: 'JetBrains Mono', 'Montserrat', monospace;
background: rgba(0, 212, 255, 0.2);
color: var(--primary);
border: 1px solid var(--primary);
border-radius: 8px;
padding: 0.25rem 0.5rem;
font-size: 0.9rem;
background: var(--gradient-primary);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
animation: colorShift 4s linear infinite;
}

.status-indicator {
display: inline-block;
width: 12px;
height: 12px;
border-radius: 50%;
margin-right: 8px;
position: relative;
}

.status-indicator::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 50%;
animation: pulse 2s infinite;
}

.status-online {
background-color: var(--success);
box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.status-online::after {
background-color: var(--success);
}

.status-offline {
background-color: var(--danger);
box-shadow: 0 0 10px rgba(255, 71, 87, 0.5);
}

.action-icon {
font-size: 1.8rem;
margin-right: 15px;
vertical-align: middle;
background: var(--gradient-primary);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.action-card {
cursor: pointer;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
}

.action-card:hover {
background: rgba(0, 212, 255, 0.1);
border-color: var(--primary);
transform: scale(1.05);
}

.section-title {
border-left: 4px solid var(--primary);
padding-left: 16px;
margin: 30px 0 20px;
font-weight: 600;
font-size: 1.3rem;
position: relative;
}

.section-title::before {
content: '';
position: absolute;
left: -4px;
top: 0;
bottom: 0;
width: 4px;
background: var(--gradient-primary);
}

.modal-content {
background: var(--card-bg);
color: var(--text);
border: 1px solid var(--card-border);
border-radius: 16px;
backdrop-filter: blur(20px);
}

.form-control, .form-select {
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
color: var(--text);
border-radius: 8px;
padding: 0.75rem;
transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
background: rgba(255, 255, 255, 0.08);
color: var(--text);
border-color: var(--primary);
box-shadow: 0 0 0 0.25rem rgba(0, 212, 255, 0.25);
outline: none;
}

.form-label {
color: var(--text-muted);
font-weight: 500;
margin-bottom: 0.5rem;
}

/* Animações */
@keyframes pulse {
0% {
opacity: 1;
transform: scale(1);
}
50% {
opacity: 0.5;
transform: scale(1.2);
}
100% {
opacity: 1;
transform: scale(1);
}
}

@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

.fade-in-up {
animation: fadeInUp 0.6s ease-out;
}

/* Scrollbar styling */
::-webkit-scrollbar {
width: 8px;
}

::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.05);
border-radius: 4px;
}

::-webkit-scrollbar-thumb {
background: var(--gradient-primary);
border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
background: var(--primary-hover);
}

/* Responsividade */
@media (max-width: 768px) {
.stat-number {
font-size: 2.2rem;
}

.btn-action {
min-width: 120px;
font-size: 0.8rem;
padding: 0.6rem 1.2rem;
}

.card {
margin-bottom: 1rem;
}

.section-title {
font-size: 1.1rem;
margin: 20px 0 15px;
}
}

/* Efeitos especiais */
.glow-effect {
position: relative;
}

.glow-effect::before {
content: '';
position: absolute;
top: -2px;
left: -2px;
right: -2px;
bottom: -2px;
background: var(--gradient-primary);
border-radius: inherit;
z-index: -1;
opacity: 0;
transition: opacity 0.3s ease;
}

.glow-effect:hover::before {
opacity: 0.7;
}

.text-gradient {
background: var(--gradient-primary);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.loading-spinner {
width: 20px;
height: 20px;
border: 2px solid rgba(255, 255, 255, 0.3);
border-radius: 50%;
border-top-color: var(--primary);
animation: spin 1s ease-in-out infinite;
}

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

/* Terminal/Console Box */
.console-box {
background: #181c20;
border: 2px solid #00ff99;
border-radius: 14px;
box-shadow: 0 0 16px #00ff99cc, 0 2px 24px #000a;
font-family: 'JetBrains Mono', 'Fira Mono', 'Consolas', monospace;
color: #e0ffe0;
padding: 2rem 1.5rem 1.5rem 1.5rem;
margin-bottom: 2rem;
position: relative;
max-width: none;
margin-left: 0;
margin-right: 0;
}
.console-box .console-title {
position: absolute;
top: -1.2em;
left: 1.2em;
background: #181c20;
color: #00ff99;
font-size: 1.1em;
padding: 0 0.7em;
border-radius: 8px 8px 0 0;
font-weight: 600;
letter-spacing: 0.05em;
box-shadow: 0 0 8px #00ff99cc;
}
.console-box pre, .console-box code {
background: none;
color: #baffc9;
font-size: 1.05em;
margin: 0;
padding: 0;
border: none;
box-shadow: none;
}
.console-box .console-prompt {
color: #00ff99;
font-weight: bold;
margin-right: 0.5em;
}
/* FAQ Accordion dentro do console-box */
.console-box .accordion {
background: transparent !important;
border: none !important;
}
.console-box .accordion-item {
background: transparent !important;
border: none !important;
box-shadow: none !important;
}
.console-box .accordion-button {
font-size: 0.88em;
color: #00ffe7 !important;
font-weight: 400;
text-shadow: 0 1px 2px #00ffe755;
background: #181c20 !important;
border: none !important;
box-shadow: none !important;
font-family: 'JetBrains Mono', monospace;
padding-left: 2.2em;
transition: background 0.2s, color 0.2s;
padding-top: initial;
padding-bottom: initial;
}
.console-box .accordion-button .console-prompt {
font-size: 0.85em;
}
.console-box .accordion-button:not(.collapsed) {
background: #222e26 !important;
color: #00ffe7 !important;
font-weight: 600;
}
.console-box .accordion-body {
background: #181c20 !important;
color: #baffc9 !important;
border-left: 2px solid #00ff99;
border-radius: 0 0 12px 12px;
font-size: 1em;
margin-bottom: 0.5em;
}
.console-box .accordion-button:focus {
box-shadow: 0 0 0 2px #00ff9955 !important;
}
.console-box .accordion-button::after {
filter: invert(80%) sepia(100%) saturate(500%) hue-rotate(90deg);
}
/* Modern Card/Glassmorphism */
.card, .form-control, .btn {
border-radius: 1rem !important;
box-shadow: 0 2px 16px #0004;
}
.card {
background: rgba(30,34,40,0.85) !important;
border: 1.5px solid #222a;
backdrop-filter: blur(2px);
}
.form-control:focus {
border-color: #00ff99;
box-shadow: 0 0 0 2px #00ff9955;
}
.btn {
transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}
.btn:hover, .btn:focus {
box-shadow: 0 0 8px #00ff99cc, 0 2px 12px #000a;
color: #fff !important;
}
.section-title {
font-family: 'Montserrat', 'Poppins', sans-serif;
font-weight: 700;
letter-spacing: 0.03em;
color: #00ff99;
text-shadow: 0 2px 8px #00ff9955;
}
.console-box, .console-box .accordion-body {
color: #baffc9 !important;
}
.console-box .console-title {
color: #00ffe7 !important;
text-shadow: 0 0 4px #00ffe799;
font-size: 1.08em;
font-weight: 600;
padding: 0 0.6em;
border-radius: 8px 8px 0 0;
letter-spacing: 0.03em;
}
.console-box .console-prompt {
color: #00ffcc !important;
}
.console-box code, .console-box pre {
color: #7fffd4 !important;
}
.console-box a, .console-box a:visited {
color: #00ffe7 !important;
text-decoration: underline;
}
.console-box a:hover {
color: #00bfae !important;
text-shadow: 0 0 6px #00ffe799;
}
.console-box strong, .console-box b {
color: #fff !important;
}
.console-box .text-muted, .console-box .text-muted * {
color: #7fffd4 !important;
opacity: 0.85;
}
.faq-section-title {
font-size: 1.05em;
color: #00ffe7;
font-weight: 600;
margin: 1.2em 0 0.5em 0.2em;
letter-spacing: 0.02em;
text-shadow: 0 1px 3px #00ffe755;
border-left: 3px solid #00ffe7;
padding-left: 0.7em;
}
.faq-divider {
border-top: 1.5px dashed #00ffe799;
margin: 1.2em 0 1em 0;
}