:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container-fluid {
    flex: 1;
}

.footer {
    margin-top: auto;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    width: 100%;
    max-width: 400px;
}

.card-stat {
    transition: transform 0.2s;
}

.card-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.table-actions {
    white-space: nowrap;
}

.table-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.badge-status {
    font-size: 0.85rem;
    padding: 0.35em 0.65em;
}

.image-preview {
    max-width: 200px;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.image-item {
    position: relative;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.image-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.image-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.image-item .image-actions {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    gap: 5px;
}

.image-item .badge-destaque {
    position: absolute;
    top: 5px;
    left: 5px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.btn-group-sm > .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

.card-header {
    background-color: #f8f9fa;
    font-weight: 600;
}

.required::after {
    content: " *";
    color: var(--danger-color);
}

.page-title {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #dee2e6;
}

.status-interessado {
    background-color: #0dcaf0;
}

.status-cliente {
    background-color: #198754;
}

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

.status-em_atendimento {
    background-color: #ffc107;
    color: #000;
}

.status-qualificado {
    background-color: #20c997;
}

.status-convertido {
    background-color: #198754;
}

.status-perdido {
    background-color: #dc3545;
}

.status-prospeccao {
    background-color: #0dcaf0;
}

.status-em_negociacao {
    background-color: #ffc107;
    color: #000;
}

.status-captado {
    background-color: #198754;
}

.status-disponivel {
    background-color: #198754;
}

.status-reservado {
    background-color: #ffc107;
    color: #000;
}

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

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

.status-inativo {
    background-color: #dc3545;
}

@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .card-stat {
        margin-bottom: 1rem;
    }
}

.chart-container {
    position: relative;
    height: 300px;
    margin-top: 20px;
}

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

.timeline-item {
    position: relative;
    padding-bottom: 20px;
    border-left: 2px solid #dee2e6;
    padding-left: 20px;
    margin-left: 10px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.timeline-item:last-child {
    border-left: none;
}

.drag-drop-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.drag-drop-area:hover,
.drag-drop-area.dragover {
    border-color: var(--primary-color);
    background-color: #f8f9fa;
}

.sortable-ghost {
    opacity: 0.4;
}

.sortable-drag {
    opacity: 0.8;
}
