/**
 * Dev Settings - Subtle & Cozy Aesthetic
 * Clean, warm, understated admin panel
 */

/* ===== Base Container ===== */
.dev-settings-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f5f5f5;
    min-height: calc(100vh - 60px);
    padding: 30px;
    color: #444;
}

/* ===== Header ===== */
.dev-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-grid {
    display: none;
}

.dev-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
}

.title-bracket {
    color: #999;
    font-weight: 400;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #888;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #6c9;
    border-radius: 50%;
}

.status-text {
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== Section ===== */
.dev-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-icon {
    color: #999;
    font-size: 16px;
}

/* ===== Buttons ===== */
.btn-refresh {
    background: #f8f8f8;
    border: 1px solid #ddd;
    color: #666;
    padding: 8px 14px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-refresh:hover {
    background: #fff;
    border-color: #bbb;
    color: #333;
}

.refresh-icon {
    font-size: 14px;
}

.btn-edit {
    background: transparent;
    border: 1px solid #ddd;
    color: #666;
    padding: 5px 10px;
    font-size: 11px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-edit:hover {
    background: #f5f5f5;
    border-color: #bbb;
    color: #333;
}

.btn-resub {
    background: transparent;
    border: 1px solid #f0ad4e;
    color: #e69500;
    padding: 5px 10px;
    font-size: 11px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-left: 6px;
}

.btn-resub:hover {
    background: #fff8e1;
    border-color: #e69500;
    color: #cc8400;
}

/* ===== Table ===== */
.companies-table-wrapper {
    overflow-x: auto;
}

.companies-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.companies-table thead {
    background: #fafafa;
}

.companies-table th {
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    color: #888;
    border-bottom: 1px solid #eee;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.companies-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.companies-table tr:hover {
    background: #fafafa;
}

.companies-table tr:last-child td {
    border-bottom: none;
}

.company-name {
    color: #333;
    font-weight: 500;
}

.nickname {
    color: #888;
    font-size: 12px;
}

/* ===== Webhook Status Indicators ===== */
.webhook-status {
    display: flex;
    gap: 4px;
}

.webhook-indicator {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.webhook-indicator.pending {
    background: #f0f0f0;
    color: #999;
    border: 1px solid #ddd;
}

.webhook-indicator.active {
    background: #e8f5e9;
    color: #4caf50;
    border: 1px solid #c8e6c9;
}

.webhook-indicator.inactive {
    background: #ffebee;
    color: #e57373;
    border: 1px solid #ffcdd2;
}

.webhook-indicator.error {
    background: #fff3e0;
    color: #ff9800;
    border: 1px solid #ffe0b2;
}

.webhook-indicator.clickable {
    cursor: pointer;
}

.webhook-indicator.clickable:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ===== Toggle Switch ===== */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ddd;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.toggle-slider::before {
    position: absolute;
    content: '';
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.toggle-switch input:checked + .toggle-slider {
    background: #6c9;
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

/* ===== Legend ===== */
.webhook-legend {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: #888;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.legend-item .webhook-indicator {
    width: 16px;
    height: 16px;
    font-size: 8px;
}

.legend-sep {
    color: #ddd;
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content {
    background: #fff;
    border-radius: 8px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
}

.modal-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    color: #999;
    font-size: 22px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.15s ease;
}

.modal-close:hover {
    color: #666;
}

.modal-body {
    padding: 20px;
}

/* ===== Form ===== */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #888;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-value {
    font-size: 14px;
    color: #333;
    padding: 8px 0;
}

.form-input {
    width: 100%;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 13px;
    color: #333;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #999;
    background: #fff;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.btn-cancel {
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: #666;
    padding: 9px 16px;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-cancel:hover {
    background: #eee;
    color: #333;
}

.btn-save {
    background: #6c9;
    border: 1px solid #5b8;
    color: #fff;
    padding: 9px 16px;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-save:hover {
    background: #5b8;
}

/* ===== Loading Overlay ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #eee;
    border-top-color: #6c9;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loading-text {
    font-size: 12px;
    color: #888;
}

/* ===== Notifications ===== */
.dev-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    z-index: 10002;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.dev-notification.visible {
    opacity: 1;
    transform: translateY(0);
}

.dev-notification.success {
    border-left: 3px solid #6c9;
}

.dev-notification.success .notification-icon {
    color: #6c9;
}

.dev-notification.error {
    border-left: 3px solid #e57373;
}

.dev-notification.error .notification-icon {
    color: #e57373;
}

.notification-icon {
    font-size: 16px;
    font-weight: bold;
}

.notification-text {
    color: #444;
}

/* ===== Modal Open State ===== */
body.modal-open {
    overflow: hidden;
}

/* ===== Column Widths ===== */
.col-company { width: 35%; }
.col-nickname { width: 15%; }
.col-webhooks { width: 20%; }
.col-tva { width: 15%; }
.col-actions { width: 15%; text-align: right; }

/* ===== Collapsible Section ===== */
.dev-section-collapsible {
    padding-bottom: 12px;
}

.dev-section-collapsible.expanded {
    padding-bottom: 24px;
}

.section-header-clickable {
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.section-header-clickable:hover {
    background: rgba(0,0,0,0.02);
    border-radius: 4px;
}

.collapse-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
    font-size: 12px;
    color: #999;
}

.collapse-arrow.expanded {
    transform: rotate(90deg);
}

.user-count {
    font-size: 11px;
    color: #888;
    font-weight: 400;
    margin-left: 8px;
}

.users-content {
    padding-top: 16px;
    border-top: 1px solid #eee;
    margin-top: 12px;
}

/* ===== Grouped Users Layout ===== */
.authorized-users-grouped {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-group {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 12px 14px;
}

.user-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.user-group-name {
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

.user-group-logins {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.user-login-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 11px;
}

.user-login-chip .login-name {
    color: #666;
}

.user-login-chip .login-company {
    color: #999;
    font-size: 10px;
}

.user-login-chip .chip-remove {
    color: #ccc;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0 2px;
}

.user-login-chip .chip-remove:hover {
    color: #e57373;
}

/* ===== User Search Results ===== */
.user-search-results {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-top: 10px;
}

.user-search-results:empty {
    display: none;
}

.user-search-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.15s ease;
}

.user-search-item:last-child {
    border-bottom: none;
}

.user-search-item:hover {
    background: #f8f8f8;
}

.user-search-item.already-authorized {
    background: #f5f5f5;
    opacity: 0.7;
}

.user-search-info {
    flex: 1;
}

.user-search-name {
    font-weight: 500;
    color: #333;
    font-size: 13px;
}

.user-search-login {
    color: #888;
    font-size: 11px;
}

.user-search-company {
    color: #666;
    font-size: 11px;
    margin-left: 8px;
}

.user-search-action {
    margin-left: 12px;
}

.btn-add-user {
    background: #6c9;
    border: none;
    color: #fff;
    padding: 5px 10px;
    font-size: 11px;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn-add-user:hover {
    background: #5b8;
}

.btn-add-user:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-remove-user {
    background: transparent;
    border: 1px solid #e57373;
    color: #e57373;
    padding: 5px 10px;
    font-size: 11px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-remove-user:hover {
    background: #ffebee;
}

.user-search-no-results {
    padding: 20px;
    text-align: center;
    color: #888;
    font-size: 12px;
}

.already-added-badge {
    background: #e0e0e0;
    color: #666;
    padding: 4px 8px;
    font-size: 10px;
    border-radius: 3px;
    text-transform: uppercase;
}

/* ==========================================================================
   CREDENTIAL VAULT STYLES
   Aesthetic: Secure Terminal - refined utilitarian with subtle depth
   ========================================================================== */

/* Vault Section */
.vault-section {
    background: linear-gradient(180deg, #fafbfc 0%, #f5f6f8 100%);
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 16px 20px;
}
.vault-section .section-header { margin-bottom: 16px; }
.vault-section .section-title {
    font-family: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
    letter-spacing: 0.5px;
}
.vault-icon {
    font-size: 16px;
    opacity: 0.9;
}
.vault-status {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.vault-status.locked {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.vault-status.unlocked {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #15803d;
    border: 1px solid #bbf7d0;
}
.vault-header-actions { display: flex; gap: 10px; }
.btn-lock {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fcd34d;
    color: #b45309;
    padding: 7px 14px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.btn-lock:hover {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* Password Prompt */
.vault-password-prompt-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
}
.vault-password-prompt-inline .form-input {
    width: 220px;
    flex: 0 0 auto;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 1px;
}
.btn-unlock {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: #fff;
    padding: 9px 20px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.25);
}
.btn-unlock:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}
.vault-error {
    color: #dc2626;
    font-size: 12px;
    margin-left: 12px;
    font-weight: 500;
}

/* Toolbar */
.vault-toolbar {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.vault-search {
    flex: 1;
    max-width: 280px;
    border-color: #d1d5db;
}
.vault-search:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.vault-company-filter {
    width: 160px;
    border-color: #d1d5db;
}
.vault-inactive-toggle {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    user-select: none;
}
.vault-inactive-toggle input {
    accent-color: #6366f1;
}

/* Vault Table */
.vault-table-container {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 4px 6px rgba(0,0,0,0.02);
}
.vault-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.vault-table thead {
    background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
}
.vault-table th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: #4b5563;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e5e7eb;
}
.vault-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: top;
    transition: background 0.1s ease;
}
.vault-table tbody tr {
    transition: background 0.1s ease;
}
.vault-table tbody tr:hover {
    background: #f8fafc;
}
.vault-table tbody tr:last-child td {
    border-bottom: none;
}
.vault-table .col-name {
    width: 160px;
    font-weight: 600;
    color: #1f2937;
}
.vault-table .col-company { width: 120px; color: #4b5563; }
.vault-table .col-credentials { }
.vault-table .col-actions { width: 60px; text-align: right; white-space: nowrap; }

.vault-row-inactive {
    opacity: 0.55;
    background: #fafafa;
}
.vault-row-inactive:hover {
    opacity: 0.7;
}
.vault-badge-inactive {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 500;
    background: #e5e7eb;
    color: #6b7280;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.vault-role {
    display: inline-block;
    font-size: 11px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 6px;
    font-weight: 500;
}
.vault-empty {
    text-align: center;
    color: #9ca3af;
    padding: 48px 24px !important;
    font-style: italic;
}
.vault-no-creds {
    color: #9ca3af;
    font-size: 12px;
    font-style: italic;
}

/* Credentials List */
.vault-creds-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.vault-cred-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.12s ease;
    width: fit-content;
    max-width: 100%;
}
.vault-cred-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}
.vault-cred-type {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 9px;
    color: #64748b;
    min-width: 70px;
    flex: 0 0 auto;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}
.vault-cred-user {
    font-family: inherit;
    font-size: 12px;
    color: #334155;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    transition: all 0.12s ease;
    position: relative;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vault-cred-user:hover {
    background: #dbeafe;
    color: #1e40af;
}
.vault-cred-pass {
    font-family: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
    font-size: 11px;
    font-weight: 500;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 2px 8px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.12s ease;
    letter-spacing: 0.3px;
}
.vault-cred-pass:hover {
    background: #fee2e2;
    border-color: #f87171;
}

/* Copy feedback - animated with floating toast */
.vault-copied {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%) !important;
    border-color: #6ee7b7 !important;
    color: #047857 !important;
}
.vault-cred-user.vault-copied,
.vault-cred-pass.vault-copied {
    animation: copyPulse 0.4s ease;
}
@keyframes copyPulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

/* Floating "Copied!" toast */
.vault-copy-toast {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #1e293b;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}
.vault-copy-toast::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #1e293b;
}
.vault-copy-toast-fade {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.vault-cred-edit {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 2px 4px;
    font-size: 11px;
    margin-left: 4px;
    border-radius: 3px;
    transition: all 0.12s ease;
    opacity: 0.5;
    flex-shrink: 0;
}
.vault-cred-item:hover .vault-cred-edit {
    opacity: 1;
}
.vault-cred-edit:hover {
    color: #475569;
    background: #e2e8f0;
}

/* Action Buttons */
.vault-btn-sm {
    background: #fff;
    border: 1px solid #d1d5db;
    color: #4b5563;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 6px;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.vault-btn-sm:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.vault-btn-add {
    color: #059669;
    border-color: #a7f3d0;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}
.vault-btn-add:hover {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-color: #6ee7b7;
}

/* Vault Modals */
.vault-modal {
    max-width: 580px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
}
.vault-modal .modal-header {
    background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
}
.vault-modal .modal-body {
    padding: 20px;
}
.form-row-inline {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
}
.form-row-inline .form-group {
    flex: 1;
    margin-bottom: 0;
}
.form-row-inline .form-label {
    font-size: 11px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4b5563;
    padding: 8px 0;
    cursor: pointer;
}
.form-checkbox input {
    accent-color: #6366f1;
    width: 16px;
    height: 16px;
}
.btn-danger {
    background: #fff;
    border: 1px solid #f87171;
    color: #dc2626;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    margin-right: auto;
    transition: all 0.15s ease;
}
.btn-danger:hover {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #ef4444;
    transform: translateY(-1px);
}
