/* Estilos para o Plugin Cadastro de Associados */

#login-associado {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}

#login-associado h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin: 5px;
}

.btn-primary {
    background-color: #007cba;
    color: white;
}

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

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

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn:hover {
    opacity: 0.8;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: -5px;
}

.col-md-6 {
    flex: 0 0 50%;
    padding: 5px;
}

@media (max-width: 768px) {
    .col-md-6 {
        flex: 0 0 100%;
    }
}

/* Carteirinha Digital */
.carteirinha-digital {
    /* border: 2px solid #333; */
    /* border-radius: 10px; */
    padding: 15px;
    background: #fff;
    max-width: 1010px;
    margin: 20px auto;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
}

.carteirinha-header {
    text-align: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.logo-carteirinha {
    max-height: 60px;
    margin-bottom: 5px;
}

.carteirinha-body {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.foto-area {
    width: 80px;
    height: 100px;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    font-size: 10px;
    text-align: center;
}

.dados-carteirinha {
    flex: 1;
}

.dados-carteirinha p {
    margin: 3px 0;
    font-size: 14px;
}

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

.qr-code img {
    max-width: 80px;
}

/* Tabs */
.tabs-associado ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    border-bottom: 1px solid #ddd;
}

.tabs-associado li {
    margin-right: 5px;
}

.tabs-associado li a {
    display: block;
    padding: 10px 15px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-bottom: none;
    text-decoration: none;
    color: #333;
}

.tabs-associado li a:hover,
.tabs-associado li a.active {
    background: #fff;
    color: #007cba;
}

.tabs-associado > div {
    padding: 20px;
    border: 1px solid #ddd;
    border-top: none;
    display: none;
}

.tabs-associado > div:first-of-type {
    display: block;
}

/* Avisos */
.aviso {
    border: 1px solid #e0e0e0;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    background: #f8f9fa;
}

.aviso h5 {
    margin-top: 0;
    color: #333;
}

/* Tabs para esqueci senha */
#tabs-esqueci ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
}

#tabs-esqueci li {
    margin-right: 10px;
}

#tabs-esqueci li a {
    display: block;
    padding: 8px 15px;
    background: #e9ecef;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

#tabs-esqueci li a:hover,
#tabs-esqueci li a.active {
    background: #007cba;
    color: white;
}

#tabs-esqueci > div {
    display: none;
}

#tabs-esqueci > div:first-of-type {
    display: block;
}

/* Responsividade */
@media (max-width: 480px) {
    #login-associado {
        margin: 10px;
        padding: 15px;
    }
    
    .carteirinha-body {
        flex-direction: column;
        text-align: center;
    }
    
    .foto-area {
        margin: 0 auto;
    }
}

/* Mensagens */
.wf-message {
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
}

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

.wf-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.wf-loading {
    text-align: center;
    padding: 20px;
}

.wf-loading:after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estilos para busca e visualização no admin */
.tablenav .alignleft.actions form {
    display: inline-block;
}

.tablenav .alignleft.actions input[type="text"] {
    margin-right: 5px;
}

.wf-view-associado {
    display: flex;
    gap: 30px;
    margin: 20px 0;
}

.wf-view-dados {
    flex: 1;
}

.wf-view-carteirinha {
    flex: 0 0 400px;
}

.wf-view-carteirinha .carteirinha-digital {
    transform: scale(0.8);
    transform-origin: top left;
}

.wf-associado-foto {
    max-width: 300px;
    max-height: 400px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 10px;
}

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

.wf-status-inativo {
    color: #dc3545;
    font-weight: bold;
}

@media (max-width: 768px) {
    .wf-view-associado {
        flex-direction: column;
    }
    
    .wf-view-carteirinha {
        flex: none;
    }
    
    .tablenav .alignleft.actions form {
        display: block;
        margin-bottom: 10px;
    }
}
