/* API Keys Page CSS */
.ak-container { max-width: 1400px; margin: 0 auto; padding: 20px 24px; }
.ak-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.ak-header-left h2 { font-size: 16px; font-weight: 700; color: #111827; display: inline-block; margin-right: 8px; }
.ak-breadcrumb { font-size: 11px; color: #6b7280; }
.ak-btn-outline { border: 1px solid #e5e7eb; background: #fff; padding: 6px 14px; border-radius: 6px; font-size: 11px; font-weight: 600; color: #374151; cursor: pointer; }
.ak-btn-primary { background: #3b82f6; border: none; padding: 7px 16px; border-radius: 6px; font-size: 12px; font-weight: 600; color: #fff; cursor: pointer; }
.ak-btn-danger { background: #ef4444; border: none; padding: 7px 16px; border-radius: 6px; font-size: 12px; font-weight: 600; color: #fff; cursor: pointer; }
.ak-btn-sm { border: 1px solid #e5e7eb; background: #fff; padding: 4px 10px; border-radius: 4px; font-size: 10px; font-weight: 600; color: #374151; cursor: pointer; }
.ak-layout { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 24px; align-items: start; }
@media (max-width: 1024px) { .ak-layout { grid-template-columns: 1fr; } }
.ak-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; margin-bottom: 24px; overflow: hidden; }
.ak-card-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-bottom: 1px solid #e5e7eb; flex-wrap: wrap; gap: 12px; }
.ak-card-title { font-size: 14px; font-weight: 700; color: #111827; }
.ak-card-body { padding: 24px; }
.ak-form-group { margin-bottom: 16px; }
.ak-form-label { display: block; font-size: 11px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.ak-key-display { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 6px; font-family: monospace; font-size: 11px; color: #374151; flex-wrap: wrap; }
.ak-key-display span { flex: 1; word-break: break-all; }
.ak-key-display i { color: #9ca3af; cursor: pointer; flex-shrink: 0; }
.ak-key-display i:hover { color: #3b82f6; }
.ak-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 9px; font-weight: 700; }
.ak-badge-public { background: #dcfce7; color: #166534; }
.ak-badge-private { background: #fef3c7; color: #92400e; }
.ak-desc-text { font-size: 11px; color: #6b7280; line-height: 1.5; margin-bottom: 20px; }
.ak-link-blue { font-size: 11px; font-weight: 700; color: #3b82f6; text-decoration: none; text-transform: uppercase; }
.ak-toggle { position: relative; display: inline-block; width: 32px; height: 18px; }
.ak-toggle input { opacity: 0; width: 0; height: 0; }
.ak-toggle span { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #e5e7eb; transition: .3s; border-radius: 34px; }
.ak-toggle span:before { position: absolute; content: ""; height: 14px; width: 14px; left: 2px; bottom: 2px; background: white; transition: .3s; border-radius: 50%; }
.ak-toggle input:checked + span { background-color: #3b82f6; }
.ak-toggle input:checked + span:before { transform: translateX(14px); }
.ak-user-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f3f4f6; }
.ak-user-row:last-child { border-bottom: none; }
.ak-user-avatar { width: 28px; height: 28px; border-radius: 50%; }
.ak-user-name { font-size: 12px; font-weight: 600; color: #111827; }
.ak-user-role { font-size: 10px; color: #6b7280; }

/* Table */
.ak-table-wrapper { overflow-x: auto; }
.ak-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.ak-table th { text-align: left; padding: 11px 16px; font-size: 11px; font-weight: 600; color: #6b7280; background: #f9fafb; border-bottom: 1px solid #e5e7eb; }
.ak-table td { padding: 12px 16px; font-size: 12px; color: #374151; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
.ak-table tr:last-child td { border-bottom: none; }
.ak-table tr:hover td { background: #fdfdfd; }
.ak-api-key-cell { font-family: monospace; font-size: 11px; display: flex; align-items: center; gap: 6px; }
.ak-api-key-cell i { color: #9ca3af; cursor: pointer; }
.ak-api-key-cell i:hover { color: #3b82f6; }
.ak-status-on { background: #dcfce7; color: #166534; font-size: 9px; font-weight: 700; padding: 3px 8px; border-radius: 4px; display: inline-block; }
.ak-status-off { background: #fee2e2; color: #991b1b; font-size: 9px; font-weight: 700; padding: 3px 8px; border-radius: 4px; display: inline-block; }
.ak-pagination-wrap { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-top: 1px solid #e5e7eb; flex-wrap: wrap; gap: 8px; }
.ak-pagination-info { font-size: 11px; color: #6b7280; }
.ak-pages { display: flex; gap: 4px; }
.ak-page { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 4px; font-size: 11px; cursor: pointer; border: 1px solid #e5e7eb; color: #374151; }
.ak-page:hover { background: #f3f4f6; }
.ak-page.ak-active { background: #3b82f6; color: #fff; border-color: #3b82f6; font-weight: 700; }

/* Webhooks */
.ak-form-input { width: 100%; padding: 8px 12px; border: 1px solid #e5e7eb; border-radius: 6px; font-size: 12px; outline: none; box-sizing: border-box; }
.ak-form-input:focus { border-color: #3b82f6; }
.ak-form-select { width: 100%; padding: 8px 12px; border: 1px solid #e5e7eb; border-radius: 6px; font-size: 12px; outline: none; background: #fff; box-sizing: border-box; }
.ak-check-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #374151; margin-bottom: 20px; }
.ak-save-bar { display: flex; justify-content: flex-end; padding-top: 8px; }

/* KB */
.ak-kb-icon { width: 32px; height: 32px; border-radius: 8px; background: #eff6ff; color: #3b82f6; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; font-size: 14px; }
.ak-kb-title { font-size: 12px; font-weight: 700; color: #111827; margin-bottom: 8px; line-height: 1.4; }
.ak-kb-desc { font-size: 11px; color: #6b7280; line-height: 1.5; margin-bottom: 12px; }
.ak-link-learn { font-size: 10px; font-weight: 700; color: #3b82f6; text-decoration: none; text-transform: uppercase; }

/* FAQ */
.ak-faq-title { font-size: 14px; font-weight: 700; color: #111827; margin-bottom: 16px; }
.ak-faq-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid #f3f4f6; cursor: pointer; }
.ak-faq-item:last-child { border-bottom: none; }
.ak-faq-q { font-size: 12px; font-weight: 500; color: #374151; }
.ak-faq-icon { color: #9ca3af; font-size: 13px; }
.ak-faq-item:hover .ak-faq-q { color: #111827; }
.ak-illus-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px; display: flex; flex-direction: column; position: relative; overflow: hidden; min-height: 160px; margin-bottom: 24px; }
.ak-illus-card-title { font-size: 14px; font-weight: 700; color: #111827; margin-bottom: 10px; }
.ak-illus-card p { font-size: 11px; color: #6b7280; line-height: 1.5; margin-bottom: 20px; max-width: 55%; }
.ak-illus-card a { font-size: 10px; font-weight: 700; color: #3b82f6; text-transform: uppercase; text-decoration: none; }
.ak-illus-img { position: absolute; right: 16px; bottom: 16px; width: 130px; height: auto; }
