/**
 * Verderame Marketplace Frontend Styles
 */

/* Vendor Registration */
.zm-vendor-registration {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.zm-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.zm-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.zm-section:last-child {
    border-bottom: none;
}

.zm-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.zm-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.zm-form-field {
    display: flex;
    flex-direction: column;
}

.zm-form-field label {
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.zm-form-field input,
.zm-form-field select,
.zm-form-field textarea {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.zm-form-field input:focus,
.zm-form-field select:focus,
.zm-form-field textarea:focus {
    outline: none;
    border-color: #007cba;
}

.zm-form-actions {
    margin-top: 30px;
}

.zm-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

.zm-btn-primary:hover {
    background-color: #005a87;
}

.zm-btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.zm-form-messages {
    margin-top: 20px;
}

.zm-message {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 10px;
}

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

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

/* Vendor Dashboard */
.zm-vendor-dashboard {
    padding: 20px;
}

.zm-dashboard-header {
    margin-bottom: 30px;
}

.zm-dashboard-header h1 {
    margin: 0;
    font-size: 28px;
}

.zm-dashboard-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

.zm-dashboard-sidebar {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.zm-dashboard-nav {
    display: flex;
    flex-direction: column;
}

.zm-nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 5px;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s;
}

.zm-nav-item:hover {
    background-color: #f5f5f5;
}

.zm-nav-item.active {
    background-color: #007cba;
    color: #fff;
}

.zm-nav-item .dashicons {
    margin-right: 10px;
}

.zm-dashboard-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Stats Grid */
.zm-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.zm-stat-card {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #007cba;
}

.zm-stat-icon {
    margin-right: 15px;
}

.zm-stat-icon .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: #007cba;
}

.zm-stat-content h3 {
    margin: 0 0 5px 0;
    font-size: 24px;
    font-weight: 700;
}

.zm-stat-content p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Tables */
.zm-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.zm-table th,
.zm-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.zm-table th {
    font-weight: 600;
    background-color: #f9f9f9;
}

.zm-table tr:hover {
    background-color: #f5f5f5;
}

/* Vendor Stores */
.zm-vendor-stores {
    padding: 20px;
}

.zm-stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.zm-store-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.zm-store-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.zm-store-banner {
    height: 150px;
    background-color: #f0f0f0;
    background-size: cover;
    background-position: center;
}

.zm-store-info {
    padding: 20px;
}

.zm-store-logo {
    width: 80px;
    height: 80px;
    margin-top: -40px;
    border: 4px solid #fff;
    border-radius: 50%;
    background-color: #fff;
}

.zm-store-name {
    margin: 10px 0 5px;
    font-size: 18px;
    font-weight: 600;
}

.zm-store-rating {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.zm-store-rating .dashicons {
    color: #ffb900;
}

.zm-store-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Tabs */
.zm-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
}

.zm-tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
}

.zm-tab-btn:hover {
    color: #007cba;
}

.zm-tab-btn.active {
    color: #007cba;
    border-bottom-color: #007cba;
}

.zm-tab-content {
    display: none;
}

.zm-tab-content.active {
    display: block;
}

/* Section Header */
.zm-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.zm-section-header h3 {
    margin: 0;
}

/* Buttons */
.zm-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

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

.zm-btn-primary:hover {
    background-color: #005a87;
}

.zm-btn-small {
    padding: 6px 12px;
    font-size: 13px;
}

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

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

/* Badges */
.zm-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.zm-badge-success {
    background-color: #d4edda;
    color: #155724;
}

.zm-badge-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.zm-badge-warning {
    background-color: #fff3cd;
    color: #856404;
}

.zm-badge-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.zm-badge-primary {
    background-color: #cfe2ff;
    color: #084298;
}

/* Stats Cards */
.zm-stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.zm-stat-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #007cba;
}

.zm-stat-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.zm-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

/* Modal */
.zm-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.zm-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.zm-close {
    position: absolute;
    right: 15px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.zm-close:hover,
.zm-close:focus {
    color: #000;
}

/* Form Groups */
.zm-form-group {
    margin-bottom: 20px;
}

.zm-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.zm-form-group input,
.zm-form-group select,
.zm-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.zm-form-group input:focus,
.zm-form-group select:focus,
.zm-form-group textarea:focus {
    outline: none;
    border-color: #007cba;
}

.zm-form-group-full {
    grid-column: 1 / -1;
}

/* Shipping Management */
.zm-shipping-management h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .zm-dashboard-container {
        grid-template-columns: 1fr;
    }

    .zm-stats-grid {
        grid-template-columns: 1fr;
    }

    .zm-form-row {
        grid-template-columns: 1fr;
    }

    .zm-tabs {
        flex-wrap: wrap;
    }

    .zm-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .zm-modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
}
