* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', sans-serif;
    background-color: #F5F5F5;
    color: #333;
    line-height: 1.6;
}
.container {
    display: flex;
    height: 100vh;
}
.sidebar {
    width: 250px;
    background: #2196F3;
    color: white;
    transition: transform 0.3s ease;
    position: fixed;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
}
.sidebar.hidden {
    transform: translateX(-100%);
}
.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-menu {
    list-style: none;
}
.sidebar-menu li {
    padding: 15px 20px;
    cursor: pointer;
    transition: background 0.3s;
}
.sidebar-menu li:hover, .sidebar-menu li.active {
    background: rgba(255,255,255,0.1);
}
.main-content {
    flex: 1;
    margin-left: 250px;
    transition: margin-left 0.3s ease;
    overflow-y: auto;
}
.main-content.expanded {
    margin-left: 0;
}
.header {
    background: white;
    padding: 15px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.search-box {
    flex: 1;
    max-width: 300px;
    margin: 0 20px;
}
.search-box input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.add-btn {
    background: #2196F3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}
.add-btn:hover {
    background: #1976D2;
}
.content {
    padding: 20px;
}
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}
th {
    background: #f8f9fa;
    font-weight: 500;
}
.btn {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 5px;
    transition: background 0.3s;
}
.btn-edit { background: #2196F3; color: white; }
.btn-delete { background: #f44336; color: white; }
.btn-view { background: #4CAF50; color: white; }
.btn:hover { opacity: 0.8; }
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}
.modal.show {
    display: block;
}
.modal-content {
    background: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close:hover {
    color: black;
}
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.pagination button {
    padding: 10px;
    margin: 0 5px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
}
.pagination button.active {
    background: #2196F3;
    color: white;
}
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background: #2196F3;
    margin: 3px 0;
    transition: 0.3s;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .hamburger {
        display: flex;
    }
    .header {
        padding: 10px;
    }
    .search-box {
        margin: 0 10px;
        max-width: 200px;
    }
}
.alert {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.balance {
    font-weight: bold;
    color: #2196F3;
}
.status-active { color: #4CAF50; }
.status-inactive { color: #f44336; }
.status-concluida { color: #9E9E9E; }
.whatsapp-link {
    color: #25D366;
    text-decoration: none;
    font-weight: bold;
}
.whatsapp-link:hover {
    text-decoration: underline;
}
.crm-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 10px;
    display: inline-block;
}
.crm-btn:hover {
    background: #45a049;
}
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #F5F5F5;
}
.login-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}
.login-box h2 {
    margin-bottom: 20px;
    text-align: center;
}
#logout-btn {
    border-top: 1px solid rgba(255,255,255,0.1);
}