/* Estilo CRM Moderno */
:root {
    --primary-color: #4a90e2;
    --sidebar-bg: #2c3e50;
    --sidebar-text: #ecf0f1;
    --sidebar-hover: #34495e;
    --content-bg: #f4f6f9;
    --card-bg: #ffffff;
    --text-color: #333;
    --text-muted: #777;
    --border-color: #dee2e6;
}

body {
    background-color: var(--content-bg);
    color: var(--text-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.sidebar {
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    min-height: 100vh;
    width: 260px;
    transition: width 0.3s;
}

.sidebar .sidebar-header {
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.sidebar a {
    color: var(--sidebar-text);
    text-decoration: none;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: background-color 0.2s, color 0.2s;
}

.sidebar a:hover, .sidebar a.active {
    background-color: var(--sidebar-hover);
    color: white;
    border-left: 4px solid var(--primary-color);
    padding-left: calc(1.5rem - 4px);
}

.content {
    padding: 2rem;
    width: calc(100% - 260px);
}

.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.table {
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

.table thead th {
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
}

.table tbody tr {
    background-color: var(--card-bg);
    border-radius: 0.5rem;
}

.table tbody td {
    vertical-align: middle;
    padding: 1rem;
}

.table-hover tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.modal-content {
    border-radius: 0.5rem;
}

/* Alertas de Vencimento - Estilo Profissional */

/* Timeline/Chat Style */
.message-bubble {
    border-radius: 1.25rem;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.5;
}

.shadow-primary {
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.15);
}

.hover-shadow {
    transition: transform 0.2s, box-shadow 0.2s;
}

.hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}

#timeline-body::-webkit-scrollbar {
    width: 6px;
}

#timeline-body::-webkit-scrollbar-thumb {
    background-color: #dee2e6;
    border-radius: 10px;
}

.bg-opacity-10 {
    --bs-bg-opacity: 0.1;
}

.transition-all {
    transition: all 0.3s ease;
}

.file-upload-wrapper label {
    cursor: pointer;
}
.alert-card {
    transition: all 0.3s ease;
    border-radius: 12px !important;
    overflow: hidden;
}

.alert-item {
    transition: transform 0.2s ease, background-color 0.2s ease;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.alert-item:hover {
    background-color: rgba(0,0,0,0.02) !important;
    transform: translateX(5px);
}

.alert-item.expired {
    border-left: 5px solid #dc3545 !important;
}

.alert-item.warning {
    border-left: 5px solid #ffc107 !important;
}

.alert-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 50px;
}

.alert-date {
    font-size: 0.85rem;
    font-weight: 600;
}

.alert-unit {
    font-size: 0.75rem;
    color: #6c757d;
}

.alert-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.alert-card-header {
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
}

.btn-view-alert {
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.2s;
}

.btn-view-alert:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.btn-xs {
    padding: 2px 8px;
    font-size: 0.7rem;
    line-height: 1.5;
    border-radius: 50px;
}
