/**
 * Wisly - Admin Styles
 *
 * @package Wisly
 * @since 1.0.0
 */



/* ==========================================================================
   Settings Page
   ========================================================================== */

.asw-settings-section {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.asw-settings-section h2 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.asw-color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.asw-color-picker-wrapper input[type="color"] {
    width: 50px;
    height: 40px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.asw-shortcode-table {
    margin-top: 20px;
}

.asw-shortcode-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.asw-shortcode-table code {
    background: #f1f1f1;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 13px;
}

/* ==========================================================================
   Product Meta Box
   ========================================================================== */

.asw-meta-box-content {
    padding: 10px 0;
}

.asw-meta-box-content p {
    margin: 10px 0;
}

.asw-wishlist-count {
    font-size: 1.2em;
    font-weight: bold;
    color: #e74c3c;
}

.asw-popular-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff3cd;
    color: #856404;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.asw-popular-badge .dashicons {
    color: #ffd700;
}

/* ==========================================================================
   Dashboard Widget
   ========================================================================== */

.asw-dashboard-widget {
    padding: 10px 0;
}

.asw-dashboard-widget p {
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.asw-dashboard-widget strong {
    color: #333;
}

.asw-dashboard-widget .button {
    margin-top: 15px;
    width: 100%;
    text-align: center;
}

/* ==========================================================================
   Product List Column
   ========================================================================== */

.column-wishlist_count {
    text-align: center;
    width: 80px;
}

.column-wishlist_count .asw-count-badge {
    display: inline-block;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    line-height: 25px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
}

/* ==========================================================================
   Loading States
   ========================================================================== */

.asw-loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.asw-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #e74c3c;
    border-radius: 50%;
    animation: asw-spin 1s linear infinite;
}

@keyframes asw-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   Notices
   ========================================================================== */

.asw-notice {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
    padding: 12px 15px;
    margin: 15px 0;
    position: relative;
}

.asw-notice.error {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.asw-notice.warning {
    background: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.asw-notice.info {
    background: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* ==========================================================================
   Export/Import
   ========================================================================== */

.asw-export-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.asw-export-section h3 {
    margin-top: 0;
    color: #333;
}

.asw-export-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.asw-export-option {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 15px;
    text-align: center;
}

.asw-export-option label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.asw-export-option input[type="radio"] {
    margin-right: 8px;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 768px) {
    .asw-actions .button {
        display: block;
        margin: 10px 0;
        width: 100%;
    }
    
    .asw-color-picker-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .asw-export-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .asw-settings-section {
        padding: 15px;
    }
}

/* ==========================================================================
   High Contrast Mode
   ========================================================================== */

@media (prefers-contrast: high) {
    .asw-settings-section {
        border: 2px solid currentColor;
    }
    
    .asw-notice {
        border: 2px solid currentColor;
    }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .asw-loading::after {
        animation: none;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .asw-actions,
    .asw-export-section {
        display: none !important;
    }
    
    .asw-settings-section {
        break-inside: avoid;
        border: 1px solid #000;
    }
} 