/*!
 * Smart Autocomplete Woo Orders – Import & Export Styles
 * Description: Frontend styles for the Import & Export section
 * Author: Bytes Technolab
 * License: GPLv2 or later
 */

/* ==========================================================================
   TABLE OF CONTENTS
   ==========================================================================
   1. Layout Grid
   2. Card Design & Animation
   3. Card Header
   4. Card Content
   5. Export Info List
   6. File Upload Area
   7. File Info Display
   8. Buttons (Export, Import, Cancel)
   9. Import/Export Messages
   10. Loading Spinner
   11. Import/Export Settings
   12. Responsive
========================================================================== */

/* ==========================================================================
   1. Layout Grid
========================================================================== */

.smart-import-export-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
  }
  
  /* ==========================================================================
     2. Card Design & Animation
  ========================================================================== */
  
  .smart-import-export-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  }
  
  .smart-import-export-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
  }
  
  .smart-import-export-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  }
  
  /* ==========================================================================
     3. Card Header
  ========================================================================== */
  
  .smart-card-header {
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
  }
  
  .smart-card-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 2rem;
    right: 2rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
  }
  
  .smart-header-content {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
  }
  
  /* Card Icons */
  .smart-card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 24px;
    color: #fff;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
  }
  
  .smart-card-icon .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
  }
  
  .smart-export-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3);
  }
  
  .smart-import-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
  }
  
  /* Title & Description */
  .smart-card-title h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.025em;
  }
  
  .smart-card-title p {
    margin: 0;
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
  }
  
  /* ==========================================================================
     4. Card Content
  ========================================================================== */
  
  .smart-card-content {
    padding: 2rem;
  }
  
  /* ==========================================================================
     5. Export Info List
  ========================================================================== */
  
  .smart-export-info {
    margin-bottom: 2rem;
  }
  
  .smart-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(16, 185, 129, 0.05);
    border-radius: 12px;
    border-left: 4px solid #10b981;
  }
  
  .smart-info-item .dashicons {
    font-size: 16px;
    color: #10b981;
    width: 20px;
    height: 16px;
  }
  
  .smart-info-item span:last-child {
    font-size: 0.95rem;
    color: #374151;
    font-weight: 500;
  }
  
  /* ==========================================================================
     6. File Upload Area
  ========================================================================== */
  
  .smart-file-upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
  }
  
  .smart-file-upload-area::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      135deg,
      rgba(59, 130, 246, 0.05) 0%,
      rgba(29, 78, 216, 0.05) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .smart-file-upload-area:hover::before {
    opacity: 1;
  }
  
  .smart-file-upload-area:hover {
    border-color: #3b82f6;
    transform: scale(1.02);
  }
  
  .smart-file-upload-area.dragover {
    border-color: #1d4ed8;
    background: linear-gradient(
      135deg,
      rgba(59, 130, 246, 0.1) 0%,
      rgba(29, 78, 216, 0.1) 100%
    );
    transform: scale(1.05);
  }
  
  .smart-upload-icon {
    margin-bottom: 1.5rem;
  }
  
  .smart-upload-icon .dashicons {
    font-size: 48px;
    color: #64748b;
    transition: all 0.3s ease;
    width: 48px;
    height: 48px;
  }
  
  .smart-file-upload-area:hover .smart-upload-icon .dashicons {
    color: #3b82f6;
    transform: scale(1.1);
  }
  
  .smart-upload-text h4 {
    margin: 0 0 0.5rem 0;
    color: #1e293b;
    font-weight: 600;
    font-size: 1.25rem;
  }
  
  .smart-upload-text p {
    margin: 0;
    font-size: 1rem;
    color: #64748b;
  }
  
  /* ==========================================================================
     7. File Info Display
  ========================================================================== */
  
  .smart-selected-file {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 1px solid #93c5fd;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    color: #1e40af;
    font-weight: 500;
  }
  
  .smart-selected-file .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
  }
  
  /* ==========================================================================
     8. Buttons (Export, Import, Cancel)
  ========================================================================== */
  
  .smart-import-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 72px;
  }
  
  .smart-button-export {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    height: 47.2px;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
  }
  
  .smart-button-export:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
  }
  
  .smart-button-import {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
  }
  
  .smart-button-import:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
  }
  
  /* ==========================================================================
     9. Import/Export Messages
  ========================================================================== */
  
  .smart-message {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 12px;
    margin-top: 1.5rem;
    font-size: 1rem;
    font-weight: 500;
  }
  
  .smart-message .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
  }
  
  .smart-message-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 1px solid #6ee7b7;
    color: #065f46;
  }
  
  .smart-message-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 1px solid #fca5a5;
    color: #991b1b;
  }
  
  .smart-message-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 1px solid #93c5fd;
    color: #1e40af;
  }
  
  /* ==========================================================================
     10. Loading Spinner
  ========================================================================== */
  
  .smart-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
  }
  
  .smart-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  
  .smart-spin {
    animation: smart-spin 1s linear infinite;
  }
  
  @keyframes smart-spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  
  /* ==========================================================================
     11. Import/Export Settings
  ========================================================================== */
  .smart-drag-over {
    border-color: #0073aa !important;
    background-color: #f0f8ff !important;
  }
  
  .smart-remove-file {
    background: none;
    border: none;
    color: #dc3232;
    cursor: pointer;
    padding: 2px;
    margin-left: auto;
  }
  
  .smart-remove-file:hover {
    color: #a00;
  }
  
  .smart-import-actions {
    margin-top: 20px;
  }
  
  .smart-notice {
    display: flex;
    align-items: center;
    padding: 12px;
    margin: 15px 0;
    border-left: 4px solid;
    background: #fff;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
  }
  
  .smart-notice-success {
    border-left-color: #46b450;
    background-color: #ecf7ed;
  }
  
  .smart-notice-error {
    border-left-color: #dc3232;
    background-color: #fbeaea;
  }
  
  .smart-notice-info {
    border-left-color: #00a0d2;
    background-color: #e5f5fa;
  }
  
  .smart-notice-icon {
    margin-right: 10px;
  }
  
  .smart-notice-content {
    flex: 1;
  }
  
  .smart-notice-dismiss {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    margin-left: 10px;
  }
  
  #smart-import-file {
    display: none;
  }
  #tab-import-export table tr th{
    display: none;
  }
  
  /* ==========================================================================
     12. Responsive Design
  ========================================================================== */
  
  @media (max-width: 768px) {
    .smart-import-export-wrapper {
      grid-template-columns: 1fr;
      gap: 1.5rem;
      padding: 1rem 0;
    }
  
    .smart-header-content {
      align-items: center;
    }
  
    .smart-card-header,
    .smart-card-content {
      padding: 1.5rem;
    }
  
    .smart-file-upload-area {
      padding: 2rem 1rem;
    }
  
    .smart-import-buttons {
      flex-direction: column;
    }
  
    .smart-button {
      justify-content: center;
    }
  
    .smart-header-content {
      flex-direction: column;
      text-align: center;
      gap: 1rem;
    }
  }
  
  