/* Frontend Styles */
.wpdsh-login-container,
.wpdsh-register-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 20px;
}

.wpdsh-login-box,
.wpdsh-register-box {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wpdsh-login-box h2,
.wpdsh-register-box h2 {
    margin: 0 0 10px;
    text-align: center;
}

.lead {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.wpdsh-form .form-group {
    margin-bottom: 20px;
}

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

.wpdsh-form .form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.wpdsh-form small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 13px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #0073aa;
    color: #fff;
}

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

.btn-secondary {
    background: #999;
    color: #fff;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

.wpdsh-login-footer,
.wpdsh-register-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

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

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

/* Retailer Dashboard */
.wpdsh-retailer-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

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

.stat-box {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}

.stat-icon {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #0073aa;
    margin-right: 20px;
}

.stat-content h3 {
    margin: 0 0 5px;
    font-size: 32px;
    color: #23282d;
}

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

.stat-box.status-active .stat-icon {
    color: #46b450;
}

.stat-box.status-pending .stat-icon {
    color: #f0b849;
}

.dashboard-sections .section {
    background: #fff;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.section h2 {
    margin: 0 0 20px;
    font-size: 20px;
}

.api-credentials-box {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
}

.credential-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.credential-row label {
    min-width: 120px;
    font-weight: 600;
}

.credential-row code {
    flex: 1;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 4px;
    text-decoration: none;
    color: #23282d;
    transition: all 0.3s;
}

.action-btn:hover {
    background: #0073aa;
    color: #fff;
}

.action-btn .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    margin-bottom: 10px;
}

.wpdsh-table {
    width: 100%;
    border-collapse: collapse;
}

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

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

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.status-processing {
    background: #d1ecf1;
    color: #0c5460;
}

.status-badge.status-delivered {
    background: #d4edda;
    color: #155724;
}

.status-badge.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.no-orders {
    text-align: center;
    padding: 40px;
    color: #666;
}

.code-examples h4 {
    margin: 20px 0 10px;
}

.code-examples pre {
    background: #23282d;
    color: #fff;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
}

.code-examples code {
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
}

/* Product Catalog */
.wpdsh-product-catalog {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.catalog-search {
    width: 300px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

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

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

.product-image {
    height: 200px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.no-image {
    color: #ddd;
    font-size: 64px;
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    margin: 0 0 10px;
    font-size: 16px;
}

.product-sku {
    font-size: 12px;
    color: #666;
    margin: 0 0 10px;
}

.product-price {
    margin: 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #0073aa;
}

.regular-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
}

.sale-price {
    color: #d63638;
}

.product-stock .in-stock {
    color: #46b450;
}

.product-stock .out-of-stock {
    color: #d63638;
}

.catalog-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 30px 0;
}

.page-link {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #0073aa;
}

.page-link.active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Modal */
.wpdsh-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.modal-close:hover {
    color: #000;
}
