/**
 * Estilos globais para o sistema de agendamento de transporte
 */

/* Estilos gerais */

.container {
    margin-top: 20px;
}

/* Cards */
.card {
    border-radius: 10px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 20px;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    background-color: #0d6efd;
    color: white;
}

/* Botões */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Login e cadastro */
.login-container, .cadastro-container {
    margin: 0 auto;
    padding-top: 30px;
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h1 {
    color: #0d6efd;
    font-weight: bold;
}

/* Alerta de horário de agendamento */
.horario-alerta {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.horario-alerta h5 {
    color: #856404;
    margin-bottom: 15px;
}

.horario-alerta p {
    color: #856404;
    margin-bottom: 10px;
}

.horario-alerta .alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.horario-alerta .alert-info h6 {
    color: #0c5460;
}

/* Estilos para comunicados do sistema */
.comunicado-sistema {
    border-left: 4px solid;
    position: relative;
}

.comunicado-sistema.alert-info {
    border-left-color: #0dcaf0;
    background-color: #cff4fc;
    border-color: #b6effb;
    color: #055160;
}

.comunicado-sistema.alert-warning {
    border-left-color: #ffc107;
    background-color: #fff3cd;
    border-color: #ffecb5;
    color: #664d03;
}

.comunicado-sistema.alert-danger {
    border-left-color: #dc3545;
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #721c24;
}

.comunicado-sistema.alert-success {
    border-left-color: #198754;
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}

.comunicado-sistema .alert-heading {
    font-size: 1rem;
    font-weight: 600;
}

.comunicado-sistema .comunicado-conteudo {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.comunicado-sistema .btn-close {
    opacity: 0.7;
    transition: opacity 0.2s;
}

.comunicado-sistema .btn-close:hover {
    opacity: 1;
}

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

.form-label {
    font-weight: 500;
}

/* Badges e status */
.badge-assento {
    background-color: #0d6efd;
    color: white;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 20px;
}

/* Tabelas */
.table th {
    background-color: #f8f9fa;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Alertas */
.alert {
    border-radius: 10px;
}

/* Paginação */
.pagination .page-link {
    color: #0d6efd;
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
}

/* Perfil e dashboard */
.profile-header {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 20px;
}

.profile-info {
    display: flex;
    align-items: center;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #0d6efd;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-right: 20px;
}

/* QR Code */
.qrcode-container {
    text-align: center;
    margin: 20px 0;
}

.qrcode-container img {
    max-width: 200px;
    border: 1px solid #ddd;
    padding: 10px;
    background-color: white;
}

/* Estatísticas */
.stats-card {
    text-align: center;
    padding: 15px;
}

.stats-card .icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #0d6efd;
}

.stats-card .number {
    font-size: 1.5rem;
    font-weight: bold;
}

.stats-card .label {
    color: #6c757d;
}

/* Progress bar */
.progress {
    height: 25px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #6c757d;
}
