body {
    font-family: 'Roboto', Arial, sans-serif;
    background: linear-gradient(120deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.crm-header {
    width: 100%;
    background: #072a50;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 2rem;
    box-shadow: 0 2px 8px rgba(7,42,80,0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.crm-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
    display: block;
}

.crm-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    margin-right: 0;
}

#logout-button {
    background: transparent;
    border: 1.5px solid #fff;
    color: #fff;
    padding: 0.45rem 1.1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    margin-left: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 38px;
    box-sizing: border-box;
}

#logout-button:hover {
    background: #fff;
    color: #072a50;
    border: 1.5px solid #072a50;
}

/* Menu Lateral */
.sidebar {
    position: fixed;
    left: 0;
    top: 60px;
    bottom: 0;
    width: 230px;
    background: #f8fafc;
    box-shadow: 2px 0 8px rgba(0,0,0,0.07);
    z-index: 900;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    padding-top: 1.5rem;
    overflow-y: auto;
    height: calc(100vh - 60px);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    flex: 1 1 auto;
}

.sidebar-menu li {
    margin: 0;
    padding: 0;
    width: 100%;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.5rem;
    color: #072a50;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    gap: 0.9rem;
    font-size: 1.08rem;
    width: 100%;
    border-radius: 6px;
    font-weight: 500;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    background: #e6f0fa;
    color: #007bff;
}

.sidebar-menu i {
    width: 22px;
    text-align: center;
    font-size: 1.15rem;
}

.logout-menu-item {
    margin-top: auto;
    padding: 1.2rem 1.5rem 1.5rem 1.5rem;
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.sidebar-logout {
    width: 100%;
    background: #fff;
    border: 1.5px solid #072a50;
    color: #072a50;
    padding: 0.7rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.08rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s, border 0.2s;
}

.sidebar-logout:hover {
    background: #072a50;
    color: #fff;
    border: 1.5px solid #007bff;
}

/* Conteúdo Principal */
main {
    margin-left: 230px;
    margin-top: 60px;
    padding: 2rem;
    min-height: calc(100vh - 60px);
    box-sizing: border-box;
}

.container.card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(7,42,80,0.10);
    padding: 2.5rem 2rem 2rem 2rem;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    transition: box-shadow 0.2s;
}

.container.card:hover {
    box-shadow: 0 8px 32px rgba(7,42,80,0.16);
}

h1 {
    text-align: center;
    color: #072a50;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.form-group {
    margin-bottom: 1.3rem;
    text-align: left;
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    color: #072a50;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid #e0e6ed;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1rem;
    background: #f8fafc;
    transition: border 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border: 1.5px solid #007bff;
    box-shadow: 0 0 0 2px #007bff22;
    background: #fff;
}

.btn-primary, button[type="submit"] {
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    padding: 0.9rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,123,255,0.08);
    transition: background 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover, button[type="submit"]:hover {
    background: linear-gradient(90deg, #0056b3 0%, #007bff 100%);
    box-shadow: 0 4px 16px rgba(0,123,255,0.16);
}

.form-feedback {
    min-height: 24px;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    text-align: center;
    color: #e74c3c;
    font-weight: 500;
}

/* Botão de Menu Mobile */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-right: 1rem;
}

.menu-toggle:hover {
    color: #007bff;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .sidebar {
        transform: translateX(-100%);
        padding-top: 1rem;
        width: 200px;
        height: calc(100vh - 60px);
        overflow-y: auto;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    main {
        margin-left: 0;
    }
    
    .container.card {
        padding: 1.2rem;
        max-width: 98vw;
        margin: 1.5rem auto;
        box-sizing: border-box;
    }
    
    h1 {
        font-size: 1.3rem;
    }
    
    .crm-header {
        padding: 0.5rem 1rem;
    }
    
    .crm-title {
        font-size: 1.1rem;
    }
    
    .sidebar-menu a {
        padding: 0.85rem 1rem;
        font-size: 1rem;
    }
    
    form {
        width: 100%;
        min-width: 0;
        max-width: 100vw;
        margin: 0 auto;
    }
}

.autocomplete-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.autocomplete-results {
    position: absolute;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 2px;
    z-index: 1000;
    display: none;
}

.autocomplete-results.active {
    display: block;
}

.autocomplete-item {
    padding: 8px 12px;
    cursor: pointer;
}

.autocomplete-item:hover {
    background-color: #f5f5f5;
}
