/**
 * ECIP NFC Scanner - Dedicated Styles
 *
 * @package ECIP_Core
 */

/* Scanner Container */
#ecip-nfc-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Scan Button */
#ecip-scan-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 200px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #15a34f 0%, #10893f 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(21,163,79, 0.3);
}

#ecip-scan-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #10893f 0%, #0b2a1b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21,163,79, 0.4);
}

#ecip-scan-btn:active:not(:disabled) {
    transform: translateY(0);
}

#ecip-scan-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-icon {
    font-size: 1.3em;
}

/* Status Messages */
#ecip-scan-status {
    margin: 20px 0;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

#ecip-scan-status:empty {
    display: none;
}

#ecip-scan-status.scanning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fbbf24;
}

#ecip-scan-status.scanning .scanning-indicator {
    display: inline-block;
    animation: spin 1s linear infinite;
}

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

#ecip-scan-status.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #34d399;
}

#ecip-scan-status.error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid #f87171;
}

/* Result Panel */
#ecip-scan-result {
    margin-top: 25px;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.result-title {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
}

.result-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.result-table tr {
    background: #f8fafc;
}

.result-table td {
    padding: 12px 15px;
}

.result-table tr td:first-child {
    border-radius: 8px 0 0 8px;
    font-weight: 600;
    color: #64748b;
    width: 35%;
}

.result-table tr td:last-child {
    border-radius: 0 8px 8px 0;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    color: #1e293b;
}

/* Use Result Button */
#ecip-use-result {
    width: 100%;
    margin-top: 20px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #15a34f 0%, #10893f 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#ecip-use-result:hover {
    background: linear-gradient(135deg, #10893f 0%, #0b2a1b 100%);
}

/* Copyable Status Badges */
.copyable-yes {
    color: #059669;
    font-weight: 600;
}

.copyable-no {
    color: #dc2626;
    font-weight: 600;
}

.copyable-unknown {
    color: #d97706;
    font-weight: 600;
}

/* Unsupported Message */
.ecip-nfc-unsupported {
    padding: 30px;
    text-align: center;
    background: #fef2f2;
    border-radius: 12px;
    border: 1px solid #fecaca;
}

.ecip-nfc-unsupported .unsupported-message {
    font-size: 17px;
    font-weight: 600;
    color: #dc2626;
    margin-bottom: 10px;
}

.ecip-nfc-unsupported .unsupported-hint {
    font-size: 14px;
    color: #991b1b;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 480px) {
    #ecip-scan-btn {
        width: 100%;
        min-width: unset;
    }

    .result-table tr td:first-child {
        width: 40%;
    }

    #ecip-scan-result {
        padding: 15px;
    }
}
