/*
 * frontend-style.css
 * Estilos generales para el frontend del plugin WPZafir
 */

.wpzafir-dashboard {
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    padding: 20px;
    border-radius: 5px;
    max-width: 960px;
    margin: 20px auto;
}

.wpzafir-dashboard h2,
.wpzafir-dashboard h3 {
    color: #333;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.wpzafir-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.wpzafir-stat-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.wpzafir-stat-box h3 {
    margin-top: 0;
    font-size: 1em;
    color: #555;
    border-bottom: none;
    padding-bottom: 0;
}

.wpzafir-stat-box .wpzafir-amount {
    font-size: 1.8em;
    font-weight: bold;
    color: #0073aa;
    margin: 10px 0 0;
}

.wpzafir-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.wpzafir-table th,
.wpzafir-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.wpzafir-table th {
    background-color: #f2f2f2;
    color: #333;
}

.wpzafir-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.wpzafir-table tr:hover {
    background-color: #f1f1f1;
}

/* Colores para montos en tablas */
.wpzafir-table .positive-amount {
    color: green;
    font-weight: bold;
}

.wpzafir-table .negative-amount {
    color: red;
    font-weight: bold;
}

/* Formularios */
.wpzafir-form p {
    margin-bottom: 15px;
}

.wpzafir-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.wpzafir-form input[type="text"],
.wpzafir-form input[type="number"],
.wpzafir-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* Asegura que el padding no aumente el ancho total */
}

.wpzafir-form textarea {
    resize: vertical; /* Permite redimensionar verticalmente */
}

.wpzafir-form input[type="submit"] {
    background-color: #0073aa;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

.wpzafir-form input[type="submit"]:hover {
    background-color: #005177;
}

/* Mensajes de notificación frontend */
.wpzafir-notice {
    padding: 12px 20px;
    border-left: 4px solid;
    margin: 10px 0;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.wpzafir-notice-success {
    border-color: #46b450;
    background-color: #e0ffe0;
}

.wpzafir-notice-error {
    border-color: #dc3232;
    background-color: #ffe0e0;
}

.wpzafir-notice p {
    margin: 0;
}