/* Estilos customizados para a plataforma Arbitrivm */

:root {
    --primary-color: #1E3A5F;
    --secondary-color: #6B8E7F;
    --accent-color: #C9A961;
    --success-color: #10b981;
    --danger-color: #e74c3c;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --light-color: #FAFAF8;
    --dark-color: #1E3A5F;
    --text-body: #4A4A4A;
}

/* Ajustes gerais */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

/* Navbar customizada */
.navbar-dark {
    background-color: #1E3A5F !important;
}

/* Cards de dashboard */
.dashboard-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.dashboard-card.primary {
    background: linear-gradient(135deg, #1E3A5F 0%, #2A4A70 100%);
}

.dashboard-card.secondary {
    background: linear-gradient(135deg, #6B8E7F 0%, #7FA293 100%);
}

.dashboard-card.accent {
    background: linear-gradient(135deg, #C9A961 0%, #D4B576 100%);
}

/* Texto branco em dashboard-cards com fundo colorido */
.dashboard-card.primary,
.dashboard-card.primary *,
.dashboard-card.secondary,
.dashboard-card.secondary *,
.dashboard-card.accent,
.dashboard-card.accent * {
    color: #FFFFFF !important;
}

/* Garantir que números e textos fiquem brancos */
.dashboard-card.primary h1,
.dashboard-card.primary h2,
.dashboard-card.primary h3,
.dashboard-card.primary h4,
.dashboard-card.primary h5,
.dashboard-card.primary h6,
.dashboard-card.primary .h1,
.dashboard-card.primary .h2,
.dashboard-card.primary .h3,
.dashboard-card.primary .h4,
.dashboard-card.primary .h5,
.dashboard-card.primary .h6,
.dashboard-card.secondary h1,
.dashboard-card.secondary h2,
.dashboard-card.secondary h3,
.dashboard-card.secondary h4,
.dashboard-card.secondary h5,
.dashboard-card.secondary h6,
.dashboard-card.accent h1,
.dashboard-card.accent h2,
.dashboard-card.accent h3,
.dashboard-card.accent h4,
.dashboard-card.accent h5,
.dashboard-card.accent h6 {
    color: #FFFFFF !important;
}

/* Formulários */
.form-control:focus,
.form-select:focus {
    border-color: #1E3A5F;
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 95, 0.25);
}

.input-group-text {
    background: #FAFAF8;
    border-color: #e5e5e5;
    color: #4A4A4A;
}

/* Tabelas */
.table-hover tbody tr:hover {
    background-color: rgba(30, 58, 95, 0.05);
}

/* Área de Upload de Arquivos */
.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background-color: #f8f9fa;
}

.upload-area:hover {
    border-color: #6B8E7F;
    background-color: rgba(107, 142, 127, 0.05);
}

.upload-area.dragover {
    border-color: #6B8E7F;
    background-color: rgba(107, 142, 127, 0.1);
    transform: scale(1.02);
}

.upload-area i {
    color: #6c757d;
    margin-bottom: 10px;
}

.upload-area p {
    margin-bottom: 5px;
    color: #495057;
    font-weight: 500;
}

/* Status badges */
.badge-status-rascunho,
.badge.status-pending {
    background: linear-gradient(135deg, #C9A961 0%, #D4B576 100%);
    color: #1E3A5F;
}
.badge-status-aberta,
.badge.status-active {
    background: linear-gradient(135deg, #1E3A5F 0%, #2A4A70 100%);
    color: white;
}
.badge-status-em_analise,
.badge.status-in-progress {
    background: linear-gradient(135deg, #1E3A5F 0%, #2A4A70 100%);
    color: white;
}
.badge-status-em_andamento {
    background: linear-gradient(135deg, #1E3A5F 0%, #2A4A70 100%);
    color: white;
}
.badge-status-aguardando_sentenca {
    background: linear-gradient(135deg, #C9A961 0%, #D4B576 100%);
    color: #1E3A5F;
}
.badge-status-sentenciada,
.badge.status-resolved,
.badge.status-completed {
    background: linear-gradient(135deg, #6B8E7F 0%, #7FA293 100%);
    color: white;
}
.badge-status-arquivada {
    background-color: #7f8c8d;
    color: white;
}
.badge-status-cancelada,
.badge.status-cancelled,
.badge.status-rejected {
    background-color: #e74c3c;
    color: white;
}

/* Login page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1E3A5F 0%, #2A4A70 100%);
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

.login-header h2 {
    color: #1E3A5F;
    font-family: 'Playfair Display', serif;
}

.login-form .btn-primary {
    background: linear-gradient(135deg, #C9A961 0%, #D4B576 100%);
    border: none;
    color: #1E3A5F;
    font-weight: 600;
}

/* Upload area */
.upload-area {
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: #6B8E7F;
    background-color: rgba(107, 142, 127, 0.05);
}

.upload-area.dragover {
    border-color: #6B8E7F;
    background-color: rgba(107, 142, 127, 0.1);
}

/* Timeline do processo */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #1E3A5F;
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    padding-bottom: 30px;
}

.timeline-marker {
    position: absolute;
    left: 42px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #1E3A5F;
    border: 3px solid #FAFAF8;
}

.timeline-marker.completed {
    background: #6B8E7F;
    border-color: #FAFAF8;
}

.timeline-item.active .timeline-marker {
    background: #C9A961;
    box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.2);
}

.timeline-content {
    background: white;
    border: 1px solid #e5e5e5;
}

.timeline-header {
    color: #1E3A5F;
    font-family: 'Playfair Display', serif;
}

/* Mensagens do chat */
.chat-container {
    max-height: 500px;
    overflow-y: auto;
}

.message {
    margin-bottom: 20px;
    display: flex;
}

.message.sent {
    justify-content: flex-end;
}

.message-content {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 10px;
    background-color: #f1f1f1;
}

.message.sent .message-content {
    background-color: #1E3A5F;
    color: white;
}

/* Avaliação com estrelas */
.star-rating {
    font-size: 24px;
    color: #ddd;
}

.star-rating .bi-star-fill {
    color: #ffc107;
}

/* Responsividade */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-marker {
        left: 22px;
    }
    
    .message-content {
        max-width: 85%;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Loader */
.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1E3A5F;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Impressão */
@media print {
    .navbar, footer, .no-print {
        display: none !important;
    }
    
    .container-fluid {
        padding: 0 !important;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}