:root {
    --sidebar-width: 280px;
    --header-height: 60px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0f172a;
    color: #e2e8f0;
}

.sidebar {
    width: var(--sidebar-width);
    transition: transform 0.3s ease;
    background-color: #1e293b;
    z-index: 50;
}

.main-content {
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s ease;
    background-color: #0f172a;
}

.card {
    background: #1e293b;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-secondary {
    background: #64748b;
    color: white;
}

.btn-secondary:hover {
    background: #475569;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.table-container {
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    width: 100%;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #334155;
}

th {
    background-color: #334155;
    color: #cbd5e1;
}

tr:hover {
    background-color: #334155;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #1e293b;
    border-radius: 0.75rem;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.form-group {
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.375rem;
    background: #334155;
    color: #e2e8f0;
    border: 1px solid #475569;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
}

.search-container {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.search-input {
    padding-left: 2.5rem !important;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-lead {
    background-color: #fde68a;
    color: #92400e;
}

.status-cliente {
    background-color: #d1fae5;
    color: #065f46;
}

.status-inativo {
    background-color: #fecaca;
    color: #991b1b;
}

.sidebar-item {
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-item:hover, .sidebar-item.active {
    background-color: #334155;
}

.sidebar-item i {
    width: 20px;
}

.sidebar-item span {
    flex: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #1e293b;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #94a3b8;
    font-size: 0.875rem;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.5rem;
    border-radius: 0.375rem;
    background: #64748b;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s;
}

.action-btn:hover {
    background: #475569;
}

.action-btn.edit {
    background: #3b82f6;
}

.action-btn.edit:hover {
    background: #2563eb;
}

.action-btn.delete {
    background: #ef4444;
}

.action-btn.delete:hover {
    background: #dc2626;
}

.action-btn.view {
    background: #10b981;
}

.action-btn.view:hover {
    background: #059669;
}

.mobile-menu-btn {
    display: none;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.mobile-overlay.active {
    display: block;
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        z-index: 999;
        transform: translateX(-100%);
        background-color: #1e293b;
        width: 80%;
        max-width: 300px;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .table-container {
        display: block;
    }
    
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .action-buttons {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
    }
    
    .action-btn {
        flex-shrink: 0;
    }
    
    /* Ajustes específicos para mobile */
    .sidebar-item {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    .sidebar-item i {
        font-size: 1.1rem;
    }
    
    .sidebar-item span {
        font-size: 0.95rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .main-content {
        background-color: #0f172a;
    }
    
    /* Correção do header no mobile */
    .header-mobile {
        background-color: #1e293b !important;
        border-bottom: 1px solid #334155;
    }
}
/* Esconder a data no mobile */
.current-date {
    display: none;
}