/* Fixon Product Verification Plugin Styles */

.fixon-verification-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #3A4032;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.fixon-verification-header {
    text-align: center;
    margin-bottom: 30px;
}.fixon-verification-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}


button {
  background-color: #7AC100;  /* Same green color */
  color: #fff;
  border: none;
  width: 220px;       /* Fix same width */
  height: 60px;       /* Fix same height */
  display: flex;      /* Flexbox for centering */
  justify-content: center; /* Horizontal center */
  align-items: center;     /* Vertical center */
  border-radius: 30px;     /* Rounded corners */
  cursor: pointer;
  font-size: 16px;
  margin: 5px;
  transition: 0.3s ease;
  box-sizing: border-box;
}

button:hover {
  opacity: 0.85;
}

.tab-button 
{
    background: none;
    border: none;
    padding: 15px 25px;
    font-size: 1.1em;
    color: #7f8c8d;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-bottom: 3px solid transparent;
    border-radius: 8px;
    width: 200px; /* ← FIXED WIDTH */
    text-align: center;
    font-weight: 600;
}
/* mobile ke liye */
@media (max-width: 600px) {
    .fixon-verification-tabs {
        flex-direction: column;
        align-items: center;
    }
    .fixon-verification-tabs .tab-button {
        width: 80%; /* mobile me buttons full-width */
    }
}


.fixon-verification-header h2 {
    color: #ffffff;
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 600;
}

.verification-description {
    color: #7f8c8d;
    font-size: 1.1em;
    line-height: 1.6;
    margin: 0;
}

/* Tabs */
.fixon-verification-tabs {
    display: flex;
    text-align: center;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #ecf0f1;
}

.tab-button {
    background: none;
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    color: #7f8c8d;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 3px solid transparent;
    border-radius: 8px; /* for hover background */
}

/* FIXED HOVER COLORS */
.tab-button:hover {
    color: #ffffff; /* text white */
    background-color: #2c3e50; /* default dark background */
}

/* Specific Hover Colors for Each Button */
.tab-button.scan-barcode:hover {
    background-color: #e74c3c; /* Red */
    color: #ffffff;
}

.tab-button.enter-code:hover {
    background-color: #27ae60; /* Green */
    color: #ffffff;
}

.tab-button.active {
    color: #ffffff;
    border-bottom-color:#000000;
    font-weight: 600;
}

.tab-button .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scanner Styles */
.scanner-container {
    text-align: center;
    padding: 20px;
}

.barcode-scanner {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 300px;
    margin: 0 auto 20px;
    border: 2px solid #e74c3c;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

#scanner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 601px) {
    .barcode-scanner {
        max-width: 100%;
        height: auto;
        min-height: 300px;
    }
    #scanner-video {
        width: 100%;
        height: auto;
    }
}

.scanner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.scanner-line {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #e74c3c;
    transform: translateY(-50%);
    animation: scannerPulse 2s infinite;
}

@keyframes scannerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.scanner-controls {
    margin-bottom: 15px;
}

.scanner-help {
    color: #7f8c8d;
    font-size: 0.9em;
    margin: 0;
}

/* Form Styles */
.verification-form {
    padding: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1em;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 1.1em;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-help {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 0.9em;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 50px;
}

.btn-primary {
    background: #e74c3c;
    color: white;
}

.btn-primary:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-secondary {
    background: #95a5a6;
    color: #000000;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-verify {
    width: 100%;
    position: relative;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Verification Results */
.verification-result {
    margin-top: 30px;
    padding: 25px;
    border-radius: 10px;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.verification-result.success {
    background: #d5f4e6;
    border: 2px solid #27ae60;
    color: #1e8449;
}

.verification-result.error {
    background: #fadbd8;
    border: 2px solid #e74c3c;
    color: #c0392b;
}

.verification-result.not-found {
    background: #fef9e7;
    border: 2px solid #f39c12;
    color: #d68910;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.result-icon {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.result-title {
    font-size: 1.3em;
    font-weight: 600;
    margin: 0;
}

.result-message {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Product Details */
.product-details {
    background: rgba(255, 255, 255, 0.5);
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
}

.product-details h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-weight: 600;
    color: #34495e;
    font-size: 0.9em;
    margin-bottom: 3px;
}

.detail-value {
    color: #2c3e50;
    font-size: 1.1em;
}

/* Admin Styles */
.fixon-admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-card h3 {
    font-size: 2.5em;
    color: #e74c3c;
    margin: 0 0 10px 0;
}

.stat-card p {
    color: #7f8c8d;
    margin: 0;
    font-weight: 600;
}

.import-instructions {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.import-instructions h2 {
    color: #2c3e50;
    margin-top: 0;
}

.import-instructions ul {
    margin-left: 20px;
}

.import-instructions li {
    margin-bottom: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fixon-verification-wrapper {
        margin: 10px;
        padding: 15px;
    }
    
    .fixon-verification-header h2 {
        font-size: 2em;
    }
    
    .fixon-verification-tabs {
        flex-direction: column;
    }
    
    .tab-button {
        justify-content: center;
        padding: 12px 20px;
    }
    
    .barcode-scanner {
        height: 250px;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .fixon-verification-header h2 {
        font-size: 1.8em;
    }
    
    .verification-description {
        font-size: 1em;
    }
    
    .barcode-scanner {
        height: 200px;
    }
}

/* Print Styles */
@media print {
    .fixon-verification-tabs,
    .scanner-container,
    .verification-form {
        display: none;
    }
    
    .verification-result {
        box-shadow: none;
        border: 2px solid #000;
    }
}