/* 
 * ZONA ZERO RP - Sistema de Transcripts
 * Arquivo principal de estilos
 */

/* Estilos Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background-color: #0f172a;
    color: #e2e8f0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Estilos da Página de Login */
body.login-page {
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    margin: 0;
    padding: 0;
}

/* Contêiner do vídeo de fundo */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

/* Vídeo de fundo - novo seletor */
#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -100;
    filter: brightness(0.4);
    object-fit: cover;
}

/* Estilo para quando não há vídeo */
.no-video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: -100;
}

/* Ajuste de compatibilidade para o seletor antigo */
#video-background {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -100;
    filter: brightness(0.4);
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: -99;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

.login-box {
    width: 420px;
    max-width: 100%;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 40px rgba(8, 7, 16, 0.6);
    padding: 40px 35px;
    text-align: center;
    position: relative;
    margin: 0 auto;
}

.login-box h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #fff;
}

.login-box img.logo {
    width: 100px;
    margin-bottom: 20px;
}

.login-box p {
    color: #e2e8f0;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.login-box form {
    margin-top: 20px;
}

.login-box input {
    display: block;
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-box input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.2);
}

.login-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.login-box button {
    width: 100%;
    padding: 12px 0;
    background-color: #0ea5e9;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box button i {
    margin-right: 8px;
}

.login-box button:hover {
    background-color: #0284c7;
}

.error-message {
    background-color: rgba(220, 38, 38, 0.8);
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
}

.footer {
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #2d3748;
    color: #a0aec0;
    font-size: 0.9rem;
    width: 100%;
    clear: both;
    position: relative;
    bottom: 0;
}

/* Estilo específico para o rodapé na página de login */
body.login-page .footer {
    position: absolute;
    bottom: 20px;
    border-top: none;
    color: rgba(255, 255, 255, 0.5);
}

/* Estilos da Página de Transcript */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #334155;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 24px;
    color: #f8fafc;
}

.header .logo {
    height: 50px;
}

.ticket-info {
    background-color: #1e293b;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ticket-info h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #f8fafc;
    display: flex;
    align-items: center;
}

.ticket-info h2 i {
    margin-right: 10px;
    color: #0ea5e9;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    background-color: #0f172a;
    padding: 15px;
    border-radius: 6px;
    border-left: 3px solid #0ea5e9;
}

.info-item h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #94a3b8;
}

.info-item p {
    font-size: 15px;
    color: #e2e8f0;
}

.messages-container {
    background-color: #1e293b;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.messages-container h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #f8fafc;
    display: flex;
    align-items: center;
}

.messages-container h2 i {
    margin-right: 10px;
    color: #0ea5e9;
}

.message {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #2d3748;
    margin-bottom: 0;
    transition: background-color 0.2s;
}

.message:hover {
    background-color: rgba(45, 55, 72, 0.3);
}

.message:last-child {
    border-bottom: none;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-content {
    flex: 1;
    padding-left: 15px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.message-author {
    font-weight: 600;
    color: #e2e8f0;
    font-size: 1rem;
}

.message-time {
    font-size: 0.8rem;
    color: #718096;
}

/* Estilos para tipos de mensagens de texto */
.message-text {
    line-height: 1.5;
}

/* Estilos para os diferentes tipos de mensagens */
.bot-message .message-text:not(:empty),
.staff-message .message-text,
.user-message .message-text,
.added-user-message .message-text,
.other-message .message-text {
    background-color: rgba(45, 55, 72, 0.3);
    padding: 10px;
    border-radius: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
    display: block;
}

/* Cores específicas por tipo de usuário */
.bot-message .message-text:not(:empty) {
    border-left: 3px solid #5865f2;
    background-color: rgba(88, 101, 242, 0.05);
    color: #a3b0d9;
}

.staff-message .message-text {
    border-left: 3px solid #ff8c00;
    background-color: rgba(255, 140, 0, 0.05);
    color: #ffd280;
}

.user-message .message-text {
    border-left: 3px solid #00b894;
    background-color: rgba(0, 184, 148, 0.05);
    color: #a8f0e0;
}

.added-user-message .message-text {
    border-left: 3px solid #9b59b6;
    background-color: rgba(155, 89, 182, 0.05);
    color: #d6b6e6;
}

.other-message .message-text {
    border-left: 3px solid #718096;
    background-color: rgba(128, 128, 128, 0.05);
    color: #cbd5e0;
}

.message-attachments {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.attachment {
    background-color: #0f172a;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}

.attachment i {
    margin-right: 5px;
    color: #0ea5e9;
}

.attachment a {
    color: #e2e8f0;
    text-decoration: none;
}

.attachment a:hover {
    text-decoration: underline;
}

.system-message {
    background-color: rgba(14, 165, 233, 0.1);
    border-left: 3px solid #0ea5e9;
    padding: 10px 15px;
    border-radius: 4px;
}

.system-message .message-author {
    color: #0ea5e9;
}

.bot-tag {
    background-color: #5865f2;
    color: white;
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 3px;
    margin-left: 5px;
    font-weight: 500;
}

/* Classes para mensagens especiais do bot */
.bot-embed-message,
.bot-component-message,
.bot-notification {
    background-color: rgba(45, 55, 72, 0.3);
    padding: 10px;
    border-radius: 5px;
    font-style: italic;
    display: block;
    font-size: 0.95rem;
}

.bot-embed-message {
    border-left: 3px solid #43b581;
    background-color: rgba(67, 181, 129, 0.05);
    color: #a9e2c9;
}

.embed-title {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
    color: #ffffff;
}

.embed-description {
    color: #e2e8f0;
    font-style: normal;
    white-space: pre-wrap;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.embed-field {
    margin-bottom: 8px;
    padding-left: 10px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.embed-field-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #ffffff;
    margin-bottom: 2px;
}

.embed-field-value {
    font-size: 0.85rem;
    color: #e2e8f0;
    white-space: pre-wrap;
}

.component-content {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-style: normal;
}

.bot-component-message {
    border-left: 3px solid #f5a742;
    background-color: rgba(245, 167, 66, 0.05);
    color: #fdd9a7;
}

.bot-notification {
    border-left: 3px solid #5865f2;
    background-color: rgba(88, 101, 242, 0.05);
    color: #a3b0d9;
}

.expiry-notice {
    background-color: rgba(234, 179, 8, 0.1);
    border-left: 3px solid #eab308;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.expiry-notice i {
    color: #eab308;
    margin-right: 10px;
    font-size: 18px;
}

.back-button {
    display: inline-block;
    background-color: #0ea5e9;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.back-button:hover {
    background-color: #0284c7;
}

/* Página de Instalação */
.installation-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #1e293b;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #94a3b8;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #334155;
    background-color: #0f172a;
    color: #e2e8f0;
    font-size: 16px;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #0ea5e9;
}

.info {
    background-color: rgba(14, 165, 233, 0.1);
    border-left: 3px solid #0ea5e9;
    padding: 10px 15px;
    margin-bottom: 20px;
    color: #7dd3fc;
}

.success {
    background-color: rgba(34, 197, 94, 0.1);
    border-left: 3px solid #22c55e;
    padding: 10px 15px;
    margin-bottom: 20px;
    color: #86efac;
}

.steps ol {
    padding-left: 20px;
}

.steps li {
    margin-bottom: 10px;
}

/* Estilos específicos por tipo de usuário */
.bot-message {
    background-color: rgba(88, 101, 242, 0.05);
}

.bot-message .message-content {
    border-left: none;
}

.bot-message .message-text {
    color: #a3b0d9;
}

.staff-message {
    background-color: rgba(255, 140, 0, 0.05);
}

.staff-message .message-content {
    border-left: none;
}

.staff-message .message-text {
    color: #ffd280;
}

.user-message {
    background-color: rgba(0, 184, 148, 0.05);
}

.user-message .message-content {
    border-left: none;
}

.user-message .message-text {
    color: #a8f0e0;
}

.added-user-message {
    background-color: rgba(155, 89, 182, 0.05);
}

.added-user-message .message-content {
    border-left: none;
}

.added-user-message .message-text {
    color: #d6b6e6;
}

/* Estilo para mensagens de outros usuários */
.other-message {
    background-color: rgba(128, 128, 128, 0.05);
}

.other-message .message-content {
    border-left: none;
}

.other-message .message-text {
    color: #cbd5e0;
}

/* Corrigir padding para mensagens com borda */
.message-content {
    padding-left: 15px;
}

/* Responsivo */
@media (max-width: 768px) {
    .login-box {
        width: 90%;
        padding: 30px 20px;
    }
    
    .login-box h1 {
        font-size: 28px;
    }
    
    .login-box input {
        padding: 10px 12px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .header {
        flex-direction: column;
        text-align: center;
    }
    
    .header .logo {
        margin-bottom: 15px;
    }
}

.added-users-list {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    margin: 2px;
    display: inline-block;
    color: #e2e8f0;
}

.no-added-users {
    color: #ff5252;
    font-style: italic;
    display: inline-block;
    padding: 2px 6px;
    background-color: rgba(255, 82, 82, 0.1);
    border-radius: 4px;
    font-size: 0.9em;
}

/* Ajuste para garantir espaçamento consistente */
.message-content > * {
    margin-bottom: 8px;
}

.message-content > *:last-child {
    margin-bottom: 0;
}

/* Ajustes para messages-text e elementos especiais do bot */
.message-text,
.bot-embed-message,
.bot-component-message,
.bot-notification {
    margin: 5px 0;
}

/* Estilos para exibição sequencial de usuários */
.sequential-users-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    margin-top: 5px;
}

.sequential-user {
    display: flex;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.9em;
    border-left: 3px solid #3498db;
}

.sequential-user .user-id {
    font-weight: bold;
    color: #3498db;
    margin-bottom: 2px;
}

/* Versão responsiva para telas menores */
@media (max-width: 768px) {
    .sequential-users-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .sequential-users-container {
        grid-template-columns: repeat(2, 1fr);
    }
} 