/* BrandProtection Admin Styles */

.brandprot-wrap {
    max-width: 1400px;
    margin: 20px 0;
}

/* Stats Grid */
.brandprot-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.brandprot-stat-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.brandprot-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.brandprot-stat-icon {
    font-size: 48px;
    line-height: 1;
}

.brandprot-stat-content h3 {
    margin: 0;
    font-size: 36px;
    font-weight: 600;
    color: #2271b1;
}

.brandprot-stat-content p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #666;
}

/* Quick Links */
.brandprot-quick-links {
    margin: 40px 0;
}

.brandprot-quick-links h2 {
    margin-bottom: 20px;
}

.brandprot-quick-links .button {
    margin-right: 10px;
    margin-bottom: 10px;
}

/* Info Box */
.brandprot-info-box {
    background: #f0f6fc;
    border: 1px solid #c3e0f6;
    border-radius: 4px;
    padding: 20px;
    margin: 30px 0;
}

.brandprot-info-box h3 {
    margin-top: 0;
    color: #0073aa;
}

.brandprot-info-box code {
    background: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 14px;
    display: inline-block;
    margin: 5px 0;
}

.brandprot-info-box ul {
    margin: 10px 0 0 20px;
}

.brandprot-info-box li {
    margin: 8px 0;
}

/* Generate Form */
.brandprot-generate-form {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
}

.brandprot-generate-form .required {
    color: #dc3232;
}

/* Generated Codes Table */
.brandprot-generated-codes {
    margin: 30px 0;
}

.brandprot-generated-codes h2 {
    margin-bottom: 10px;
}

.brandprot-generated-codes .description {
    margin-bottom: 15px;
    color: #666;
}

.brandprot-product-select {
    min-width: 250px;
    max-width: 100%;
}

.brandprot-assign-btn {
    white-space: nowrap;
}

.brandprot-assignment-status {
    font-size: 13px;
}

.brandprot-assigned {
    color: #46b450;
}

.brandprot-unassigned {
    color: #999;
}

/* Filters */
.brandprot-filters {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.brandprot-filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.brandprot-filter-row input[type="text"],
.brandprot-filter-row input[type="date"],
.brandprot-filter-row select {
    min-width: 150px;
}

/* Badges */
.brandprot-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brandprot-badge-unused {
    background: #e8f4f8;
    color: #0073aa;
}

.brandprot-badge-used {
    background: #f0f0f1;
    color: #666;
}

.brandprot-badge-valid {
    background: #ecf7ed;
    color: #46b450;
}

.brandprot-badge-invalid {
    background: #fcebeb;
    color: #dc3232;
}

/* No Logs Message */
.brandprot-no-logs {
    background: #fff;
    border: 1px solid #ddd;
    padding: 40px;
    text-align: center;
    border-radius: 4px;
    margin: 20px 0;
}

.brandprot-no-logs p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Logs Stats */
.brandprot-logs-stats {
    background: #f0f6fc;
    border: 1px solid #c3e0f6;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.brandprot-logs-stats h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.brandprot-logs-stats p {
    margin: 0;
    color: #666;
}

/* Help Section */
.brandprot-help-section {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
}

.brandprot-help-section h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
}

.brandprot-help-section h3 {
    color: #0073aa;
    margin-top: 20px;
}

.brandprot-help-section ul {
    margin: 10px 0 10px 20px;
}

.brandprot-help-section li {
    margin: 8px 0;
    line-height: 1.6;
}

/* Loading State */
.brandprot-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .brandprot-stats-grid {
        grid-template-columns: 1fr;
    }

    .brandprot-filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .brandprot-filter-row input,
    .brandprot-filter-row select,
    .brandprot-filter-row button {
        width: 100%;
    }
}