/* Estilos gerais para o plugin SuperMarketplace */

/* Formulários */
.smp-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

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

.smp-form input[type="text"],
.smp-form input[type="email"],
.smp-form input[type="password"],
.smp-form input[type="number"],
.smp-form input[type="file"],
.smp-form textarea,
.smp-form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.smp-form button {
    background-color: #0073aa;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.smp-form button:hover {
    background-color: #005177;
}

/* Mensagens de erro e sucesso */
.smp-error {
    background-color: #f8d7da;
    color: #842029;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #f5c2c7;
    border-radius: 4px;
}

.smp-success {
    background-color: #d1e7dd;
    color: #0f5132;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #badbcc;
    border-radius: 4px;
}

/* Lista de vendedores */
.smp-vendor-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 20px 0;
}

.smp-vendor-item {
    width: 48%;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 4px;
    background: #fafafa;
}

.smp-vendor-item img {
    max-width: 100%;
    height: auto;
    border-radius: 50%;
}

.smp-vendor-item h4 {
    margin-top: 10px;
    font-size: 18px;
}

/* Página do vendedor */
.smp-vendor-page .smp-vendor-banner img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.smp-vendor-page .smp-vendor-profile-image img {
    max-width: 150px;
    border-radius: 50%;
    margin: -75px auto 20px;
    display: block;
    border: 5px solid #fff;
}

.smp-vendor-page h2 {
    text-align: center;
    margin-bottom: 10px;
}

.smp-vendor-page p {
    text-align: center;
    font-size: 16px;
    color: #555;
}

/* Produtos do vendedor */
.vendor-products {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
}

.smp-product-item {
    width: 30%;
    margin: 1.66%;
    box-sizing: border-box;
    text-align: center;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 4px;
    background: #fff;
}

.smp-product-item img {
    max-width: 100%;
    height: auto;
}

.smp-product-item h4 {
    margin: 10px 0;
    font-size: 16px;
}

.smp-product-item p {
    color: #0073aa;
    font-weight: bold;
}

/* Relatórios de vendas */
.smp-sales-report {
    max-width: 800px;
    margin: 0 auto;
}

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

.smp-sales-table th,
.smp-sales-table td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: left;
}

.smp-sales-table th {
    background-color: #f1f1f1;
}

/* Saldo e saque */
.smp-balance {
    font-size: 1.2em;
    margin-bottom: 20px;
    font-weight: bold;
}

.smp-withdrawal-history table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.smp-withdrawal-history th,
.smp-withdrawal-history td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: left;
}

.smp-withdrawal-history th {
    background-color: #f1f1f1;
}

/* Notificações */
.smp-notification-icon {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.smp-notification-bell {
    font-size: 24px;
    color: #0073aa;
}

.smp-notification-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
}

.smp-notification-dropdown {
    position: absolute;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    width: 300px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    display: none;
}

.smp-notification-header {
    padding: 10px;
    border-bottom: 1px solid #ccc;
    background: #f9f9f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.smp-notification-header h4 {
    margin: 0;
    font-size: 16px;
}

.smp-notification-header button {
    background: none;
    border: none;
    color: #0073aa;
    cursor: pointer;
}

.smp-notification-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.smp-notification-list li {
    padding: 10px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.smp-notification-list li:last-child {
    border-bottom: none;
}

.smp-notification-list li:hover {
    background-color: #f9f9f9;
}

/* Responsividade */
@media (max-width: 768px) {
    .smp-vendor-list,
    .vendor-products {
        flex-direction: column;
        align-items: center;
    }

    .smp-vendor-item,
    .smp-product-item {
        width: 100%;
        margin: 0 0 20px 0;
    }
}
