/* Estilos para campos de endereço */
.endereco-container {
    border: 1px solid #e0e0e0;
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    background-color: #fafafa;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 0;
}

.form-row .form-group {
    flex: 1;
}

.cep-group {
    margin-bottom: 15px;
}

.cep-input-group {
    display: flex;
    gap: 10px;
}

.cep-input-group input {
    flex: 1;
}

.btn-buscar-cep {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 0 15px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-buscar-cep:hover {
    background-color: #0097A7;
}

.cep-loading {
    display: none;
    margin-top: 5px;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.endereco-field {
    flex: 3;
}

.numero-field {
    flex: 1;
}

.estado-field {
    flex: 1;
}

.zona-field {
    flex: 2;
}

select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background-color: white;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 15px) center;
    padding-right: 35px;
}

select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 172, 193, 0.2);
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
}

/* Filtros na área admin */
.filter-card {
    background-color: #f5f5f5;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.filter-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.filter-title i {
    margin-right: 8px;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    font-size: 0.9rem;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-filter {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 8px 15px;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-clear-filter {
    background-color: #757575;
}

/* Adaptações para responsividade */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .estado-field,
    .zona-field {
        flex: 1;
    }
    
    .filter-form {
        flex-direction: column;
    }
}/* Estilos gerais */
:root {
    --primary-color: #00ACC1; /* Cor turquesa do logo */
    --secondary-color: #FFD600; /* Cor amarela do logo */
    --accent-color: #E53935; /* Cor vermelha dos corações */
    --bg-color: #F5F5F5;
    --card-bg: #FFFFFF;
    --text-color: #333333;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 2px solid var(--primary-color);
    position: relative;
}

.logo {
    max-width: 200px;
    margin: 0 auto 15px;
}

.logo img {
    width: 100%;
    height: auto;
}

h1 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 2rem;
}

.slogan {
    color: var(--accent-color);
    font-style: italic;
    font-size: 1.1rem;
}

/* Link para área administrativa */
.admin-link {
    margin-top: 15px;
}

.btn-admin {
    display: inline-flex;
    align-items: center;
    background-color: #2C3E50;
    color: white;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-admin:hover {
    background-color: #34495E;
}

.btn-admin i {
    margin-right: 8px;
}

/* Cards e formulários */
.card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px;
    margin-bottom: 30px;
}

h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input[type="text"],
input[type="date"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 172, 193, 0.2);
}

input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-primary,
.btn-secondary,
.btn-danger,
.btn-tertiary {
    padding: 12px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

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

.btn-secondary {
    background-color: #757575;
    color: white;
}

.btn-tertiary {
    background-color: #3498DB;
    color: white;
}

.btn-danger {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: #0097A7;
}

.btn-secondary:hover {
    background-color: #616161;
}

.btn-tertiary:hover {
    background-color: #2980B9;
}

.btn-danger:hover {
    background-color: #D32F2F;
}

.btn-primary i,
.btn-secondary i,
.btn-tertiary i,
.btn-danger i {
    margin-right: 8px;
}

/* Alertas e mensagens */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
}

.error {
    background-color: #FFEBEE;
    color: #C62828;
    border-left: 4px solid #C62828;
}

.success {
    background-color: #E8F5E9;
    color: #2E7D32;
    border-left: 4px solid #2E7D32;
}

/* Tabela de listagem */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: var(--primary-color);
}

tr:hover {
    background-color: #f9f9f9;
}

.actions {
    display: flex;
    gap: 10px;
}

.btn-view, .btn-edit, .btn-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.btn-view {
    background-color: #2196F3;
    color: white;
}

.btn-edit {
    background-color: var(--secondary-color);
    color: #333;
}

.btn-delete {
    background-color: var(--accent-color);
    color: white;
}

.btn-view:hover {
    background-color: #1976D2;
}

.btn-edit:hover {
    background-color: #FFC107;
}

.btn-delete:hover {
    background-color: #D32F2F;
}

.no-data {
    text-align: center;
    font-style: italic;
    color: #757575;
    padding: 30px 0;
}

/* Detalhes do usuário */
.user-details {
    display: grid;
    gap: 15px;
}

.detail-item {
    display: flex;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.detail-label {
    font-weight: 600;
    min-width: 180px;
    color: var(--primary-color);
}

.detail-value {
    flex: 1;
}

.detail-label i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

/* Utilitários */
.mt-20 {
    margin-top: 20px;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid #ddd;
    color: #757575;
}

/* Página de login */
.login-card {
    max-width: 500px;
    margin: 50px auto;
}

.login-footer {
    margin-top: 20px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.link-back {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    margin-top: 15px;
    font-size: 0.9rem;
}

.link-back i {
    margin-right: 5px;
}

/* Mensagens informativas */
.success-message {
    background-color: #E8F5E9;
    color: #2E7D32;
    padding: 20px;
    border-radius: var(--border-radius);
    border-left: 4px solid #2E7D32;
}

.success-message h3 {
    margin-bottom: 10px;
    color: #2E7D32;
    font-size: 1.2rem;
}

.success-message i {
    margin-right: 10px;
    font-size: 1.5rem;
}

.success-message ul {
    margin-left: 30px;
    margin-top: 10px;
}

.success-message li {
    margin-bottom: 5px;
}

.info-message {
    background-color: #E3F2FD;
    color: #1565C0;
    padding: 15px;
    border-radius: var(--border-radius);
    margin-top: 20px;
}

.info-message i {
    margin-right: 8px;
}

/* Badges */
.badge-info {
    display: inline-block;
    background-color: #2196F3;
    color: white;
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 12px;
}

/* Visualizar detalhes */
.visualizar-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.visualizar-item {
    margin-bottom: 15px;
}

.visualizar-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.visualizar-value {
    padding: 8px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.full-width {
    grid-column: span 2;
}

/* Responsividade */
@media (max-width: 768px) {
    h1 {
        font-size: 1.7rem;
    }
    
    .detail-item {
        flex-direction: column;
    }
    
    .detail-label {
        margin-bottom: 5px;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .btn-primary, 
    .btn-secondary, 
    .btn-danger,
    .btn-tertiary {
        width: 100%;
        margin-bottom: 10px;
    }
    
    th, td {
        padding: 8px 10px;
    }
    
    .actions {
        flex-wrap: wrap;
    }
    
    .visualizar-grid {
        grid-template-columns: 1fr;
    }
    
    .full-width {
        grid-column: 1;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .card {
        padding: 15px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
};
    font-size: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input[type="text"],
input[type="date"],
input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="email"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 172, 193, 0.2);
}

input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-primary,
.btn-secondary,
.btn-danger {
    padding: 12px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

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

.btn-secondary {
    background-color: #757575;
    color: white;
}

.btn-danger {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: #0097A7;
}

.btn-secondary:hover {
    background-color: #616161;
}

.btn-danger:hover {
    background-color: #D32F2F;
}

.btn-primary i,
.btn-secondary i,
.btn-danger i {
    margin-right: 8px;
}

/* Alertas e mensagens */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
}

.error {
    background-color: #FFEBEE;
    color: #C62828;
    border-left: 4px solid #C62828;
}

.success {
    background-color: #E8F5E9;
    color: #2E7D32;
    border-left: 4px solid #2E7D32;
}

/* Tabela de listagem */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: var(--primary-color);
}

tr:hover {
    background-color: #f9f9f9;
}

.actions {
    display: flex;
    gap: 10px;
}

.btn-view, .btn-edit, .btn-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.btn-view {
    background-color: #2196F3;
    color: white;
}

.btn-edit {
    background-color: var(--secondary-color);
    color: #333;
}

.btn-delete {
    background-color: var(--accent-color);
    color: white;
}

.btn-view:hover {
    background-color: #1976D2;
}

.btn-edit:hover {
    background-color: #FFC107;
}

.btn-delete:hover {
    background-color: #D32F2F;
}

.no-data {
    text-align: center;
    font-style: italic;
    color: #757575;
    padding: 30px 0;
}

/* Detalhes do usuário */
.user-details {
    display: grid;
    gap: 15px;
}

.detail-item {
    display: flex;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.detail-label {
    font-weight: 600;
    min-width: 180px;
    color: var(--primary-color);
}

.detail-value {
    flex: 1;
}

.detail-label i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

/* Utilitários */
.mt-20 {
    margin-top: 20px;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid #ddd;
    color: #757575;
}

/* Responsividade */
@media (max-width: 768px) {
    h1 {
        font-size: 1.7rem;
    }
    
    .detail-item {
        flex-direction: column;
    }
    
    .detail-label {
        margin-bottom: 5px;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .btn-primary, 
    .btn-secondary, 
    .btn-danger {
        width: 100%;
        margin-bottom: 10px;
    }
    
    th, td {
        padding: 8px 10px;
    }
    
    .actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .card {
        padding: 15px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
}
