/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */


.veridian-order-import-wrapper {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.veridian-import-container h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 28px;
    border-bottom: 3px solid #008080;
    padding-bottom: 10px;
}

.veridian-import-instructions {
    background: #f8f9fa;
    padding: 20px;
    border-left: 4px solid #008080;
    margin-bottom: 30px;
    border-radius: 4px;
}

.veridian-import-instructions h3 {
    color: #008080;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

.veridian-import-instructions ul {
    margin: 0;
    padding-left: 20px;
}

.veridian-import-instructions li {
    margin-bottom: 8px;
    color: #555;
    line-height: 1.6;
}

#veridian-import-messages {
    margin-bottom: 20px;
}

.veridian-message {
    padding: 5px 1px !important;
    border-radius: 4px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.veridian-message-success {


    color: #155724;
}

.veridian-message-error {


    color: #721c24;
}

.veridian-message-warning {

    background: #f26d6d1c !important;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #e74c3c !important;
    color: #856404;
}

.veridian-form-group {
    margin-bottom: 25px;
}

.veridian-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}

.veridian-form-group .required {
    color: #e74c3c;
}

.veridian-form-group input[type="file"] {
    display: block;
    width: 100%;
    padding: 12px;
    border: 2px solid #008080;
    border-radius: 4px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.veridian-form-group input[type="file"]:hover {
    border-color: #138496;
    background: #e9ecef;
}

.veridian-form-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.veridian-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.veridian-btn-primary {
    background: #008080;
    color: #fff;
}

.veridian-btn-primary:hover {
    background: #17a2b8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.veridian-btn-success {
    background: #28a745;
    color: #fff;
}

.veridian-btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.veridian-btn-secondary {
    background: #6c757d;
    color: #fff;
}

.veridian-btn-secondary:hover {
    background: #5a6268;
}

.veridian-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.veridian-loader {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #008080;
    font-weight: 600;
}

.veridian-loader .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(23, 162, 184, 0.3);
    border-top-color: #008080;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

#veridian-validation-results,
#veridian-import-preview {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

#veridian-validation-results h3,
#veridian-import-preview h3 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
}


.veridian-error-list {
    background: #f26d6d1c !important;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #e74c3c !important;
}

.veridian-error-list ul {
    margin: 0;
    padding-left: 20px;
}

.veridian-error-list li {
    color: #721c24;
    margin-bottom: 8px;
}

.veridian-preview-table {
    width: 100%;
    background: #fff;
    border-collapse: collapse;
    margin-top: 15px;
    border-radius: 4px;
    overflow: hidden;
}

.veridian-preview-table th,
.veridian-preview-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.veridian-preview-table th {
    background: #008080;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
}

.veridian-preview-table tbody tr:hover {
    background: #f1f3f5;
}

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

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

.veridian-stat-box {
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #008080;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.veridian-stat-box .stat-label {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 5px;
}

.veridian-stat-box .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

/* Responsive Design */
@media (max-width: 768px) {
    .veridian-order-import-wrapper {
        margin: 15px;
        padding: 15px;
    }

    .veridian-import-container h2 {
        font-size: 24px;
    }

    .veridian-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .veridian-btn {
        width: 100%;
        text-align: center;
    }

    .veridian-preview-table {
        font-size: 14px;
    }

    .veridian-preview-table th,
    .veridian-preview-table td {
        padding: 8px;
    }
}


/**
 * File: public/css/veridian-order-import-public.css
 */

/* Import History Table */
.veridian-import-history {
    margin-top: 40px;
}

.veridian-import-history h3 {
    margin-bottom: 20px;
    font-size: 1.5em;
}

.veridian-import-history .status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 0.9em;
    font-weight: bold;
}

.veridian-import-history .status-pending {
    background-color: #f0f0f1;
    color: #50575e;
}

.veridian-import-history .status-validated {
    background-color: #00a0d2;
    color: #fff;
}

.veridian-import-history .status-processing {
    background-color: #ffb900;
    color: #fff;
}

.veridian-import-history .status-completed {
    background-color: #46b450;
    color: #fff;
}

.veridian-import-history .status-failed {
    background-color: #f36161;
    color: #fff;
}

.veridian-import-history .failed {
    color: #f36161;
    font-weight: bold;
}

.veridian-import-history .button {
    margin-right: 5px;
}

.veridian-import-history .process-import-btn {
    background-color: #46b450;
    color: #fff;
    border-color: #46b450;
}

.veridian-import-history .process-import-btn:hover {
    background-color: #3da043;
    border-color: #3da043;
}

.veridian-import-history .delete-import-btn {
    background-color: #f36161;
    color: #fff;
    border-color: #f36161;
}

.veridian-import-history .delete-import-btn:hover {
    background-color: #c12d2d;
    border-color: #c12d2d;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .veridian-import-history .button {
        display: block;
        width: 100%;
        margin-bottom: 5px;
    }
}


.actions-cell {
    white-space: nowrap;
}



.woocommerce table.shop_table td {

    padding: 9px 5px !important;

}

/* .process-import-btn {
    background: #f093de63 !important;
    color: #fff !important;
    border: none !important;
}

.process-import-btn:hover {
    background: #f093de63 !important;
} */

/* .delete-import-btn {
    background: #dc3545 !important;
    color: #fff !important;
    border: none !important;
}

.delete-import-btn:hover {
    background: #c82333 !important;
} */





/* CSV Template Download Section */
.veridian-template-download {
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
}

.veridian-info-box {
    background: #f7f7f7;
    border-left: 4px solid #008080;
    padding: 20px;
    border-radius: 4px;
}

.veridian-info-box h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #008080;
    font-size: 16px;
    font-weight: 600;
}

.veridian-info-box p {
    margin-bottom: 15px;
    color: #646970;
    font-size: 14px;
    line-height: 1.6;
}

/* Download Button Styling */
.veridian-btn-secondary {
    background-color: #008080;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px !important;
}

.veridian-btn-secondary:hover {
    background-color: #17a2b8;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.veridian-btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.veridian-btn-secondary .fa {
    font-size: 16px;
}


.veridian-btn-secondary .fa-download {
    font-size: 18px;

}

/* Form Help Text */
.veridian-help-text {
    display: block;
    margin-top: 8px;
    color: #646970;
    font-size: 13px;
    font-style: italic;
}

.veridian-form-group label .required {
    color: #d63638;
    font-weight: bold;
    margin-left: 2px;
}

/* Responsive Design */
@media screen and (max-width: 782px) {
    .veridian-info-box {
        padding: 15px;
    }

    .veridian-btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    .veridian-template-download {
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 500px) {
    .veridian-btn-secondary {
        margin-top: 10px !important;
    }
}

/* Accessibility */
.veridian-btn-secondary:focus {
    outline: 2px solid #008080;
    outline-offset: 2px;
}


/* Email Notification Toggle Section */
.veridian-email-toggle-section {

    padding: 20px;

}

.veridian-toggle-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}


.veridian-toggle-description {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.veridian-toggle-control {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Toggle Switch */
.veridian-toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.veridian-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.veridian-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.veridian-toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked+.veridian-toggle-slider {
    background-color: #008080;
}

input:focus+.veridian-toggle-slider {
    box-shadow: 0 0 1px #008080;
}

input:checked+.veridian-toggle-slider:before {
    transform: translateX(26px);
}

/* Toggle Label */
.veridian-toggle-label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

/* Toggle Message */
.veridian-toggle-message {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 13px;
}

.veridian-toggle-message.success {
    background: #d4edda;
    color: #155724;

}

.veridian-toggle-message.error {
    background: #f8d7da;
    color: #721c24;

}

/* Responsive */
@media (max-width: 768px) {
    .veridian-email-toggle-section {
        padding: 15px;
    }

    .veridian-toggle-control {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media screen and (max-width: 1024px) {

    .woocommerce table.shop_table {
        width: 100%;
        border: none;
        border-collapse: collapse;
        background: transparent;
    }

    .woocommerce table.shop_table thead {
        display: none;
    }

    .woocommerce table.shop_table tbody tr {
        display: block;
        background: #fff;
        border-radius: 10px;
        border: 1px solid #e5e5e5;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        margin-bottom: 20px;
        padding: 15px 18px;
    }

    .woocommerce table.shop_table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        border: none !important;
        padding: 10px 0 !important;
        font-size: 15px;
        line-height: 1.5;
        word-break: break-word;
    }

    .woocommerce table.shop_table tbody td::before {
        content: attr(data-title) ": ";
        flex: 1 1 45%;
        font-weight: 600;
        color: #008080;
        text-align: left;
        padding-right: 10px;
        white-space: nowrap;
    }

    /* Keep long text readable */
    .woocommerce table.shop_table td span,
    .woocommerce table.shop_table td button,
    .woocommerce table.shop_table td a {
        white-space: normal !important;
        word-wrap: break-word !important;
    }


    .actions-cell .button {
        display: inline-block;
        width: auto;
        padding: 6px 12px !important;
        border-radius: 6px;
        font-weight: bold;
        text-transform: capitalize;
        font-size: 14px !important;
        color: #fff !important;
        min-width: 90px;
        text-align: center;
    }

    .veridian-import-history .status-badge {
        display: inline-block;
        min-width: 90px;
        text-align: center;
        border-radius: 6px;
        padding: 6px 10px;
        font-size: 14px;
        margin-top: 4px;
    }

    .woocommerce table.shop_table tbody td:last-child {
        padding-bottom: 0 !important;
    }
}

@media screen and (max-width: 800px) {
    .woocommerce table.shop_table tbody tr {
        padding: 12px 12px;
    }

    .woocommerce table.shop_table tbody td {
        flex-direction: column;
        align-items: flex-start;
    }

    .woocommerce table.shop_table tbody td::before {
        margin-bottom: 3px;
    }

    .actions-cell .button {
        display: inline-block;
        width: auto;
        padding: 6px 12px !important;
        border-radius: 6px;
        font-weight: bold;
        text-transform: capitalize;
        font-size: 14px !important;
        color: #fff !important;
        min-width: 90px;
        text-align: center;
    }

    .actions-cell {
        white-space: normal !important;
    }

    .actions-cell>* {
        display: block;
        margin-bottom: 8px;
    }

    .actions-cell>*:last-child {
        margin-bottom: 0;
    }

    .actions-cell .notice-info {
        background: #e5f5fa;
        border-left: 4px solid #00a0d2;
        padding: 6px 5px;
        margin-bottom: 8px;
        font-size: 13px;
        font-weight: bold;
        color: #00566d;
        border-radius: 3px;
        text-align: center;
        line-height: 1.4;
        display: inline-block;
    }
}

.actions-cell {
    white-space: normal !important;
}

.actions-cell>* {
    display: block;
    margin-bottom: 8px;
}

.actions-cell>*:last-child {
    margin-bottom: 0;
}

.actions-cell .notice-info {
    background: #e5f5fa;
    border-left: 4px solid #00a0d2;
    padding: 6px 5px;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: bold;
    color: #00566d;
    border-radius: 3px;
    text-align: center;
    line-height: 1.4;
    display: inline-block;
}

.actions-cell .button {
    font-size: 13px;
    text-align: center;
    display: block;
    box-sizing: border-box;
}



/* Close Button for Error Messages */
.veridian-close-message {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    font-weight: 300;
}

.veridian-close-message:hover {
    color: #d63638;
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
}

.veridian-close-message:focus {
    outline: 2px solid #008080;
    outline-offset: 2px;
    border-radius: 50%;
}

/* For error messages */
.woocommerce-error .veridian-close-message {
    color: #d63638;
}

.woocommerce-error .veridian-close-message:hover {
    color: #a00;
    background: rgba(214, 54, 56, 0.1);
}

/* For success messages */
.woocommerce-message .veridian-close-message {
    color: #008000;
}

.woocommerce-message .veridian-close-message:hover {
    color: #006000;
    background: rgba(0, 128, 0, 0.1);
}

/* Message wrapper positioning */
.veridian-message-wrapper {
    position: relative;
    padding-right: 50px !important;
    /* Space for close button */
}

/* Ensure proper spacing in error/warning boxes */
.veridian-errors,
.veridian-warnings {
    padding-right: 10px;
}

/* Download error section with close button */
.veridian-error-download {
    position: relative;
    padding-right: 50px !important;
}

/* Responsive adjustments */
@media screen and (max-width: 600px) {
    .veridian-close-message {
        font-size: 24px;
        width: 26px;
        height: 26px;
        top: 8px;
        right: 8px;
    }

    .veridian-message-wrapper {
        padding-right: 40px !important;
    }
}



/* ============================================
   COMPACT ICON BUTTONS WITH TEXT LABELS
   ============================================ */

/* Wrapper for button + label */
.veridian-action-btn-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin: 0 8px;
    vertical-align: top;
}

/* Compact Icon Button */
.veridian-compact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0 !important;
    margin: 0 0 4px 0;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 15px;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.veridian-compact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.veridian-compact-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.veridian-compact-btn i {
    font-size: 15px;
    line-height: 1;
    margin: 0;
}

/* Text Label Below Button */
.veridian-btn-label {
    font-size: 11px;
    color: #666;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    margin-top: 2px;
}

/* Retry Button - Blue Theme */
.veridian-retry-btn {
    border-color: #0073aa;
    color: #0073aa;
    background: #f0f8ff;
}

.veridian-retry-btn:hover {
    background: #0073aa;
    color: #fff;
    border-color: #005a87;
}

.veridian-retry-btn:hover i {
    animation: spin 0.5s ease-in-out;
}

.veridian-action-btn-wrapper:has(.veridian-retry-btn:hover) .veridian-btn-label {
    color: #0073aa;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Delete Button - Red Theme */
.veridian-delete-btn {
    border-color: #dc3232;
    color: #dc3232;
    background: #fff5f5;
}

.veridian-delete-btn:hover {
    background: #dc3232;
    color: #fff;
    border-color: #a02020;
}

.veridian-action-btn-wrapper:has(.veridian-delete-btn:hover) .veridian-btn-label {
    color: #dc3232;
}

/* Actions Cell Alignment */
.actions-cell {
    white-space: nowrap;
    text-align: center;
    padding: 12px 8px !important;
}

.actions-cell .veridian-action-btn-wrapper:first-child {
    margin-left: 0;
}

.actions-cell .veridian-action-btn-wrapper:last-child {
    margin-right: 0;
}

/* Status badges spacing */
.actions-cell .notice-info,
.actions-cell .notice-warning {
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .veridian-compact-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .veridian-btn-label {
        font-size: 10px;
    }

    .veridian-action-btn-wrapper {
        margin: 0 6px;
    }
}

/* Ensure proper alignment in table */
.woocommerce-orders-table tbody tr td.actions-cell {
    vertical-align: middle;
}