/* pwgen-panel.css — HexaVault embedded password generator panel */

.hvpg-panel {
    display: none;
    background: var(--surface, #ffffff);
    border: 1px solid var(--border, #e0e2ea);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10), 0 1.5px 4px rgba(0, 0, 0, 0.06);
    width: 100%;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 13px;
    color: var(--text, #1a1d2e);
    overflow: hidden;
    box-sizing: border-box;
}

.hvpg-panel.hvpg-visible {
    display: block;
}

/* Header */
.hvpg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--border, #e0e2ea);
}

.hvpg-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted, #7c84a0);
}

.hvpg-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted, #7c84a0);
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    transition: color 0.15s, background 0.15s;
    line-height: 1;
}

.hvpg-close:hover {
    color: var(--text, #1a1d2e);
    background: var(--surface-2, #f0f1f4);
}

.hvpg-close svg {
    width: 15px;
    height: 15px;
}

/* Tab bar */
.hvpg-tabs {
    display: flex;
    border-bottom: 1px solid var(--border, #e0e2ea);
    background: var(--surface, #ffffff);
}

.hvpg-tab {
    flex: 1;
    padding: 9px 12px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--text-muted, #7c84a0);
    transition: color 0.15s, border-color 0.15s;
    margin-bottom: -1px;
    letter-spacing: 0.01em;
}

.hvpg-tab:hover {
    color: var(--text, #1a1d2e);
}

.hvpg-tab.hvpg-tab-active {
    color: #0099FF;
    border-bottom-color: #0099FF;
    font-weight: 600;
}

/* Output row */
.hvpg-output {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border, #e0e2ea);
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg, #f5f6f8);
    min-height: 52px;
}

.hvpg-password-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    color: #2563eb;
    flex: 1;
    word-break: break-all;
    line-height: 1.5;
    letter-spacing: 0.01em;
}

.hvpg-password-text.hvpg-placeholder {
    color: var(--text-muted, #7c84a0);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 12px;
    font-style: italic;
}

.hvpg-btn-icon {
    background: var(--surface, #ffffff);
    border: 1px solid var(--border, #e0e2ea);
    border-radius: 7px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted, #7c84a0);
    transition: all 0.15s;
    flex-shrink: 0;
}

.hvpg-btn-icon:hover {
    border-color: #0099FF;
    color: #0099FF;
    background: rgba(0, 153, 255, 0.08);
}

.hvpg-btn-icon svg {
    width: 14px;
    height: 14px;
}

/* Copy feedback */
.hvpg-copy-feedback {
    font-size: 10px;
    font-family: 'IBM Plex Mono', monospace;
    color: #62C467;
    opacity: 0;
    transition: opacity 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.hvpg-copy-feedback.hvpg-show {
    opacity: 1;
}

/* Options area */
.hvpg-options {
    padding: 12px 16px;
}

/* Type dropdown row */
.hvpg-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 12px;
}

.hvpg-row:last-child {
    margin-bottom: 0;
}

.hvpg-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text, #1a1d2e);
    flex-shrink: 0;
}

.hvpg-sublabel {
    font-size: 11px;
    color: var(--text-muted, #7c84a0);
    margin-top: 1px;
}

/* Select */
.hvpg-select {
    background: var(--surface, #ffffff);
    border: 1px solid var(--border, #e0e2ea);
    border-radius: 7px;
    color: var(--text, #1a1d2e);
    font-size: 12px;
    font-family: 'IBM Plex Sans', sans-serif;
    padding: 5px 8px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s;
    max-width: 180px;
}

.hvpg-select:hover,
.hvpg-select:focus {
    border-color: #0099FF;
}

/* Slider */
.hvpg-slider-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hvpg-slider-val {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    color: #0099FF;
    min-width: 22px;
    text-align: right;
}

.hvpg-slider {
    -webkit-appearance: none;
    width: 120px;
    height: 3px;
    border-radius: 2px;
    background: var(--border, #e0e2ea);
    outline: none;
    cursor: pointer;
}

.hvpg-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #0099FF;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #0099FF;
}

/* Toggle */
.hvpg-toggle {
    position: relative;
    width: 34px;
    height: 18px;
    flex-shrink: 0;
}

.hvpg-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.hvpg-toggle-track {
    position: absolute;
    inset: 0;
    background: var(--border, #e0e2ea);
    border-radius: 9px;
    cursor: pointer;
    transition: background 0.2s;
}

.hvpg-toggle-track::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    top: 3px;
    left: 3px;
    transition: transform 0.2s;
}

.hvpg-toggle input:checked+.hvpg-toggle-track {
    background: #0099FF;
}

.hvpg-toggle input:checked+.hvpg-toggle-track::after {
    transform: translateX(16px);
}

/* Stepper */
.hvpg-stepper {
    display: flex;
    align-items: center;
    border: 1px solid var(--border, #e0e2ea);
    border-radius: 7px;
    overflow: hidden;
}

.hvpg-stepper-btn {
    background: var(--surface, #ffffff);
    border: none;
    color: var(--text-muted, #7c84a0);
    width: 26px;
    height: 26px;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    line-height: 1;
}

.hvpg-stepper-btn:hover {
    color: #0099FF;
    background: rgba(0, 153, 255, 0.08);
}

.hvpg-stepper-val {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    color: var(--text, #1a1d2e);
    min-width: 24px;
    text-align: center;
    background: var(--surface, #ffffff);
    line-height: 26px;
}

/* Divider */
.hvpg-divider {
    height: 1px;
    background: var(--border, #e0e2ea);
    margin: 8px 0 10px;
}

/* Type-specific option panels */
.hvpg-type-options {
    display: none;
}

.hvpg-type-options.hvpg-active {
    display: block;
}

/* Footer: Generate + Use buttons */
.hvpg-footer {
    padding: 10px 16px 14px;
    display: flex;
    gap: 8px;
}

.hvpg-btn-generate {
    flex: 1;
    padding: 9px 12px;
    background: #62C467;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'IBM Plex Sans', sans-serif;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background 0.15s, transform 0.1s;
}

.hvpg-btn-generate:hover {
    background: #4db352;
}

.hvpg-btn-generate:active {
    transform: scale(0.98);
}

.hvpg-btn-use {
    flex: 1;
    padding: 9px 14px;
    background: #0099FF;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'IBM Plex Sans', sans-serif;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background 0.15s, transform 0.1s;
    white-space: nowrap;
}

.hvpg-btn-use:hover {
    background: #007acc;
}

.hvpg-btn-use:active {
    transform: scale(0.98);
}

.hvpg-btn-use:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

/* UUID note */
.hvpg-uuid-note {
    font-size: 11px;
    color: var(--text-muted, #7c84a0);
    margin-top: 6px;
    line-height: 1.5;
}

/* Password generator floating button + panel anchor */

.hvpg-fab-wrap {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 400px;
}

.hvpg-fab-panel {
    width: 100%;
}

.hvpg-fab {
    height: 44px;
    padding: 0 18px 0 14px;
    border-radius: 22px;
    background: #62C467;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
    flex-shrink: 0;
    white-space: nowrap;
}

.hvpg-fab:hover {
    background: #4db352;
    transform: scale(1.04);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.hvpg-fab:active {
    transform: scale(0.97);
}

.hvpg-fab svg {
    width: 18px;
    height: 18px;
    color: #fff;
    flex-shrink: 0;
}

.hvpg-fab-label {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.01em;
}

@media (max-width: 768px) {
    .hvpg-fab-wrap {
        width: 320px;
    }
    
}