/* DPS License Server – Inline Form Styles */

/* ── Trigger button ── */
.dpsl-inline-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: #1d3557;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    cursor: pointer;
    transition: background .18s, transform .12s, box-shadow .18s;
    box-shadow: 0 3px 12px rgba(29,53,87,.3);
    text-decoration: none;
}
.dpsl-inline-trigger:hover {
    background: #2a4a73;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(29,53,87,.4);
}
.dpsl-inline-trigger svg { flex-shrink: 0; }

/* ── Wrap ── */
.dpsl-inline-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    color: inherit;
    line-height: 1.5;
}

/* ── Inline form ── */
.dpsl-inline-form {
    margin-top: 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
    max-width: 440px;
}

.dpsl-if-title {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 600;
    color: #1d3557;
}

.dpsl-if-field {
    margin-bottom: 14px;
}
.dpsl-if-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}
.dpsl-if-field select,
.dpsl-if-field input[type="url"] {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 7px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: #111;
    outline: none;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none;
}
.dpsl-if-field select:focus,
.dpsl-if-field input:focus {
    border-color: #1d3557;
    box-shadow: 0 0 0 3px rgba(29,53,87,.1);
}
.dpsl-if-error {
    font-size: 12px;
    color: #dc2626;
    margin: 5px 0 0;
}

.dpsl-if-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}
.dpsl-if-submit {
    flex: 1;
    padding: 10px;
    background: #1d3557;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.dpsl-if-submit:hover { background: #2a4a73; }
.dpsl-if-submit:disabled { background: #9ca3af; cursor: default; }
.dpsl-if-cancel {
    padding: 10px 16px;
    background: #f3f4f6;
    color: #6b7280;
    border: 1.5px solid #e5e7eb;
    border-radius: 7px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
}
.dpsl-if-cancel:hover { background: #e5e7eb; }
.dpsl-if-note {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    margin: 10px 0 0;
}

/* Spinner */
.dpsl-spin {
    display: inline-block;
    width: 13px; height: 13px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: dpsl-spin .6s linear infinite;
}
@keyframes dpsl-spin { to { transform: rotate(360deg); } }

/* ── Result ── */
.dpsl-inline-result {
    margin-top: 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
    max-width: 440px;
}
.dpsl-if-result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.dpsl-if-result-icon { font-size: 24px; }
.dpsl-if-result-header strong { font-size: 16px; color: #1d3557; }
.dpsl-if-result-note {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 12px;
}
.dpsl-if-code-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 2px dashed #94a3b8;
    border-radius: 8px;
    padding: 12px 14px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.dpsl-if-code-box:hover { background: #f0f9ff; border-color: #60a5fa; }
.dpsl-if-code {
    font-family: 'Courier New', monospace;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #1d3557;
    word-break: break-all;
    flex: 1;
}
.dpsl-if-copy {
    flex-shrink: 0;
    padding: 5px 12px;
    background: #1d3557;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
}
.dpsl-if-copy:hover { background: #2a4a73; }
.dpsl-if-expires {
    font-size: 12px;
    color: #9ca3af;
    margin: 8px 0 0;
    text-align: center;
}
.dpsl-if-new {
    display: block;
    margin-top: 12px;
    background: none;
    border: none;
    color: #6b7280;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    text-decoration: underline;
}
.dpsl-if-new:hover { color: #374151; }
