/* Plugin Styles - Scoped to .tcpn-plugin-wrapper */

.tcpn-plugin-wrapper {
    font-family: 'Segoe UI', Roboto, sans-serif;
    max-width: 600px;
    margin: 20px auto;
}

.tcpn-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.tcpn-title {
    text-align: center;
    color: #1e293b;
    font-weight: 800;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.tcpn-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tcpn-input-group {
    position: relative;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    transition: .2s;
}

.tcpn-input-group:focus-within {
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.tcpn-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
}

.tcpn-input {
    width: 100%;
    padding: 12px 12px 12px 55px !important;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
    text-transform: uppercase;
    outline: none;
}

select.tcpn-input {
    cursor: pointer;
}

.tcpn-btn {
    background: #3b82f6;
    color: #fff;
    font-weight: 700;
    padding: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: .2s;
}

.tcpn-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.tcpn-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Loader */
.tcpn-loader {
    text-align: center;
    margin-top: 20px;
    color: #64748b;
}

.tcpn-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    margin: 0 auto 10px;
    animation: tcpnSpin 0.8s linear infinite;
}

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

.hidden {
    display: none;
}

/* Result Area */
.tcpn-result-area {
    margin-top: 20px;
}

.tcpn-result-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    animation: tcpnFadeIn 0.3s ease;
}

@keyframes tcpnFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tcpn-res-header {
    background: #f1f5f9;
    padding: 15px 20px;
    font-weight: 700;
    color: #0f172a;
    border-bottom: 1px solid #e2e8f0;
}

.tcpn-res-body {
    padding: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #334155;
}

.tcpn-res-body table {
    width: 100%;
    border-collapse: collapse;
}

.tcpn-res-body td {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.tcpn-res-body td:first-child {
    font-weight: 600;
    width: 35%;
    color: #64748b;
}

.tcpn-alert {
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.tcpn-alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.tcpn-alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    text-align: center;
}

.tcpn-highlight {
    color: #dc2626;
    font-weight: 600;
}

.tcpn-label {
    font-weight: 700;
}