* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h1, h2, h3 {
    margin-bottom: 20px;
    color: #333;
}

.btn {
    display: inline-block;
    padding: 8px 15px;
    background: #4285f4;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    margin-right: 5px;
}

.btn:hover {
    background: #3367d6;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-success {
    background-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
}

.spacing-left {
    margin-left: 10px;
}

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

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
input[type="datetime-local"],
select,
textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

.alert {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 3px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

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

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

th {
    background-color: #f2f2f2;
}

.perfil-foto {
    max-width: 100px;
    max-height: 100px;
    border-radius: 50%;
}

.lista-thumb {
    width: 50px;
    height: 50px;
}

.nav {
    background-color: #333;
    overflow: hidden;
    margin-bottom: 20px;
}

.nav a {
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

.nav a:hover {
    background-color: #ddd;
    color: black;
}

.nav a.active {
    background-color: #4285f4;
    color: white;
}

.logout {
    float: right;
}

/* Adições para excluir.php */
.confirmation-container {
    text-align: center; 
    margin-top: 50px;
}

.confirmation-message {
    margin: 20px 0; 
    font-size: 18px;
}

.confirmation-buttons {
    margin-top: 30px;
}

/* Adições para meu_perfil.php */
.profile-options {
    display: flex; 
    justify-content: space-around; 
    margin: 50px 0;
}

.option-card {
    text-align: center;
}

.option-btn {
    display: block; 
    margin-bottom: 20px; 
    padding: 15px 30px; 
    font-size: 16px;
}

/* Adições para cadastrar.php */
.section-container {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.preview-hidden {
    display: none;
}

.help-text {
    font-size: 12px;
    color: #666;
}

/* Adições para visualizar.php */
.user-details {
    display: flex; 
    margin-bottom: 20px;
}

.user-avatar {
    margin-right: 30px; 
    text-align: center;
}

.user-photo {
    max-width: 200px; 
    max-height: 200px; 
    border-radius: 5px;
}

.no-photo {
    width: 200px; 
    height: 200px; 
    background-color: #f0f0f0; 
    border-radius: 5px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
}

.user-info-container {
    flex: 1;
}

.data-table {
    width: 100%; 
    margin-top: 20px;
}

.data-table th {
    width: 30%;
}

.no-data {
    color: #999;
}

.produtos-section {
    margin-top: 30px;
}

.produto-card {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
}

.produto-card h4 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.produto-status-info {
    margin-top: -5px; 
    margin-bottom: 12px;
}

.comissao-info {
    margin-left: 15px;
}

.produto-detalhes p {
    margin: 5px 0;
}

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

.status-ativo {
    color: #28a745;
    font-weight: bold;
}

.status-expirado, .status-cancelado, .status-bloqueado {
    color: #dc3545;
    font-weight: bold;
}

.status-pendente {
    color: #ffc107;
    font-weight: bold;
}

.assinatura-tag {
    color: #0066cc;
}

.action-buttons {
    margin-top: 20px;
}

/* Adições para editar.php */
.produto-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.form-comissao {
    background-color: #e8f4ff;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.current-photo {
    margin: 10px 0;
}

.edit-profile-photo {
    max-width: 200px; 
    max-height: 200px;
}

/* Adições para listar.php */
.search-bar {
    margin-bottom: 20px; 
    display: flex; 
    justify-content: space-between;
}

.search-form {
    display: flex; 
    width: 50%;
}

.search-input {
    margin-right: 10px;
}

.text-center {
    text-align: center;
}

.pagination {
    text-align: center; 
    margin-top: 20px;
}

.pagination-active {
    background-color: #3367d6;
}

.pagination-ellipsis {
    margin: 0 5px;
}

/* Estilos para o seletor de status */
.status-selector select {
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: #f8f8f8;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Estilos para os estados dos selects */
.status-selector select.processing {
    opacity: 0.7;
    background-color: #f5f5f5;
}

.status-selector select.success {
    border-color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
}

.status-selector select.error {
    border-color: #F44336;
    background-color: rgba(244, 67, 54, 0.1);
}

/* Cores para os diferentes status */
.status-selector select option[value="ativo"] {
    color: #4CAF50;
}

.status-selector select option[value="bloqueado"] {
    color: #F44336;
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
    .produtos-grid {
        grid-template-columns: 1fr;
    }
    
    .user-details {
        flex-direction: column;
    }
    
    .user-avatar {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .search-form {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .profile-options {
        flex-direction: column;
    }
    
    .option-card {
        margin-bottom: 20px;
    }
}