/* accessibilityTools.css */

/* Floating Button */
.access-widget-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: var(--pst-accent);
    color: var(--pst-white);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 99999;
    transition: all 0.3s ease;
    border: none;
}
.access-widget-btn:hover {
    background-color: var(--pst-accent-hover);
    transform: scale(1.05);
}
.access-widget-btn svg, .access-widget-btn i {
    font-size: 24px;
    fill: currentColor;
}

/* Panel */
.access-panel {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 400px;
    max-width: 100%;
    background: var(--pst-bg-surface);
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    z-index: 100000;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: var(--pst-font-size);
    line-height: 1.5;
    color: var(--pst-text-main);
    box-sizing: border-box;
}
.access-panel.open {
    transform: translateX(0);
}

/* Header */
.access-header {
    background: var(--pst-accent);
    color: var(--pst-white);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}
.access-header-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--pst-white);
}
.access-header-subtitle {
    font-size: 13px;
    opacity: 0.8;
    margin: 4px 0 0 0;
    color: var(--pst-white);
}
.access-header-actions {
    display: flex;
    gap: 8px;
}
.access-header-btn {
    background: none;
    border: none;
    color: var(--pst-white);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--pst-radius);
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.access-header-btn:hover {
    background: rgba(255,255,255,0.2);
}

/* Body */
.access-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

/* Profiles Section */
.access-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--pst-border-strong);
    color: var(--pst-text-main);
}

.access-profiles-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}
.access-profile-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--pst-radius);
    border: 2px solid var(--pst-border-light);
    background: var(--pst-bg-surface);
    cursor: pointer;
    transition: all 0.2s;
}
.access-profile-item:hover {
    border-color: var(--pst-accent);
}
.access-profile-item.active {
    border-color: var(--pst-accent);
    background: var(--pst-row-stripe);
}
.access-profile-icon {
    color: var(--pst-accent);
    display: flex;
    align-items: center;
    font-size: 18px;
}
.access-profile-info {
    flex: 1;
}
.access-profile-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--pst-text-main);
}
.access-profile-desc {
    font-size: 11px;
    color: var(--pst-text-secondary);
}

/* Settings Grid */
.access-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Setting Card */
.access-setting-card {
    background: var(--pst-bg-surface);
    padding: 12px;
    border-radius: var(--pst-radius);
    border: 1px solid var(--pst-border-strong);
}
.access-setting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.access-setting-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--pst-text-main);
}
.access-setting-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.access-btn-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid var(--pst-border-light);
    background: var(--pst-bg-surface);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pst-text-main);
    transition: background 0.2s;
}
.access-btn-icon:hover {
    background: var(--pst-row-hover);
}
.access-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--pst-text-main);
}

/* Switch */
.access-switch {
    position: relative;
    width: 40px;
    height: 20px;
    background: var(--pst-border-strong);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
}
.access-switch.active {
    background: var(--pst-accent);
}
.access-switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: var(--pst-white);
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.access-switch.active .access-switch-thumb {
    transform: translateX(20px);
}

/* Footer */
.access-footer {
    padding: 16px;
    border-top: 1px solid var(--pst-border-light);
    text-align: center;
    background: var(--pst-bg-surface);
    flex-shrink: 0;
}
.access-reset-btn {
    background: none;
    border: none;
    color: var(--pst-text-secondary);
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
    font-weight: 600;
}
.access-reset-btn:hover {
    color: var(--pst-text-main);
}

/* ============================================================
   Linga Chat entegrasyon katmanı: Oracle-Nw --pst-* değişkenlerini
   marka token'larına bağlar (tanımsız kalınca buton/panel görünmezdi).
   ============================================================ */
:root {
  --pst-accent: #0FB5A6;
  --pst-accent-hover: #0C9488;
  --pst-white: #FFFFFF;
  --pst-bg-surface: #FFFFFF;
  --pst-text-main: #141820;
  --pst-text-secondary: #6B7280;
  --pst-border-light: #E1E4E9;
  --pst-border-strong: #CBD0D8;
  --pst-row-stripe: #F4F7F7;
  --pst-row-hover: #ECF9F8;
  --pst-radius: 12px;
  --pst-font-size: 14px;
}
[data-theme="dark"] {
  --pst-accent: #27BCAF;
  --pst-accent-hover: #0FB5A6;
  --pst-bg-surface: #141820;
  --pst-text-main: #F4F6F8;
  --pst-text-secondary: #AEB6C1;
  --pst-border-light: #262D37;
  --pst-border-strong: #323A45;
  --pst-row-stripe: #1A1F26;
  --pst-row-hover: #1F242C;
}
