<?php
// Arquivo CSS principal do sistema
?>
/* Estilos gerais */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Estilos do cabeçalho */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Estilos para cards */
.card {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-3px);
}

.card-header {
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* Estilos para botões */
.btn {
    border-radius: 4px;
    font-weight: 500;
}

.btn-primary {
    background-color: #0d6efd;
}

.btn-success {
    background-color: #198754;
}

.btn-danger {
    background-color: #dc3545;
}

/* Estilos para tabelas */
.table {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

/* Estilos para formulários */
.form-control {
    border-radius: 4px;
    border: 1px solid #ced4da;
    padding: 8px 12px;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Estilos para alertas */
.alert {
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

/* Estilos para badges de prioridade */
.badge-priority-low {
    background-color: #0dcaf0;
}

.badge-priority-medium {
    background-color: #ffc107;
}

.badge-priority-high {
    background-color: #fd7e14;
}

.badge-priority-urgent {
    background-color: #dc3545;
}

/* Estilos para badges de status */
.badge-status-open {
    background-color: #0dcaf0;
}

.badge-status-assigned {
    background-color: #6c757d;
}

.badge-status-in_progress {
    background-color: #0d6efd;
}

.badge-status-on_hold {
    background-color: #ffc107;
}

.badge-status-resolved {
    background-color: #198754;
}

.badge-status-closed {
    background-color: #6c757d;
}

/* Estilos para a página de detalhes do chamado */
.ticket-details {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ticket-header {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.ticket-info {
    margin-bottom: 20px;
}

.ticket-description {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.ticket-replies {
    margin-top: 30px;
}

.reply {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.reply-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.reply-content {
    margin-top: 10px;
}

.reply-agent {
    background-color: #e7f1ff;
}

.reply-client {
    background-color: #f8f9fa;
}

/* Estilos para o chat */
.chat-container {
    height: 500px;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background-color: #f8f9fa;
}

.chat-input {
    padding: 15px;
    border-top: 1px solid #dee2e6;
}

.message {
    margin-bottom: 15px;
    max-width: 80%;
}

.message-sent {
    margin-left: auto;
    background-color: #e7f1ff;
    border-radius: 15px 15px 0 15px;
    padding: 10px 15px;
}

.message-received {
    margin-right: auto;
    background-color: #f1f1f1;
    border-radius: 15px 15px 15px 0;
    padding: 10px 15px;
}

.message-info {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 5px;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card {
        margin-bottom: 15px;
    }
    
    .chat-container {
        height: 400px;
    }
}
