/**
 * WiseStock - Admin Styles
 *
 * This file contains all the CSS styles for the WiseStock admin interface.
 * It provides styling for the dashboard, settings pages, and admin widgets.
 *
 * @package WiseStock
 * @since 1.0.0
 */

/* ==========================================================================
   WordPress Admin Notice Hiding
   ========================================================================== */

/* Hide WordPress admin notices on WiseStock pages */
.notice,
.update-nag,
.wp-header-end + div {
	display: none !important;
}

/* Disabled mode cards */
.wisestock-mode-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f6f7f7;
}

.wisestock-mode-card.disabled:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wisestock-mode-card.disabled .wisestock-mode-content h3,
.wisestock-mode-card.disabled .wisestock-mode-content p {
    color: #8c8f94;
}

/* ==========================================================================
   Notifications Page Styles
   ========================================================================== */

.wisestock-filter-tabs {
	display: flex;
	gap: 5px;
	margin-bottom: 20px;
	border-bottom: 1px solid #e1e5e9;
}

.wisestock-filter-tab {
    padding: 12px 20px;
    text-decoration: none;
    color: #646970;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.wisestock-filter-tab:hover {
    color: #1d2327;
    text-decoration: none;
}

.wisestock-filter-tab.active {
    color: #007cba;
    border-bottom-color: #007cba;
}

.wisestock-notifications-table {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
}

.wisestock-notifications-header {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr 0.8fr 1fr 1.5fr;
    gap: 16px;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 2px solid #e1e5e9;
    font-weight: 600;
    color: #333;
}

.wisestock-notification-row {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr 0.8fr 1fr 1.5fr;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid #e1e5e9;
    align-items: center;
    transition: background-color 0.2s ease;
}

.wisestock-notification-row:hover {
    background: #f8f9fa;
}

.wisestock-notification-row:last-child {
    border-bottom: none;
}

.wisestock-product-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wisestock-product-name a {
    font-weight: 600;
    color: #1d2327;
    text-decoration: none;
}

.wisestock-product-name a:hover {
    color: #007cba;
}

.wisestock-product-sku {
    font-size: 12px;
    color: #646970;
}

.wisestock-notification-message {
    font-size: 14px;
    color: #1d2327;
    line-height: 1.4;
}

.wisestock-stock-info {
    font-weight: 600;
    color: #1d2327;
}

.wisestock-notification-date {
    font-size: 13px;
    color: #646970;
}

.wisestock-notification-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.wisestock-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.wisestock-pagination-btn {
    padding: 8px 12px;
    text-decoration: none;
    color: #646970;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.wisestock-pagination-btn:hover {
    background: #f6f7f7;
    color: #1d2327;
    text-decoration: none;
}

.wisestock-pagination-btn.active {
    background: #007cba;
    color: #fff;
    border-color: #007cba;
}

.wisestock-no-data {
    text-align: center;
    padding: 60px 20px;
    color: #646970;
}

.wisestock-no-data-icon {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 20px;
}

.wisestock-no-data h3 {
    margin: 0 0 10px 0;
    color: #1d2327;
}

.wisestock-no-data p {
    margin: 0;
    font-size: 14px;
}

/* Responsive design for notifications page */
@media (max-width: 1200px) {
    .wisestock-notifications-header,
    .wisestock-notification-row {
        grid-template-columns: 2fr 1fr 1.5fr 0.6fr 0.8fr 1.2fr;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .wisestock-notifications-header,
    .wisestock-notification-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .wisestock-notification-col {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
    }

    .wisestock-notification-col::before {
        content: attr(data-label);
        font-weight: 600;
        color: #646970;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .wisestock-filter-tabs {
        flex-wrap: wrap;
    }

    .wisestock-pagination {
        flex-wrap: wrap;
    }
}

/* ==========================================================================
   Main Admin Styles
   ========================================================================== */

.wisestock-admin {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.wisestock-admin * {
    box-sizing: border-box;
}

/* ==========================================================================
   Disabled State Styles
   ========================================================================== */

.wisestock-form-select.disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

.wisestock-form-select.disabled:focus {
    border-color: #ddd;
    box-shadow: none;
}


.wisestock-demo-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    margin: 20px 20px 20px 0;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.wisestock-notice-content {
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 15px;
}

.wisestock-notice-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #007cba;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.wisestock-notice-text {
    flex: 1;
}

.wisestock-notice-text h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
}

.wisestock-notice-text p {
    margin: 0;
    font-size: 14px;
    color: #646970;
}

.wisestock-notice-actions {
    flex-shrink: 0;
}

/* ==========================================================================
   Dashboard Layout
   ========================================================================== */

.wisestock-dashboard {
    max-width: 1200px;
    margin: 0 20px 20px 20px;
    padding: 20px;
}

.wisestock-dashboard-header {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.wisestock-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.wisestock-header-text {
    flex: 1;
}

.wisestock-header-actions {
    display: flex;
    align-items: end;
    gap: 15px;
}

.wisestock-dashboard-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.wisestock-algorithm-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wisestock-algorithm-badge.timebound {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.wisestock-algorithm-badge.classic {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(240, 147, 251, 0.3);
}

.wisestock-algorithm-badge .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.wisestock-dashboard-subtitle {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* ==========================================================================
   Grid Layout
   ========================================================================== */

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

.wisestock-grid-2 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.wisestock-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .wisestock-grid,
    .wisestock-grid-2,
    .wisestock-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Cards and Panels
   ========================================================================== */

.wisestock-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin: 10px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.wisestock-card-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.wisestock-card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.wisestock-card-subtitle {
    margin: 5px 0 0 0;
    font-size: 14px;
    color: #666;
}

/* ==========================================================================
   Notification Bell
   ========================================================================== */

.wisestock-notification-bell {
    position: relative;
}

.wisestock-bell-btn {
    position: relative;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wisestock-bell-btn:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.wisestock-bell-btn .dashicons {
    font-size: 18px;
}

.wisestock-notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #2271b1;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    border: 2px solid white;
}

.wisestock-notification-count.warning {
    background: #ffc107;
}
.wisestock-notification-count.mild {
    background: #17a2b8;
}
.wisestock-notification-count.critical {
    background: #dc3545;
}

.wisestock-notification-count:empty {
    display: none;
}

.wisestock-notification-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    width: 400px;
    max-height: 500px;
    overflow: hidden;
    z-index: 1000;
    display: none;
    animation: wisestock-dropdown-fade-in 0.2s ease-out;
}

@keyframes wisestock-dropdown-fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wisestock-notification-dropdown.show {
    display: block;
}

.wisestock-notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.wisestock-notification-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.wisestock-close-dropdown {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.wisestock-close-dropdown:hover {
    background: #e9ecef;
    color: #333;
}

.wisestock-notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.wisestock-notification-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.wisestock-notification-item:hover {
    background: #f8f9fa;
}

.wisestock-notification-item:last-child {
    border-bottom: none;
}

.wisestock-notification-item.critical {
    border-left: 4px solid #dc3545;
}

.wisestock-notification-item.warning {
    border-left: 4px solid #ffc107;
}

.wisestock-notification-item.mild {
    border-left: 4px solid #17a2b8;
}

.wisestock-notification-content {
    margin-bottom: 10px;
}

.wisestock-notification-title {
    margin: 0 0 5px 0;
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.wisestock-notification-message {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.wisestock-notification-time {
    font-size: 11px;
    color: #999;
}

.wisestock-notification-actions {
    display: flex;
    gap: 8px;
}

.wisestock-notification-actions .wisestock-btn {
    font-size: 11px;
    padding: 4px 8px;
}

.wisestock-no-notifications {
    padding: 40px 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* ==========================================================================
   Alert System (Legacy - now used for notifications)
   ========================================================================== */

.wisestock-alerts {
    margin-bottom: 20px;
}

.wisestock-alert {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    border-left: 4px solid;
    background: #fff;
    border: 1px solid;
}

.wisestock-alert.critical {
    border-left-color: #dc3545;
    border-color: #dc3545;
    background: #f8d7da;
    color: #721c24;
}

.wisestock-alert.warning {
    border-left-color: #ffc107;
    border-color: #ffc107;
    background: #fff3cd;
    color: #856404;
}

.wisestock-alert.mild {
    border-left-color: #17a2b8;
    border-color: #17a2b8;
    background: #d1ecf1;
    color: #0c5460;
}

.wisestock-alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.wisestock-alert-title {
    font-weight: 600;
    margin: 0;
}

.wisestock-alert-actions {
    display: flex;
    gap: 10px;
}

.wisestock-alert-message {
    margin: 0;
    font-size: 14px;
}

/* ==========================================================================
   Notification Summary Cards
   ========================================================================== */

.wisestock-notification-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.wisestock-notification-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.wisestock-notification-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.wisestock-notification-card.critical {
    border-left: 4px solid #dc3545;
}

.wisestock-notification-card.warning {
    border-left: 4px solid #ffc107;
}

.wisestock-notification-card.mild {
    border-left: 4px solid #17a2b8;
}

.wisestock-notification-count {
    font-size: 10px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #fff;
}

.wisestock-notification-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
    font-weight: 500;
}

.wisestock-notification-actions {
    text-align: center;
}

/* Legacy alert styles for backward compatibility */
.wisestock-alert-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.wisestock-alert-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease;
}

.wisestock-alert-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.wisestock-alert-card.critical {
    border-left: 4px solid #dc3545;
}

.wisestock-alert-card.warning {
    border-left: 4px solid #ffc107;
}

.wisestock-alert-card.mild {
    border-left: 4px solid #17a2b8;
}

.wisestock-alert-count {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.wisestock-alert-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
    font-weight: 500;
}

/* ==========================================================================
   Product Lists
   ========================================================================== */

.wisestock-product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.wisestock-product-item:hover {
    background-color: #f8f9fa;
}

.wisestock-product-item:last-child {
    border-bottom: none;
}

.wisestock-product-info {
    flex: 1;
}

.wisestock-product-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.wisestock-product-name a {
    color: #333;
    text-decoration: none;
}

.wisestock-product-name a:hover {
    color: #007cba;
}

.wisestock-product-details {
    font-size: 12px;
    color: #666;
    display: flex;
    gap: 15px;
}

.wisestock-product-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ==========================================================================
   Priority Badges
   ========================================================================== */

.wisestock-priority-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wisestock-priority-badge.critical {
    background: #dc3545;
    color: white;
}

.wisestock-priority-badge.warning {
    background: #ffc107;
    color: #333;
}

.wisestock-priority-badge.mild {
    background: #17a2b8;
    color: white;
}

.wisestock-priority-badge.none {
    background: #6c757d;
    color: white;
}

/* ==========================================================================
   Velocity Indicators
   ========================================================================== */

.wisestock-velocity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.wisestock-velocity-item:last-child {
    border-bottom: none;
}

.wisestock-velocity-value {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

/* Product Warning Message */
.wisestock-product-warning {
    margin-top: 8px;
    padding: 8px 12px;
    background: #f6f7f7;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    font-size: 13px;
    color: #856404;
    line-height: 1.4;
    max-width: 700px;
}

/* Product Buttons Container */
.wisestock-product-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Velocity Table Structure */
.wisestock-velocity-table {
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    overflow: hidden;
}

.wisestock-velocity-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e1e1;
    font-weight: 600;
    color: #333;
}

.wisestock-velocity-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.wisestock-velocity-row:hover {
    background: #f8f9fa;
}

.wisestock-velocity-row:last-child {
    border-bottom: none;
}

.wisestock-velocity-col {
    padding: 12px 15px;
    display: flex;
    align-items: center;
}

.wisestock-velocity-col.product-name {
    font-weight: 500;
}

.wisestock-velocity-col.product-name a {
    color: #007cba;
    text-decoration: none;
}

.wisestock-velocity-col.product-name a:hover {
    text-decoration: underline;
}

.wisestock-velocity-col.sales-prediction {
    justify-content: center;
    font-weight: 500;
    color: #333;
}

.wisestock-velocity-col.prediction-window {
    justify-content: center;
    font-weight: 500;
    color: #333;
}

.wisestock-velocity-col.confidence {
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
}

/* ==========================================================================
   Restock Recommendations
   ========================================================================== */

.wisestock-recommendation {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 10px;
}

.wisestock-recommendation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.wisestock-recommendation-title {
    font-weight: 600;
    margin: 0;
    color: #333;
}

.wisestock-recommendation-urgency {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.wisestock-recommendation-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 10px;
}

.wisestock-recommendation-detail {
    font-size: 14px;
}

.wisestock-recommendation-detail-label {
    font-weight: 500;
    color: #666;
    display: block;
    margin-bottom: 2px;
}

.wisestock-recommendation-detail-value {
    color: #333;
}

.wisestock-recommendation-reasoning {
    font-size: 13px;
    color: #666;
    font-style: italic;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
}

/* ==========================================================================
   Buttons and Actions
   ========================================================================== */

.wisestock-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    line-height: unset;
}

.wisestock-btn:hover {
    background: #005a87;
    color: white;
}

.wisestock-btn:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.wisestock-btn.secondary {
    background: #6c757d;
}

.wisestock-btn.secondary:hover {
    background: #545b62;
}

.wisestock-btn.success {
    background: #28a745;
}

.wisestock-btn.success:hover {
    background: #1e7e34;
}

.wisestock-btn.danger {
    background: #dc3545;
}

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

.wisestock-btn.small {
    padding: 4px 8px;
    font-size: 12px;
}

.wisestock-btn-group {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
}

/* ==========================================================================
   Tables
   ========================================================================== */

.wisestock-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

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

.wisestock-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.wisestock-table tbody tr:hover {
    background: #f8f9fa;
}

.wisestock-table tbody tr:last-child td {
    border-bottom: none;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.wisestock-form {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
}

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

.wisestock-form-group.error {
    margin: 0px;
    padding: 12px;
}

.wisestock-form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.wisestock-form-input,
.wisestock-form-select,
.wisestock-form-textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.wisestock-form-input:focus,
.wisestock-form-select:focus,
.wisestock-form-textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.wisestock-form-textarea {
    resize: vertical;
    min-height: 100px;
}

.wisestock-form-help {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.wisestock-form-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

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

.wisestock-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #666;
}

.wisestock-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: wisestock-spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes wisestock-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .wisestock-dashboard {
        padding: 10px;
    }

    .wisestock-header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .wisestock-header-actions {
        justify-content: space-between;
    }

    .wisestock-notification-dropdown {
        width: 100%;
        right: -10px;
        left: -10px;
    }

    .wisestock-notification-summary,
    .wisestock-alert-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .wisestock-product-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .wisestock-product-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .wisestock-product-buttons {
        flex-wrap: wrap;
        gap: 6px;
    }

    .wisestock-btn-group {
        flex-wrap: wrap;
    }

    .wisestock-velocity-header,
    .wisestock-velocity-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .wisestock-velocity-col {
        padding: 8px 15px;
        border-bottom: 1px solid #f0f0f0;
    }

    .wisestock-velocity-col:last-child {
        border-bottom: none;
    }

    .wisestock-velocity-col::before {
        content: attr(data-label);
        font-weight: 600;
        color: #666;
        margin-right: 10px;
        min-width: 120px;
    }

    .wisestock-velocity-col.product-name::before {
        content: "Product:";
    }

    .wisestock-velocity-col.sales-prediction::before {
        content: "Sales Prediction:";
    }

    .wisestock-velocity-col.confidence::before {
        content: "Confidence:";
    }
}

@media (max-width: 480px) {
    .wisestock-notification-summary,
    .wisestock-alert-summary {
        grid-template-columns: 1fr;
    }

    .wisestock-notification-card,
    .wisestock-alert-card {
        padding: 15px;
    }

    .wisestock-notification-count,
    .wisestock-alert-count {
        font-size: 24px;
    }

    .wisestock-bell-btn {
        width: 35px;
        height: 35px;
    }

    .wisestock-bell-btn .dashicons {
        font-size: 16px;
    }
}

/* ==========================================================================
   WordPress Admin Integration
   ========================================================================== */

.wisestock-admin .wrap {
    margin: 0;
}

.wisestock-admin .notice {
    margin: 15px 0;
}

.wisestock-admin .wp-admin .wisestock-card {
    margin-bottom: 20px;
}

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

@media print {
    .wisestock-btn,
    .wisestock-product-actions {
        display: none;
    }

    .wisestock-card {
        border: 1px solid #000;
        box-shadow: none;
    }

    .wisestock-alert-card {
        break-inside: avoid;
    }
}

/* ==========================================================================
   Modal Styles
   ========================================================================== */

.wisestock-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 999999 !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wisestock-modal:not(.wisestock-dynamic-display-none) {
    display: flex !important;
}

.wisestock-modal-content {
    background: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    max-width: 500px !important;
    width: 90% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    animation: wisestock-modal-fade-in 0.3s ease-out !important;
    margin: 0 !important;
    position: relative !important;
}

@keyframes wisestock-modal-fade-in {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.wisestock-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e1e5e9;
}

.wisestock-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.wisestock-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.wisestock-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.wisestock-modal-body {
    padding: 24px;
}

.wisestock-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e1e5e9;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

.wisestock-modal-footer .wisestock-btn {
    margin: 0;
}

.required {
    color: #d63384;
    font-weight: 600;
}

/* Modal responsive styles */
@media (max-width: 768px) {
    .wisestock-modal-content {
        width: 95%;
        margin: 20px;
    }

    .wisestock-modal-footer {
        flex-direction: column;
    }

    .wisestock-modal-footer .wisestock-btn {
        width: 100%;
    }
}

/* Time-Bound Prediction Styles */
.wisestock-velocity-details {
    margin-top: 4px;
}

.wisestock-velocity-details small {
    display: inline-block;
    padding: 2px 6px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 5px;
}

.wisestock-confidence-details {
    margin-top: 4px;
}

.wisestock-confidence-details small {
    display: inline-block;
    padding: 2px 6px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 5px;
}

.wisestock-prediction-window {
    display: inline-block;
    padding: 2px 6px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.wisestock-risk-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wisestock-risk-badge.low {
    background: #e8f5e8;
    color: #2e7d32;
}

.wisestock-risk-badge.medium {
    background: #fff3e0;
    color: #f57c00;
}

.wisestock-risk-badge.high {
    background: #ffebee;
    color: #d32f2f;
}

.wisestock-risk-badge.very_high {
    background: #fce4ec;
    color: #c2185b;
}

.wisestock-risk-badge.unknown {
    background: #f5f5f5;
    color: #666;
}

/* Market Change Detection Styles */
.wisestock-market-changes {
    padding: 0;
}

.wisestock-market-change {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.wisestock-market-change:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #c1c8cd;
}

.wisestock-market-change-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
}

.wisestock-market-change-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.wisestock-change-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wisestock-change-badge.low {
    background: #e8f5e8;
    color: #2e7d32;
}

.wisestock-change-badge.medium {
    background: #fff3e0;
    color: #f57c00;
}

.wisestock-change-badge.high {
    background: #ffebee;
    color: #d32f2f;
}

.wisestock-change-badge.positive {
    background: #e8f5e8;
    color: #2e7d32;
}

.wisestock-change-badge.negative {
    background: #ffebee;
    color: #d32f2f;
}

.wisestock-market-change-details {
    padding: 16px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.wisestock-market-change-detail {
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.wisestock-market-change-detail-label {
    font-weight: 500;
    color: #666;
    font-size: 14px;
}

.wisestock-market-change-detail-value {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
    padding-left: 5px;
}

.wisestock-market-change-recommendation {
    padding: 16px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e1e5e9;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.wisestock-market-change-recommendation strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* Enhanced velocity table for time-bound predictions */
.wisestock-velocity-table .wisestock-velocity-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 16px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 2px solid #e1e5e9;
    font-weight: 600;
    color: #333;
}

.wisestock-velocity-table .wisestock-velocity-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid #e1e5e9;
    align-items: center;
}

.wisestock-velocity-table .wisestock-velocity-row:hover {
    background: #f8f9fa;
}

/* Recommendation badges layout */
.wisestock-recommendation-badges {
    display: flex;
    gap: 8px;
    align-items: center;
}

.wisestock-recommendation-badges .wisestock-priority-badge {
    margin: 0;
}

.wisestock-recommendation-badges .wisestock-risk-badge {
    margin: 0;
    font-size: 10px;
    padding: 2px 6px;
}

/* Enhanced recommendation details for time-bound predictions */
.wisestock-recommendation-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.wisestock-recommendation-detail {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.wisestock-recommendation-detail:last-child {
    border-bottom: none;
}

.wisestock-recommendation-detail-label {
    font-weight: 500;
    color: #666;
    font-size: 14px;
}

.wisestock-recommendation-detail-value {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
    padding-left: 5px;
}

/* Responsive adjustments for time-bound predictions */
@media (max-width: 1200px) {
    .wisestock-velocity-table .wisestock-velocity-header,
    .wisestock-velocity-table .wisestock-velocity-row {
        grid-template-columns: 2fr 1.2fr 0.8fr 0.6fr 0.6fr;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .wisestock-velocity-table .wisestock-velocity-header,
    .wisestock-velocity-table .wisestock-velocity-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .wisestock-velocity-table .wisestock-velocity-col {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 4px 0;
    }

    .wisestock-velocity-table .wisestock-velocity-col::before {
        content: attr(data-label);
        font-weight: 600;
        color: #666;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .wisestock-market-change-details {
        grid-template-columns: 1fr;
    }
}




/* ==========================================================================
   Navigation Styles (moved from navigation.php)
   ========================================================================== */

.wisestock-navigation {
    background: #fff;
    border-bottom: 1px solid #e1e1e1;
    margin-left: -20px;
}

.wisestock-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 0;
}

.wisestock-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
}

.wisestock-nav-icon {
    font-size: 20px;
    color: #007cba;
}

.wisestock-nav-title {
    color: #1d2327;
}

.wisestock-nav-menu {
    display: flex;
    gap: 5px;
}

.wisestock-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    color: #646970;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.wisestock-nav-item:hover {
    background: #f6f7f7;
    color: #1d2327;
    text-decoration: none;
}

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

.wisestock-nav-item.active:hover {
    background: #005a87;
    border-color: #005a87;
    color: #fff;
}

.wisestock-nav-item-text {
    font-size: 14px;
}

/* Responsive design for navigation */
@media (max-width: 768px) {
    .wisestock-nav-container {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .wisestock-nav-brand {
        justify-content: center;
    }

    .wisestock-nav-menu {
        justify-content: center;
        flex-wrap: wrap;
    }

    .wisestock-nav-item {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .wisestock-nav-item-text {
        display: none;
    }
}

/* Prediction Mode Selection Styles */
.wisestock-mode-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.wisestock-mode-option {
    cursor: pointer;
    margin: 0;
}

.wisestock-mode-option input[type="radio"] {
    display: none;
}

.wisestock-mode-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.wisestock-mode-card:hover {
    border-color: #0073aa;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.1);
}

.wisestock-mode-option input[type="radio"]:checked + .wisestock-mode-card {
    border-color: #0073aa;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.15);
}

.wisestock-mode-icon {
    text-align: center;
    margin-bottom: 16px;
}

.wisestock-mode-icon .dashicons {
    font-size: 48px;
    color: #0073aa;
    width: 48px;
    height: 48px;
}

.wisestock-mode-content h3 {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
}

.wisestock-mode-content p {
    margin: 0 0 16px 0;
    color: #666;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
}

.wisestock-mode-content ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wisestock-mode-content li {
    padding: 6px 0;
    color: #555;
    font-size: 13px;
    position: relative;
    padding-left: 20px;
}

.wisestock-mode-content li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #0073aa;
    font-weight: bold;
}

/* Responsive adjustments for settings */
@media (max-width: 768px) {
    .wisestock-mode-selection {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .wisestock-mode-card {
        padding: 20px;
    }
}

/* ==========================================================================
   Suppliers Page Styles (moved from suppliers.php)
   ========================================================================== */

.wisestock-supplier-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.wisestock-stat-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.wisestock-stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #1d2327;
    margin-bottom: 5px;
}

.wisestock-stat-label {
    font-size: 12px;
    color: #646970;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wisestock-product-count {
    background: #007cba;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.wisestock-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.wisestock-quick-actions .wisestock-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    width: 100%;
    padding: 12px 16px;
    text-align: left;
}

.wisestock-quick-actions .wisestock-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.wisestock-no-data {
    text-align: center;
    padding: 40px 20px;
    color: #646970;
    font-style: italic;
}

.wisestock-no-data p {
    margin: 5px 0;
}

.wisestock-product-selector {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    background: #f9f9f9;
}

.wisestock-product-search {
    margin-bottom: 15px;
}

.wisestock-product-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    padding: 10px;
    margin-bottom: 15px;
}

.wisestock-product-item {
    display: block;
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.wisestock-product-item:hover {
    background: #f8f9fa;
}

.wisestock-product-item:last-child {
    border-bottom: none;
}

.wisestock-product-item.selected {
    background: #007cba;
    color: white;
}

.wisestock-product-item.selected:hover {
    background: #005a87;
}

.wisestock-product-name {
    font-weight: 500;
    margin-bottom: 2px;
}

.wisestock-product-sku {
    font-size: 12px;
    color: #666;
}

.wisestock-product-item.selected .wisestock-product-sku {
    color: rgba(255, 255, 255, 0.8);
}

.wisestock-supplier-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Duplicate modal styles removed - using the main modal styles above */

/* Duplicate modal title and close styles removed - using the main modal styles above */

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

.wisestock-form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #1d2327;
}

.wisestock-form-input {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
}

.wisestock-form-input:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 1px #007cba;
}

.wisestock-form-textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
}

.wisestock-form-textarea:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 1px #007cba;
}

.wisestock-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

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

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

.wisestock-supplier-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #1d2327;
}

.wisestock-supplier-table tr:hover {
    background: #f8f9fa;
}

.wisestock-supplier-actions {
    display: flex;
    gap: 5px;
}

.wisestock-btn-small {
    padding: 4px 8px;
    font-size: 12px;
}

.wisestock-supplier-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.wisestock-supplier-status.active {
    background: #d1e7dd;
    color: #0f5132;
}

.wisestock-supplier-status.inactive {
    background: #f8d7da;
    color: #842029;
}

.wisestock-supplier-email {
    color: #007cba;
    text-decoration: none;
}

.wisestock-supplier-email:hover {
    text-decoration: underline;
}






.wisestock-btn-loading {
    display: none;
}

.wisestock-btn-loading.show {
    display: inline-block;
}

.wisestock-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.wisestock-btn:disabled:hover {
    background: #007cba;
    color: white;
}

/* ==========================================================================
   Email Template Styles (moved from various manager classes)
   ========================================================================== */

.wisestock-email-body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.wisestock-email-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.wisestock-email-header {
    color: var(--email-color);
    border-bottom: 2px solid var(--email-color);
    padding-bottom: 10px;
}

.wisestock-email-alert-box {
    background: #f8f9fa;
    padding: 15px;
    border-left: 4px solid var(--email-color);
    margin: 20px 0;
}

.wisestock-email-alert-message {
    margin: 0;
    font-size: 16px;
}

.wisestock-email-product-details {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    margin: 20px 0;
}

.wisestock-email-product-details h3 {
    margin-top: 0;
}

.wisestock-email-analysis-details {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    margin: 20px 0;
}

.wisestock-email-analysis-details h3 {
    margin-top: 0;
}

.wisestock-email-next-steps {
    background: #e9ecef;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

.wisestock-email-next-steps h3 {
    margin-top: 0;
}

.wisestock-email-actions {
    margin: 20px 0;
}

.wisestock-email-btn {
    background: var(--email-btn-bg);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 3px;
    margin-right: 10px;
    display: inline-block;
}

.wisestock-email-btn:hover {
    text-decoration: none;
    opacity: 0.9;
}

.wisestock-email-btn-primary {
    --email-btn-bg: #007cba;
}

.wisestock-email-btn-success {
    --email-btn-bg: #28a745;
}

.wisestock-email-footer {
    border: none;
    border-top: 1px solid #ddd;
    margin: 30px 0;
}

.wisestock-email-footer-text {
    font-size: 12px;
    color: #666;
}

/* ==========================================================================
   Utility Classes for Dynamic Styles
   ========================================================================== */

.wisestock-dynamic-display-none {
    display: none !important;
}

.wisestock-dynamic-display-block {
    display: block;
}

.wisestock-dynamic-display-flex {
    display: flex;
}

.wisestock-dynamic-display-grid {
    display: grid;
}

.wisestock-dynamic-width-auto {
    width: auto;
}

.wisestock-dynamic-width-100 {
    width: 100%;
}

.wisestock-dynamic-margin-top-20 {
    margin-top: 20px;
}

.wisestock-dynamic-padding-15 {
    padding: 15px;
}

.wisestock-dynamic-background-f0f0f0 {
    background: #f0f0f0;
}

.wisestock-dynamic-margin-bottom-20 {
    margin-bottom: 20px;
}

/* ==========================================================================
   Additional Utility Classes
   ========================================================================== */

.wisestock-warning-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 3px;
    padding: 8px;
    margin-bottom: 15px;
    font-size: 12px;
    color: #856404;
}

.wisestock-confidence-text {
    color: #666;
}


.wisestock-demo-product-link {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    cursor: default;
}

.wisestock-demo-product-name {
    color: #667eea;
    font-weight: 600;
    cursor: default;
}

/* ==========================================================================
   INSTALLATION WIZARD STYLES
   ========================================================================== */

.wisestock-installation {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.wisestock-installation-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.wisestock-installation-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
}

.wisestock-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.wisestock-exit-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wisestock-exit-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.wisestock-exit-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.wisestock-installation-title {
    font-size: 2.5em;
    margin: 0 0 10px 0;
    font-weight: 700;
    color: #fff;
}

.wisestock-installation-subtitle {
    font-size: 1.2em;
    margin: 0;
    opacity: 0.9;
    font-weight: 300;
}

.wisestock-installation-wizard {
    padding: 40px;
}

/* Progress Bar */
.wisestockgress-container {
    margin-bottom: 50px;
}

.wisestockgress-bar {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 30px;
}

.wisestockgress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 20%;
    transition: width 0.3s ease;
    border-radius: 3px;
}

.wisestockgress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wisestock-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.wisestock-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.wisestock-step.completed:not(:last-child)::after {
    background: #667eea;
}

.wisestock-step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.wisestock-step.active .wisestock-step-number {
    background: #667eea;
    color: white;
}

.wisestock-step.completed .wisestock-step-number {
    background: #4CAF50;
    color: white;
}

.wisestock-step-label {
    font-size: 12px;
    color: #666;
    text-align: center;
    font-weight: 500;
}

.wisestock-step.active .wisestock-step-label {
    color: #667eea;
    font-weight: 600;
}

.wisestock-step.completed .wisestock-step-label {
    color: #4CAF50;
    font-weight: 600;
}

/* Installation Steps */
.wisestock-installation-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.wisestock-installation-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.wisestock-step-content {
    max-width: 800px;
    margin: 0 auto;
}

.wisestock-step-title {
    font-size: 2em;
    color: #333;
    margin: 0 0 15px 0;
    text-align: center;
    font-weight: 600;
}

.wisestock-step-description {
    font-size: 1.1em;
    color: #666;
    margin: 0 0 40px 0;
    text-align: center;
    line-height: 1.6;
}

/* Options Grid */
.wisestock-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.wisestock-yes-no-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.wisestock-option-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.wisestock-option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    transition: background 0.3s ease;
}

.wisestock-option-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.wisestock-option-card.active {
    border-color: #667eea;
    background: #f8f9ff;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.wisestock-option-card.active::before {
    background: #667eea;
}

.wisestock-option-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    text-align: center;
}

.wisestock-option-title {
    font-size: 1.3em;
    color: #333;
    margin: 0 0 10px 0;
    font-weight: 600;
    text-align: center;
}

.wisestock-option-description {
    color: #666;
    margin: 0 0 20px 0;
    line-height: 1.5;
    text-align: center;
}

.wisestock-option-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wisestock-feature {
    color: #4CAF50;
    font-size: 0.9em;
    font-weight: 500;
}

/* Info Boxes */
.wisestock-info-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.wisestock-warning-box {
    background: #f8f9ff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
}

.wisestock-warning-box {
    background: #fff8f0;
    border-color: #ff9800;
}

.wisestock-info-box h4,
.wisestock-warning-box h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1em;
}

.wisestock-info-box p,
.wisestock-warning-box p {
    margin: 0 0 10px 0;
    color: #666;
    line-height: 1.5;
}

.wisestock-info-box ul,
.wisestock-warning-box ul {
    margin: 10px 0;
    padding-left: 20px;
}

.wisestock-info-box li,
.wisestock-warning-box li {
    color: #666;
    margin-bottom: 5px;
}

.wisestock-stats-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.wisestock-stats-column h5 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1em;
}

.wisestock-stats-column ul {
    margin: 0;
    padding-left: 15px;
}

.wisestock-stats-column li {
    font-size: 0.9em;
    margin-bottom: 5px;
}

/* Completion Summary */
.wisestock-completion-summary {
    background: #f8f9ff;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
}

.wisestock-summary-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.wisestock-summary-item:last-child {
    margin-bottom: 0;
}

.wisestock-summary-icon {
    font-size: 1.5em;
    margin-right: 15px;
    width: 40px;
    text-align: center;
}

.wisestock-summary-content h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1em;
}

.wisestock-summary-content p {
    margin: 0;
    color: #666;
    font-weight: 500;
}

/* Demo Toggle */
.wisestock-demo-toggle {
    background: #f0f8ff;
    border: 1px solid #667eea;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    text-align: center;
}

.wisestock-demo-toggle h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.2em;
}

.wisestock-demo-toggle p {
    margin: 0 0 20px 0;
    color: #666;
    line-height: 1.5;
}

.wisestock-toggle {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 10px;
}

.wisestock-toggle input[type="checkbox"] {
    display: none;
}

.wisestock-toggle-slider {
    width: 50px;
    height: 24px;
    background: #ccc;
    border-radius: 12px;
    position: relative;
    transition: background 0.3s ease;
    margin-right: 10px;
}

.wisestock-toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.wisestock-toggle input[type="checkbox"]:checked + .wisestock-toggle-slider {
    background: #667eea;
}

.wisestock-toggle input[type="checkbox"]:checked + .wisestock-toggle-slider::before {
    transform: translateX(26px);
}

.wisestock-toggle-label {
    font-weight: 600;
    color: #333;
}

.wisestock-toggle-note {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

/* How It Works */
.wisestock-how-it-works {
    background: #f8f9ff;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
}

.wisestock-how-it-works h3 {
    margin: 0 0 25px 0;
    color: #333;
    font-size: 1.3em;
    text-align: center;
}

.wisestock-timeline {
    position: relative;
    margin: 30px 0;
}

.wisestock-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
}

.wisestock-timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    position: relative;
}

.wisestock-timeline-icon {
    width: 60px;
    height: 60px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    margin-right: 20px;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.wisestock-timeline-content {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.wisestock-timeline-content h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.1em;
}

.wisestock-timeline-content p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

.wisestock-timeline-summary {
    margin-top: 30px;
}

.wisestock-timeline-summary h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1em;
}

.wisestock-reference-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.wisestock-reference-table th,
.wisestock-reference-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.wisestock-reference-table th {
    background: #f8f9ff;
    color: #333;
    font-weight: 600;
    font-size: 0.9em;
}

.wisestock-reference-table td {
    color: #666;
    font-size: 0.9em;
}

.wisestock-reference-table tr:last-child td {
    border-bottom: none;
}

/* Navigation */
.wisestock-installation-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.wisestock-nav-left {
    flex: 1;
}

.wisestock-nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.wisestock-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.wisestock-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.wisestock-btn-primary {
    background: #667eea;
    color: white;
}

.wisestock-btn-primary:hover:not(:disabled) {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.wisestock-btn-secondary {
    background: #f0f0f0;
    color: #666;
}

.wisestock-btn-success {
    background: #4CAF50;
    color: white;
}

.wisestock-btn-success:hover:not(:disabled) {
    background: #45a049;
    transform: translateY(-1px);
}

/* Success Message */
.wisestock-success-message {
    text-align: center;
    padding: 60px 40px;
}

.wisestock-success-icon {
    width: 80px;
    height: 80px;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    margin: 0 auto 30px auto;
}

.wisestock-success-content h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.5em;
}

.wisestock-success-content p {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 1.1em;
}

/* Notices */
.wisestock-notice {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    position: relative;
}

.wisestock-notice-error {
    background: #ffebee;
    border: 1px solid #f44336;
    color: #c62828;
}

.wisestock-notice-success {
    background: #e8f5e8;
    border: 1px solid #4CAF50;
    color: #2e7d32;
}

.wisestock-notice-icon {
    margin-right: 10px;
    font-size: 1.2em;
}

.wisestock-notice-message {
    flex: 1;
    font-weight: 500;
}

.wisestock-notice-dismiss {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 5px;
    margin-left: 10px;
}

.wisestock-notice-dismiss:hover {
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wisestock-installation {
        padding: 10px;
    }

    .wisestock-installation-header {
        padding: 30px 20px;
    }

    .wisestock-installation-title {
        font-size: 2em;
    }

    .wisestock-installation-wizard {
        padding: 20px;
    }

    .wisestock-options-grid,
    .wisestock-yes-no-options {
        grid-template-columns: 1fr;
    }

    .wisestockgress-steps {
        flex-direction: column;
        gap: 20px;
    }

    .wisestock-step:not(:last-child)::after {
        display: none;
    }

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

    .wisestock-installation-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .wisestock-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Installation Info Styles */
.wisestock-installation-info {
    background: #f8f9ff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.wisestock-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.wisestock-info-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.wisestock-info-item strong {
    color: #333;
    font-weight: 600;
}

.wisestock-info-item span {
    color: #666;
    font-weight: 500;
}

.wisestock-status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
}

.wisestock-status-success {
    background: #e8f5e8;
    color: #2e7d32;
}

.wisestock-btn-warning {
    background: #ff9800;
    color: white;
}

.wisestock-btn-warning:hover:not(:disabled) {
    background: #f57c00;
    transform: translateY(-1px);
}

/* Preset Cards */
.wisestock-presets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.wisestock-preset-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.wisestock-preset-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}

.wisestock-preset-card.active {
    border-color: #667eea;
    background: #f8f9ff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.wisestock-preset-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.wisestock-preset-title {
    font-size: 1.1em;
    color: #333;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.wisestock-preset-description {
    color: #666;
    margin: 0;
    font-size: 0.9em;
    line-height: 1.4;
}

/* Acknowledgement Cards (Non-clickable) */
.wisestock-acknowledgement-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.wisestock-acknowledgement-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    /* Remove cursor pointer and hover effects */
    cursor: default;
    transition: none;
}

.wisestock-acknowledgement-card:hover {
    /* No hover effects */
    border-color: #e0e0e0;
    transform: none;
    box-shadow: none;
}

/* Configuration Summary */
.wisestock-configuration-summary {
    background: #f8f9ff;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
}

.wisestock-summary-section {
    margin-bottom: 25px;
}

.wisestock-summary-section:last-child {
    margin-bottom: 0;
}

.wisestock-summary-section h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.2em;
    font-weight: 600;
}

.wisestock-summary-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.wisestock-summary-label {
    color: #333;
    font-weight: 600;
    padding-right: 10px;
}

.wisestock-summary-value {
    color: #667eea;
    font-weight: 500;
}

.wisestock-features-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.wisestock-feature-item {
    background: white;
    padding: 10px 15px;
    border-radius: 6px;
    border-left: 3px solid #4CAF50;
    font-size: 0.9em;
    color: #333;
}

.wisestock-impact-notice {
    background: #fff8f0;
    border: 1px solid #ff9800;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.wisestock-impact-notice h4 {
    margin: 0 0 15px 0;
    color: #e65100;
    font-size: 1.1em;
}

.wisestock-impact-notice p {
    margin: 0 0 10px 0;
    color: #666;
    line-height: 1.5;
}

.wisestock-impact-notice p:last-child {
    margin-bottom: 0;
}

/* Help Button */
.wisestock-help-button {
    margin-top: 15px;
    text-align: center;
}

.wisestock-help-button .wisestock-btn {
    font-size: 0.9em;
    padding: 8px 16px;
}

/* Help Modal Specific Styles */
.wisestock-modal-body ul {
    margin: 15px 0;
    padding-left: 20px;
}

.wisestock-modal-body li {
    margin-bottom: 8px;
    color: #555;
}

/* Demo Toggle Loading State */
.wisestock-toggle.loading {
    opacity: 0.7;
    pointer-events: none;
}

.wisestock-toggle.loading .wisestock-toggle-slider {
    background-color: #0073aa;
}

.wisestock-toggle.loading .wisestock-toggle-slider:before {
    background-color: #fff;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ==========================================================================
   Delete Data Toggle (Capsule Style)
   ========================================================================== */

/* Container for the toggle */
.wisestock-danger-setting .wisestock-form-label {
    display: flex !important;
    align-items: center !important;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

/* Hide the default checkbox */
#delete_data_on_uninstall {
    display: none !important;
}

/* Capsule toggle switch */
.wisestock-delete-toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 2px solid #ddd;
    flex-shrink: 0;
}

/* Toggle switch when checked */
#delete_data_on_uninstall:checked + .wisestock-delete-toggle-switch {
    background: #dc3545;
    border-color: #c82333;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 2px rgba(220, 53, 69, 0.2);
}

/* Toggle slider/handle */
.wisestock-delete-toggle-switch::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* Slider position when checked */
#delete_data_on_uninstall:checked + .wisestock-delete-toggle-switch::before {
    transform: translateX(28px);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* Toggle icons */
.wisestock-delete-toggle-switch::after {
    content: '✕';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #999;
    transition: all 0.3s ease;
    font-weight: bold;
}

#delete_data_on_uninstall:checked + .wisestock-delete-toggle-switch::after {
    content: '⚠';
    left: 8px;
    right: auto;
    color: #fff;
}

/* Toggle label text */
.wisestock-delete-toggle-label {
    font-weight: 500;
    color: #333;
    margin: 0 !important;
    font-size: 14px;
    flex-grow: 1;
}

/* Hover effects */
.wisestock-danger-setting .wisestock-form-label:hover .wisestock-delete-toggle-switch {
    border-color: #bbb;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(0, 123, 255, 0.1);
}

#delete_data_on_uninstall:checked + .wisestock-delete-toggle-switch:hover {
    background: #c82333;
    border-color: #bd2130;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25), 0 0 0 3px rgba(220, 53, 69, 0.3);
}

/* Focus states for accessibility */
.wisestock-danger-setting .wisestock-form-label:focus-within .wisestock-delete-toggle-switch {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Disabled state */
.wisestock-danger-setting .wisestock-form-label.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.wisestock-danger-setting .wisestock-form-label.disabled .wisestock-delete-toggle-switch {
    background: #f5f5f5;
    border-color: #e0e0e0;
    cursor: not-allowed;
}

/* Small animation for toggle */
.wisestock-delete-toggle-switch {
    transform-origin: center;
}

.wisestock-danger-setting .wisestock-form-label:active .wisestock-delete-toggle-switch {
    transform: scale(0.95);
}

/* Completion Actions */
.wisestock-completion-actions {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.wisestock-btn-large {
    font-size: 1.2em;
    padding: 15px 30px;
    min-width: 200px;
}

/* Danger Zone Styles */
.wisestock-danger-zone {
    border: 2px solid #dc3545;
    background: linear-gradient(135deg, #fff5f5 0%, #ffeaea 100%);
}

.wisestock-danger-zone .wisestock-card-header {
    background: #dc3545;
    color: white;
    margin: 0 !important;
    border-radius: 8px 8px 0 0;
    padding: 10px;
}

.wisestock-danger-zone .wisestock-card-title {
    color: white;
    font-weight: 700;
}

.wisestock-danger-zone .wisestock-card-title .dashicons {
    color: #ffc107;
    margin-right: 8px;
}

.wisestock-danger-setting {
    padding: 15px;
}

.wisestock-danger-setting h4 {
    color: #dc3545;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.wisestock-danger-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 15px;
}

.wisestock-danger-warning {
    color: #dc3545;
    font-size: 1.1em;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(220, 53, 69, 0.1);
    border-left: 4px solid #dc3545;
    border-radius: 4px;
}

.wisestock-btn-danger {
    background: #dc3545;
    color: white;
    border: 1px solid #dc3545;
    transition: all 0.3s ease;
}

.wisestock-btn-danger:hover {
    background: #c82333;
    border-color: #bd2130;
    color: white;
}

.wisestock-btn-danger:disabled {
    background: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
}

/* Popup Styles */
.wisestock-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.wisestock-popup-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.wisestock-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.wisestock-popup-header h3 {
    margin: 0;
    color: #dc3545;
    font-size: 1.4em;
    font-weight: 700;
}

.wisestock-popup-header .dashicons {
    color: #dc3545;
    margin-right: 8px;
}

.wisestock-popup-close {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.wisestock-popup-close:hover {
    background: #e9ecef;
    color: #495057;
}

.wisestock-popup-body {
    padding: 25px;
}

.wisestock-danger-icon {
    text-align: center;
    margin-bottom: 40px;
}

.wisestock-danger-icon .dashicons {
    font-size: 48px;
    color: #dc3545;
}

.wisestock-popup-body h4 {
    color: #dc3545;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.wisestock-popup-body ul {
    margin: 15px 0;
    padding-left: 20px;
}

.wisestock-popup-body li {
    margin-bottom: 8px;
    color: #495057;
}

.wisestock-confirmation-input {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.wisestock-confirmation-input label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #495057;
}

.wisestock-confirmation-input input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    font-family: monospace;
    transition: border-color 0.3s ease;
}

.wisestock-confirmation-input input:focus {
    outline: none;
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.wisestock-error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 8px;
    font-weight: 500;
}

.wisestock-popup-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 20px 25px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.wisestock-btn-secondary {
    background: #6c757d;
    color: white;
    border: 1px solid #6c757d;
}

/* ==========================================================================
   Help Icon and Tooltip Styles
   ========================================================================== */

.wisestock-help-icon {
    position: relative;
    display: inline-block;
    margin-left: 8px;
    cursor: help;
    color: #6c757d;
    font-size: 16px;
    vertical-align: middle;
    transition: color 0.2s ease;
}

.wisestock-help-icon:hover {
    color: #007cba;
}

.wisestock-help-icon .dashicons {
    font-size: 21px;
}

.wisestock-tooltip-content {
    position: absolute;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 20px;
    max-width: 400px;
    z-index: 1000;
    font-size: 14px;
    line-height: 1.5;
}

.wisestock-tooltip-section {
    margin-bottom: 16px;
}

.wisestock-tooltip-section:last-child {
    margin-bottom: 0;
}

.wisestock-tooltip-section h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.wisestock-tooltip-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wisestock-tooltip-list li {
    margin-bottom: 6px;
    padding: 0;
    font-size: 13px;
    color: #555;
}

.wisestock-tooltip-list li:last-child {
    margin-bottom: 0;
}

/* Tooltip positioning */
.wisestock-help-icon[data-tooltip]:hover::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: #e0e0e0;
    margin-top: -1px;
}

.wisestock-help-icon[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-bottom-color: white;
    margin-top: 0;
}

/* ==========================================================================
   Auto-save Status Indicator
   ========================================================================== */

.wisestock-autosave-indicator {
    position: fixed;
    top: 37px;
    right: 5px;
    z-index: 999999;
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 8px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
}

.wisestock-autosave-indicator.show {
    opacity: 1;
    transform: translateY(0);
}

.wisestock-autosave-indicator.saving {
    color: #007cba;
    border-color: #007cba;
}

.wisestock-autosave-indicator.saved {
    color: #00a32a;
    border-color: #00a32a;
}

.wisestock-autosave-indicator.error {
    color: #d63638;
    border-color: #d63638;
}

.wisestock-autosave-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
}

.wisestock-autosave-indicator.saving .wisestock-autosave-icon {
    animation: wisestock-spin 1s linear infinite;
}

.wisestock-autosave-indicator.saving .wisestock-autosave-icon::before {
    content: '\f463';
    font-family: dashicons;
    font-size: 20px;
    line-height: 1;
}

.wisestock-autosave-indicator.saved .wisestock-autosave-icon::before {
    content: '\f147';
    font-family: dashicons;
    font-size: 20px;
    line-height: 1;
}

.wisestock-autosave-indicator.error .wisestock-autosave-icon::before {
    content: '\f534';
    font-family: dashicons;
    font-size: 20px;
    line-height: 1;
}

@keyframes wisestock-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   Form Validation Styles
   ========================================================================== */

.wisestock-validation-error {
    color: #d63638;
    font-size: 14px;
    margin-top: 5px;
    padding: 8px 12px;
    background: #fcf0f1;
    border: 1px solid #f1aeb5;
    border-radius: 4px;
    display: none;
}

.wisestock-form-input.error {
    border-color: #d63638;
    box-shadow: 0 0 0 1px #d63638;
}

.wisestock-form-input.error:focus {
    border-color: #d63638;
    box-shadow: 0 0 0 1px #d63638;
}

.wisestock-form-group.error .wisestock-validation-error {
    display: block;
}

.wisestock-form-group.error .wisestock-form-input {
    border-color: #d63638;
    box-shadow: 0 0 0 1px #d63638;
}

.wisestock-form-group.error .wisestock-form-input:focus {
    border-color: #d63638;
    box-shadow: 0 0 0 1px #d63638;
}


/* Textarea validation styling */
.wisestock-form-textarea.error {
    border-color: #d63638;
    box-shadow: 0 0 0 1px #d63638;
}

.wisestock-form-textarea.error:focus {
    border-color: #d63638;
    box-shadow: 0 0 0 1px #d63638;
}

.wisestock-form-group.error .wisestock-form-textarea {
    border-color: #d63638;
    box-shadow: 0 0 0 1px #d63638;
}

.wisestock-form-group.error .wisestock-form-textarea:focus {
    border-color: #d63638;
    box-shadow: 0 0 0 1px #d63638;
}

/* ==========================================================================
   Checkbox Group Styles
   ========================================================================== */

.wisestock-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.wisestock-checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    background: #fff;
    transition: all 0.2s ease;
    cursor: pointer;
}

.wisestock-checkbox-item:hover {
    border-color: #007cba;
    background: #f8f9fa;
}

.wisestock-checkbox-item input[type="checkbox"] {
    margin: 0;
    margin-top: 2px;
    flex-shrink: 0;
}

.wisestock-checkbox-item input[type="checkbox"]:checked + .wisestock-checkbox-label {
    color: #007cba;
}

.wisestock-checkbox-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-weight: 500;
    color: #1d2327;
    transition: color 0.2s ease;
}

.wisestock-checkbox-description {
    font-size: 0.9em;
    font-weight: 400;
    color: #646970;
    line-height: 1.4;
}
