/*
 * TechOnMart-HVSC — Stylesheet v1.1
 * EVERY rule is prefixed with #techonmart-hvsc-wrapper
 * to guarantee zero conflict with any WordPress theme or plugin.
 */

/* ═══════════════════════════════════════════════════════════════════════════
   SCOPED RESET
═══════════════════════════════════════════════════════════════════════════ */
#techonmart-hvsc-wrapper,
#techonmart-hvsc-wrapper *,
#techonmart-hvsc-wrapper *::before,
#techonmart-hvsc-wrapper *::after {
    box-sizing: border-box;
}

#techonmart-hvsc-wrapper h2,
#techonmart-hvsc-wrapper h3,
#techonmart-hvsc-wrapper p,
#techonmart-hvsc-wrapper ul,
#techonmart-hvsc-wrapper li,
#techonmart-hvsc-wrapper span,
#techonmart-hvsc-wrapper div,
#techonmart-hvsc-wrapper footer,
#techonmart-hvsc-wrapper button,
#techonmart-hvsc-wrapper input,
#techonmart-hvsc-wrapper label,
#techonmart-hvsc-wrapper a {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: inherit;
    font-family: inherit;
    line-height: inherit;
    color: inherit;
    background: transparent;
    text-decoration: none;
    list-style: none;
    vertical-align: baseline;
}

/* ═══════════════════════════════════════════════════════════════════════════
   WRAPPER
═══════════════════════════════════════════════════════════════════════════ */
#techonmart-hvsc-wrapper {
    font-family: "Segoe UI", "Arabic Typesetting", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #222222;
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CARD
═══════════════════════════════════════════════════════════════════════════ */
#techonmart-hvsc-wrapper #techonmart-hvsc-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.10);
    max-width: 780px;
    margin: 32px auto;
    padding: 40px 44px;
    animation: hvsc-fadein 0.4s ease both;
}

@keyframes hvsc-fadein {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0);    }
}

@keyframes hvsc-float {
    0%, 100% { transform: translateY(0);    }
    50%       { transform: translateY(-8px); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════════════════════════ */
#techonmart-hvsc-wrapper .hvsc-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 24px;
    margin-bottom: 28px;
    border-bottom: 2px solid #1e3c72;
    gap: 12px;
}

#techonmart-hvsc-wrapper .hvsc-logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

#techonmart-hvsc-wrapper .hvsc-icon {
    font-size: 50px;
    display: block;
    line-height: 1;
    animation: hvsc-float 3s ease-in-out infinite;
}

#techonmart-hvsc-wrapper .hvsc-titles {
    text-align: right;
}

#techonmart-hvsc-wrapper .hvsc-title {
    color: #1e3c72;
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin: 0 0 4px !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

#techonmart-hvsc-wrapper .hvsc-subtitle {
    color: #666666;
    font-size: 13px !important;
    font-weight: 400 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.5 !important;
}

#techonmart-hvsc-wrapper .hvsc-badge {
    display: inline-block;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 16px;
    border-radius: 30px;
    letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════════════════════════════
   INFO BOX
═══════════════════════════════════════════════════════════════════════════ */
#techonmart-hvsc-wrapper .hvsc-info-box {
    background: #ebf4ff;
    border-right: 4px solid #2a5298;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #1e3c72;
}

#techonmart-hvsc-wrapper .hvsc-info-box strong {
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

#techonmart-hvsc-wrapper .hvsc-info-box p {
    margin: 4px 0 0 !important;
    padding: 0 !important;
    color: #1e3c72 !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FEATURES LIST
═══════════════════════════════════════════════════════════════════════════ */
#techonmart-hvsc-wrapper .hvsc-features {
    list-style: none !important;
    background: #f8fbff;
    border: 1px solid #d4e8f7;
    border-radius: 10px;
    padding: 16px 20px !important;
    margin: 0 0 24px !important;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
}

#techonmart-hvsc-wrapper .hvsc-features li {
    font-size: 13px !important;
    color: #333333 !important;
    padding: 0 22px 0 0 !important;
    margin: 0 !important;
    position: relative;
    line-height: 1.5 !important;
    list-style: none !important;
}

#techonmart-hvsc-wrapper .hvsc-features li::before {
    content: "✓";
    position: absolute;
    right: 0;
    top: 0;
    color: #27ae60;
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════════════════
   NOTICES  (library status, detection info)
═══════════════════════════════════════════════════════════════════════════ */
#techonmart-hvsc-wrapper .hvsc-notice {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 18px;
    animation: hvsc-fadein 0.25s ease both;
    line-height: 1.5;
}

#techonmart-hvsc-wrapper .hvsc-notice--success {
    background: #e8f5e9;
    border-right: 4px solid #4caf50;
    color: #2e7d32;
}

#techonmart-hvsc-wrapper .hvsc-notice--error {
    background: #ffebee;
    border-right: 4px solid #f44336;
    color: #c62828;
}

#techonmart-hvsc-wrapper .hvsc-notice--info {
    background: #e3f2fd;
    border-right: 4px solid #2196f3;
    color: #1565c0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION WRAPPER
═══════════════════════════════════════════════════════════════════════════ */
#techonmart-hvsc-wrapper .hvsc-section {
    margin: 0 0 22px !important;
    padding: 0 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LABELS
═══════════════════════════════════════════════════════════════════════════ */
#techonmart-hvsc-wrapper .hvsc-label {
    display: block !important;
    color: #1e3c72 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    background: none !important;
    cursor: default;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DROPZONE
═══════════════════════════════════════════════════════════════════════════ */
#techonmart-hvsc-wrapper .hvsc-dropzone {
    border: 2px dashed #2a5298;
    border-radius: 12px;
    padding: 36px 20px;
    text-align: center;
    cursor: pointer;
    background: linear-gradient(145deg, #f8fbff, #e8f2ff);
    transition: border-color 0.25s, background 0.25s, transform 0.2s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
}

#techonmart-hvsc-wrapper .hvsc-dropzone:hover,
#techonmart-hvsc-wrapper .hvsc-dropzone:focus-visible {
    border-color: #1e3c72;
    background: linear-gradient(145deg, #e8f2ff, #d4e8f7);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 60, 114, 0.13);
    outline: none;
}

#techonmart-hvsc-wrapper .hvsc-dropzone.is-over {
    border-color: #1e3c72;
    background: linear-gradient(145deg, #d4e8f7, #c0d9f0);
    transform: scale(1.01);
}

#techonmart-hvsc-wrapper .hvsc-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

#techonmart-hvsc-wrapper .hvsc-dropzone-icon {
    font-size: 38px;
    display: block;
    margin: 0 0 10px;
    line-height: 1;
}

#techonmart-hvsc-wrapper .hvsc-dropzone-text {
    color: #2a5298 !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    margin: 0 0 4px !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

#techonmart-hvsc-wrapper .hvsc-dropzone-hint {
    color: #999999 !important;
    font-size: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FILE INFO STRIP
═══════════════════════════════════════════════════════════════════════════ */
#techonmart-hvsc-wrapper .hvsc-file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0 0 !important;
    padding: 12px 16px !important;
    background: #e8f5e9;
    border-right: 4px solid #4caf50;
    border-radius: 8px;
    animation: hvsc-fadein 0.25s ease both;
}

#techonmart-hvsc-wrapper .hvsc-file-info__name {
    color: #2e7d32 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    flex: 1;
    word-break: break-all;
    line-height: 1.4 !important;
}

#techonmart-hvsc-wrapper .hvsc-file-info__size {
    color: #666666 !important;
    font-size: 12px !important;
    white-space: nowrap;
    line-height: 1.4 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TEXT INPUT
═══════════════════════════════════════════════════════════════════════════ */
#techonmart-hvsc-wrapper .hvsc-input {
    display: block;
    width: 100%;
    padding: 11px 14px !important;
    border: 1.5px solid #cde0f5 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-family: "Courier New", Courier, monospace !important;
    background: #f8fbff !important;
    color: #222222 !important;
    line-height: 1.5 !important;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    direction: ltr;
    text-align: left;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}

#techonmart-hvsc-wrapper .hvsc-input:focus {
    outline: none !important;
    border-color: #2a5298 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.12) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PROGRESS BAR
═══════════════════════════════════════════════════════════════════════════ */
#techonmart-hvsc-wrapper .hvsc-progress {
    margin: 0 0 22px !important;
    padding: 0 !important;
    animation: hvsc-fadein 0.25s ease both;
}

#techonmart-hvsc-wrapper .hvsc-progress__track {
    height: 7px;
    background: #eef0f3;
    border-radius: 4px;
    overflow: hidden;
    margin: 0 0 8px !important;
    padding: 0 !important;
}

#techonmart-hvsc-wrapper .hvsc-progress__fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #1e3c72, #2a5298, #3d6bc4);
    border-radius: 4px;
    transition: width 0.35s ease;
}

#techonmart-hvsc-wrapper .hvsc-progress__text {
    font-size: 12px !important;
    color: #777777 !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.5 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESULT CARD
═══════════════════════════════════════════════════════════════════════════ */
#techonmart-hvsc-wrapper .hvsc-result {
    border-radius: 10px;
    padding: 20px 22px !important;
    margin: 0 0 22px !important;
    animation: hvsc-fadein 0.3s ease both;
}

#techonmart-hvsc-wrapper .hvsc-result.is-success {
    background: #e8f5e9;
    border-right: 4px solid #4caf50;
}

#techonmart-hvsc-wrapper .hvsc-result.is-error {
    background: #ffebee;
    border-right: 4px solid #f44336;
}

#techonmart-hvsc-wrapper .hvsc-result__title {
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4 !important;
}

#techonmart-hvsc-wrapper .hvsc-result.is-success .hvsc-result__title {
    color: #2e7d32 !important;
}

#techonmart-hvsc-wrapper .hvsc-result.is-error .hvsc-result__title {
    color: #c62828 !important;
}

#techonmart-hvsc-wrapper .hvsc-result__body {
    font-size: 13px !important;
    color: #333333 !important;
    line-height: 1.7 !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
}

#techonmart-hvsc-wrapper .hvsc-result__body strong {
    color: #1e3c72 !important;
    font-weight: 600 !important;
}

#techonmart-hvsc-wrapper .hvsc-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 14px 0 0 !important;
    padding: 0 !important;
}

#techonmart-hvsc-wrapper .hvsc-stat {
    background: #ffffff;
    border: 1px solid #dde8f5;
    border-radius: 10px;
    padding: 14px !important;
    text-align: center;
}

#techonmart-hvsc-wrapper .hvsc-stat__value {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #2a5298 !important;
    line-height: 1.2 !important;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
}

#techonmart-hvsc-wrapper .hvsc-stat__label {
    font-size: 12px !important;
    color: #888888 !important;
    margin: 4px 0 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    display: block;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ACTION BUTTONS
═══════════════════════════════════════════════════════════════════════════ */
#techonmart-hvsc-wrapper .hvsc-actions {
    display: flex;
    gap: 12px;
    margin: 10px 0 28px !important;
    padding: 0 !important;
}

#techonmart-hvsc-wrapper .hvsc-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    line-height: 1.2 !important;
    border-radius: 10px !important;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s, background 0.2s;
    text-decoration: none !important;
    text-align: center;
    white-space: nowrap;
}

#techonmart-hvsc-wrapper .hvsc-btn--primary {
    background: linear-gradient(135deg, #1e3c72, #2a5298) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(42, 82, 152, 0.30);
}

#techonmart-hvsc-wrapper .hvsc-btn--primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 7px 22px rgba(42, 82, 152, 0.40);
    background: linear-gradient(135deg, #1a3464, #235090) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

#techonmart-hvsc-wrapper .hvsc-btn--primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

#techonmart-hvsc-wrapper .hvsc-btn--secondary {
    background: #f1f3f5 !important;
    color: #333333 !important;
    border: 1.5px solid #dde3ea !important;
    box-shadow: none;
}

#techonmart-hvsc-wrapper .hvsc-btn--secondary:hover {
    background: #e4e8ed !important;
    color: #333333 !important;
    text-decoration: none !important;
    transform: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════════════════ */
#techonmart-hvsc-wrapper .hvsc-footer {
    border-top: 1px solid #eaecef;
    padding: 20px 0 0 !important;
    margin: 0 !important;
    text-align: center;
    font-size: 12px !important;
    color: #aaaaaa !important;
    line-height: 1.9 !important;
}

#techonmart-hvsc-wrapper .hvsc-footer p {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    color: #aaaaaa !important;
    line-height: 1.9 !important;
}

#techonmart-hvsc-wrapper .hvsc-footer strong {
    color: #555555 !important;
    font-weight: 600 !important;
}

#techonmart-hvsc-wrapper .hvsc-footer a {
    color: #2a5298 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

#techonmart-hvsc-wrapper .hvsc-footer a:hover {
    text-decoration: underline !important;
    color: #1e3c72 !important;
}

#techonmart-hvsc-wrapper .hvsc-footer__copy {
    margin-top: 4px !important;
    font-size: 11px !important;
    color: #bbbbbb !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    #techonmart-hvsc-wrapper #techonmart-hvsc-container {
        padding: 24px 18px;
        margin: 16px;
        border-radius: 12px;
    }

    #techonmart-hvsc-wrapper .hvsc-logo-row {
        flex-direction: column;
        gap: 10px;
    }

    #techonmart-hvsc-wrapper .hvsc-titles {
        text-align: center;
    }

    #techonmart-hvsc-wrapper .hvsc-title {
        font-size: 20px !important;
    }

    #techonmart-hvsc-wrapper .hvsc-features {
        grid-template-columns: 1fr;
    }

    #techonmart-hvsc-wrapper .hvsc-actions {
        flex-direction: column;
    }

    #techonmart-hvsc-wrapper .hvsc-btn {
        width: 100%;
    }

    #techonmart-hvsc-wrapper .hvsc-stats {
        grid-template-columns: 1fr;
    }
}
