/* =====================================================
   IIC DATASET MANAGER
   Frontend Stylesheet
===================================================== */

/* Main Wrapper */
.iic-dataset-lookup {
    width: 100%;
    max-width: 900px;
    margin: 30px auto;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-sizing: border-box;
}

/* Dataset Heading */
.iic-dataset-lookup h3 {
    margin: 0 0 25px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    color: #111827;
}

/* Lookup Form */
.iic-lookup-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Form Group */
.iic-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Form Label */
.iic-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

/* Input Field */
.iic-form-group input[type="text"] {
    width: 100%;
    min-height: 48px;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    font-size: 15px;
    line-height: 1.5;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.iic-form-group input[type="text"]:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Search Button */
.iic-lookup-form button[type="submit"] {
    width: fit-content;
    min-height: 46px;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.iic-lookup-form button[type="submit"]:hover {
    background: #1d4ed8;
}

.iic-lookup-form button[type="submit"]:active {
    transform: translateY(1px);
}

/* Search Results */
.iic-search-results {
    margin-top: 30px;
}

/* Search Status */
.iic-search-status {
    margin: 0 0 15px;
    padding: 12px 15px;
    border-radius: 8px;
    background: #eff6ff;
    color: #1e40af;
    font-size: 14px;
    font-weight: 600;
}

/* Results Table Wrapper */
.iic-search-results {
    width: 100%;
}

/* Results Table */
.iic-results-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    background: #ffffff;
    font-size: 14px;
}

/* Table Header */
.iic-results-table thead th {
    padding: 14px 16px;
    background: #f3f4f6;
    color: #374151;
    font-weight: 700;
    text-align: left;
    border: 1px solid #e5e7eb;
}

/* Table Body */
.iic-results-table tbody td {
    padding: 13px 16px;
    color: #4b5563;
    border: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

/* Table Row Hover */
.iic-results-table tbody tr:hover {
    background: #f9fafb;
}

/* Error Message */
.iic-error {
    margin: 20px 0 0;
    padding: 14px 16px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 14px;
    line-height: 1.6;
}

/* No Results Message */
.iic-no-results {
    margin: 20px 0 0;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    color: #6b7280;
    font-size: 14px;
    text-align: center;
}

/* Tablet */
@media (max-width: 768px) {

    .iic-dataset-lookup {
        padding: 24px;
    }

    .iic-dataset-lookup h3 {
        font-size: 22px;
    }

    .iic-results-table {
        min-width: 600px;
    }

}

/* Mobile */
@media (max-width: 480px) {

    .iic-dataset-lookup {
        margin: 20px auto;
        padding: 18px;
        border-radius: 8px;
    }

    .iic-dataset-lookup h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .iic-lookup-form button[type="submit"] {
        width: 100%;
    }

    .iic-results-table {
        font-size: 13px;
    }

    .iic-results-table thead th,
    .iic-results-table tbody td {
        padding: 11px 12px;
    }

}



/* =====================================================
   IIC WOOCOMMERCE DISTRIBUTOR VERIFICATION
===================================================== */

/* Main Wrapper */
.iic-distributor-field {
    width: 100%;
    max-width: 480px;
    margin: 25px 0;
    padding: 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-sizing: border-box;
}

/* Label */
.iic-distributor-field label {
    display: block;
    margin-bottom: 10px;
    color: #111827;
    font-size: 15px;
    font-weight: 600;
}

/* Input */
.iic-distributor-field input[type="text"] {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.iic-distributor-field input[type="text"]:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Check ID Button */
.iic-distributor-field #iic_check_distributor {
    display: inline-block;
    min-height: 44px;
    margin-top: 12px;
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.iic-distributor-field #iic_check_distributor:hover {
    background: #1d4ed8;
}

.iic-distributor-field #iic_check_distributor:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Result Container */
#iic_distributor_result {
    margin-top: 15px;
    font-size: 14px;
    line-height: 1.6;
}

/* Success Result */
#iic_distributor_result.iic-success {
    padding: 14px 16px;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    background: #f0fdf4;
    color: #166534;
}

/* Error Result */
#iic_distributor_result.iic-error {
    padding: 14px 16px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fef2f2;
    color: #b91c1c;
}

/* Mobile */
@media (max-width: 480px) {
    .iic-distributor-field {
        max-width: 100%;
        padding: 16px;
    }

    .iic-distributor-field #iic_check_distributor {
        width: 100%;
    }
}
