.info-dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  overflow-y: auto;
  padding: 1rem;
}

.info-dialog-overlay.active {
  opacity: 1;
  visibility: visible;
}

.info-dialog {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transform: scale(0.96) translateZ(0);
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0;
  transform-origin: center;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  margin: auto;
  flex-shrink: 0;
  will-change: transform, opacity;
  position: relative;
}

.info-dialog-overlay.active .info-dialog {
  transform: scale(1) translateZ(0);
  opacity: 1;
}

.info-dialog-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: break-word;
}

.info-dialog-message {
  font-size: 0.875rem;
  color: #8c8c8c;
  margin: 0 0 1.5rem 0;
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: break-word;
}

.info-dialog-input {
  width: 100%;
  background: #171717;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.65rem 0.9rem;
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  margin-bottom: 1.5rem;
  display: block;
}

.info-dialog-input:disabled {
  cursor: not-allowed;
  background: #1a1a1a;
  border-color: #222;
  color: rgba(255, 255, 255, 0.6);
}

.info-dialog-input:focus {
  border-color: #ef4444;
  background: #202020;
}

.dialog-form {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label, .dialog-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 0px;
  letter-spacing: 0.05em;
  user-select: none;
  line-height: normal;
}

.dialog-hero-section-border {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dialog-checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    position: relative;
    padding: 0.25rem 0;
}

.dialog-checkbox-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background-color: #171717;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0;
    pointer-events: none;
}

.dialog-checkbox-row:hover input[type="checkbox"] {
    border-color: rgba(255, 255, 255, 0.4);
    background-color: #202020;
}

.dialog-checkbox-row input[type="checkbox"]:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.dialog-checkbox-row input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 45%;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

.dialog-checkbox-label {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    pointer-events: none;
}

.dialog-link-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 0.5rem;
}

.dialog-link-settings {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding-left: 1.25rem;
    margin-left: 0.5rem;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.dialog-link-settings.active {
    display: flex;
}

.dialog-label-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 0.5rem;
}

.dialog-label-wrapper label, .dialog-label-wrapper .dialog-label {
    margin-bottom: 0 !important;
}

.char-count {
    font-size: 0.75rem;
    color: #52525b;
    font-weight: 500;
    transition: color 0.15s ease;
}

.char-count.limit-warn {
    color: #facc15;
}

.char-count.limit-max {
    color: #ef4444;
}

.dialog-input {
  width: 100%;
  background: #171717;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
  line-height: 1.5;
}

.dialog-input:disabled {
  cursor: not-allowed;
  background: #1a1a1a;
  border-color: #222;
  color: rgba(255, 255, 255, 0.6);
}

.dialog-input::placeholder {
    color: #555;
}

.dialog-input:focus {
  border-color: rgba(255, 255, 255, 0.3);
  background: #202020;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
}

textarea.dialog-input {
    min-height: 120px;
    max-height: 280px;
    overflow-y: auto;
    resize: none;
    line-height: 1.6;
    padding: 0.825rem 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
    field-sizing: content;
}

textarea.dialog-input::-webkit-resizer {
    display: none;
}

.input-hint {
    margin-top: 0.4rem;
    font-size: 0.75rem;
    color: #666;
}

.info-dialog-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.info-dialog-btn {
  padding: 0 16px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: inherit;
  user-select: none;
}

.info-dialog-btn .icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.info-dialog-btn .btn-text {
    line-height: 1;
    display: inline-flex;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
}

.dialog-btn-spinner {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    animation: dialog-spin 0.8s linear infinite;
    margin: 0 !important;
    position: static !important;
}

@keyframes dialog-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.info-dialog-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.info-dialog-btn.info, .info-dialog-btn.blue, .info-dialog-btn.primary {
  background: #2563eb;
  color: #fff;
  border: 1px solid #2563eb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.info-dialog-btn.info:hover:not(:disabled), .info-dialog-btn.blue:hover:not(:disabled), .info-dialog-btn.primary:hover:not(:disabled) {
  background: #3571e9;
  border-color: #3571e9;
}

.info-dialog-btn.success {
  background: #10b981;
  color: #000;
  border: 1px solid #10b981;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.info-dialog-btn.success:hover:not(:disabled) {
  background: #059669;
  border-color: #059669;
}

.info-dialog-btn.warning {
  background: #facc15;
  color: #000;
  border: 1px solid #facc15;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.info-dialog-btn.warning:hover:not(:disabled) {
  background: #eab308;
  border-color: #eab308;
}

.info-dialog-btn.error {
  background: #ce0033;
  color: #fff;
  border: 1px solid #ce0033;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-weight: 600;
  border-radius: 8px;
}

.info-dialog-btn.error:hover:not(:disabled) {
  background: #b0002c;
  border-color: #b0002c;
}

.info-dialog-btn-cancel {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-dialog-btn-cancel:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.05);
}

.dialog-role-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dialog-role-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.dialog-role-opt:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.dialog-role-opt.active {
    background: rgba(37, 99, 235, 0.05);
    border-color: rgba(37, 99, 235, 0.2);
    cursor: default;
}

.role-opt-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.dialog-role-opt.active .role-opt-icon {
    background: #2563eb;
    border-color: #3b82f6;
    color: #fff;
}

.role-opt-details {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: left;
}

.role-opt-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.role-check {
    color: #4ade80;
    font-size: 20px;
    opacity: 0.8;
}
.custom-dropdown {
    position: relative;
    width: 100%;
    user-select: none;
    -webkit-user-select: none;
}

.dropdown-trigger {
    width: 100%;
    background: #171717;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #fff;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.dropdown-trigger:hover, .custom-dropdown.active .dropdown-trigger {
    border-color: rgba(255, 255, 255, 0.25);
    background: #1a1a1a;
}

.dropdown-trigger .material-symbols-rounded, .dropdown-trigger .material-symbols-outlined {
    font-size: 1.25rem;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: #52525b;
}

.custom-dropdown.active .dropdown-trigger .material-symbols-rounded, 
.custom-dropdown.active .dropdown-trigger .material-symbols-outlined {
    transform: rotate(180deg);
}

.dropdown-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #0f0f0f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
    display: none;
    z-index: 100;
    overflow-y: auto;
    padding: 0.5rem;
    max-height: 260px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.custom-dropdown.active .dropdown-options {
    display: block;
    animation: dropdownPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top center;
}

@keyframes dropdownPop {
    from { opacity: 0; transform: translateY(-10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown-option {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #a1a1aa;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}

.dropdown-option:last-child {
    margin-bottom: 0;
}

.dropdown-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.dropdown-option.selected {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    font-weight: 600;
}

.dropdown-option .material-symbols-rounded, .dropdown-option .material-symbols-outlined {
    font-size: 1.1rem;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    color: #fff;
}

.dropdown-option.selected .material-symbols-rounded {
    opacity: 1;
    transform: scale(1);
}

.log-details-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 100%;
    overflow-x: hidden;
    margin-top: 24px;
}

.log-detail-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.log-detail-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: #444;
    letter-spacing: 0.05em;
    font-weight: 800;
    padding-left: 2px;
}

.log-detail-value {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.025);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    word-break: break-all;
}

.log-value-text {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.log-detail-value pre {
    margin: 0;
    font-size: 0.8rem;
    background: transparent;
    color: #ccc;
    line-height: 1.5;
    font-family: 'JetBrains Mono', monospace;
}

.log-value-yes {
    color: #10b981;
    font-weight: 600;
}

.log-value-no {
    color: #f43f5e;
    font-weight: 600;
}

.log-value-permanent {
    color: #fff;
    font-weight: 600;
}

.log-value-none {
    color: #555;
    font-style: italic;
}

.profile-modal-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
}

.profile-avatar-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.08);
    background: #111;
    object-fit: cover;
    display: block;
}

.profile-info-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.profile-stat-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-stat-label {
    display: block;
    font-size: 0.65rem;
    color: #555;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: 0.05em;
}

.profile-stat-value {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
}

.profile-stat-value.status-active {
    color: #4ade80;
}

.profile-stat-value.status-suspended {
    color: #f87171;
}

.profile-accounts-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 1.15rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-accounts-title {
    display: block;
    font-size: 0.65rem;
    color: #555;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.profile-accounts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-account-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-account-label {
    color: #666;
    font-size: 0.85rem;
    font-weight: 600;
}

.profile-account-value {
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 4px 10px;
    border-radius: 8px;
}

.profile-no-accounts {
    color: #444;
    font-size: 0.85rem;
    font-style: italic;
}

.profile-member-since {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.log-role-icon {
    font-size: 0.9rem;
}

.log-target-type-badge {
    font-size: 0.65rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    color: #666;
    margin-left: 5px;
    display: inline-block;
    width: fit-content;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    vertical-align: middle;
}

.log-details-dash {
    color: #333;
    font-weight: 600;
    font-size: 0.85rem;
}

.log-target-clickable {
    cursor: pointer;
}

.log-target-username {
    color: var(--accent-color);
}

.dialog-collapsible {
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dialog-collapsible-toggle {
   width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.25rem;
    background: transparent;
    border: none;
    color: #666;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: color 0.2s ease
}

.dialog-collapsible-toggle:hover {
    color: #aaa;
}

.dialog-collapsible-toggle .material-symbols-rounded {
    font-size: 1.25rem;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dialog-collapsible.active .dialog-collapsible-toggle .material-symbols-rounded {
    transform: rotate(180deg);
}

.dialog-collapsible-content {
    display: none;
    padding-bottom: 0.5rem;
}

.dialog-collapsible.active .dialog-collapsible-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.session-details-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
    margin-top: 1rem;
}

.session-details-card {
    background: rgba(255, 255, 255, 0.025);
    padding: 1.15rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.session-details-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #555;
    font-weight: 800;
    margin-bottom: 0.65rem;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.session-details-value {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.session-details-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.4;
}

.session-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.session-details-icon {
    font-size: 1.2rem;
    color: #3b82f6;
    opacity: 0.9;
}

@media (max-width: 480px) {
    .session-details-grid {
        grid-template-columns: 1fr;
    }
}

.dialog-label-hint {
    font-size: 0.7rem;
    color: #52525b;
    margin-left: 0.4rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}