/* 
 * FIXRWEB PREMIUM ENTERPRISE SAAS DESIGN SYSTEM 
 * APPLE (CUPERTINO) INSPIRED | ISOLATED & ENFORCED
 */

.fixrweb-dash-scope {
    all: initial !important;
    display: block !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    box-sizing: border-box !important;
    color: #1d1d1f !important;
    line-height: 1.47 !important;
    -webkit-font-smoothing: antialiased !important;
}

.fixrweb-dash-scope * {
    box-sizing: border-box !important;
    font-family: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/* ==================================================
   CLIENT DASHBOARD PORTAL
   ================================================== */
.fixrweb-dash-container {
    width: 100% !important;
    background: #fbfbfd !important;
    padding: 40px !important;
    min-height: 100vh !important;
}

.fixrweb-dash-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 48px !important;
    padding: 0 8px !important;
}

.fixrweb-dash-header-main { display: flex !important; align-items: center !important; gap: 16px !important; }

/* Custom Logo Display Config */
.fixrweb-dash-logo-box {
    padding: 12px 16px !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02), 0 4px 12px rgba(0,0,0,0.04) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.fixrweb-dash-logo-bg-dark { background: #1d1d1f !important; }
.fixrweb-dash-logo-bg-light { background: #ffffff !important; }


.fixrweb-dash-heading { font-size: 28px !important; font-weight: 600 !important; letter-spacing: -0.015em !important; color: #1d1d1f !important; }
.fixrweb-dash-status-pill { font-size: 13px !important; font-weight: 500 !important; color: #86868b !important; display: flex !important; align-items: center !important; gap: 6px !important; }
.fixrweb-dash-dot { width: 8px !important; height: 8px !important; background: #34c759 !important; border-radius: 50% !important; }

.fixrweb-dash-header-meta { display: flex !important; align-items: center !important; gap: 16px !important; }
.fixrweb-dash-time { font-size: 14px !important; font-weight: 600 !important; background: rgba(0,0,0,0.03) !important; padding: 6px 12px !important; border-radius: 8px !important; }
.fixrweb-dash-user-badge { background: #1d1d1f !important; color: #fff !important; padding: 8px 16px !important; border-radius: 10px !important; font-size: 13px !important; font-weight: 600 !important; }

/* Bento Grid */
.fixrweb-dash-bento-grid {
    display: grid !important;
    grid-template-columns: repeat(12, 1fr) !important;
    gap: 24px !important;
    width: 100% !important;
}

.fixrweb-dash-bento-card {
    background: #ffffff !important;
    border-radius: 24px !important;
    padding: 32px !important;
    border: 1px solid rgba(0,0,0,0.04) !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.01) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    flex-direction: column !important;
}

.fixrweb-dash-bento-card:hover { box-shadow: 0 1px 3px rgba(0,0,0,0.02), 0 12px 32px rgba(0,0,0,0.06) !important; }
.fixrweb-dash-col-12 { grid-column: span 12 !important; }
.fixrweb-dash-col-8 { grid-column: span 8 !important; }
.fixrweb-dash-col-4 { grid-column: span 4 !important; }
.fixrweb-dash-card-dark { background: #1d1d1f !important; color: #fff !important; }

.fixrweb-dash-bento-label { font-size: 12px !important; font-weight: 600 !important; color: #86868b !important; text-transform: uppercase !important; letter-spacing: 0.08em !important; margin-bottom: 16px !important; }
.fixrweb-dash-card-dark .fixrweb-dash-bento-label { color: rgba(255,255,255,0.4) !important; }
.fixrweb-dash-bento-headline { font-size: 36px !important; font-weight: 700 !important; line-height: 1.1 !important; letter-spacing: -0.03em !important; margin-bottom: 16px !important; }
.fixrweb-dash-subtext { font-size: 15px !important; color: #515154 !important; line-height: 1.5 !important; }
.fixrweb-dash-bento-value { font-size: 28px !important; font-weight: 700 !important; letter-spacing: -0.02em !important; }
.fixrweb-dash-bento-val-wrap { display: flex !important; align-items: center !important; gap: 12px !important; margin-top: auto !important; }
.fixrweb-dash-bg-soft { background: #f5f5f7 !important; }

/* Support Zone */
.fixrweb-dash-support-accent { background: #0071e3 !important; color: #fff !important; border: none !important; }
.fixrweb-dash-support-content { display: flex !important; justify-content: space-between !important; align-items: center !important; gap: 40px !important; }
.fixrweb-dash-support-text { font-size: 18px !important; font-weight: 600 !important; max-width: 500px !important; }
.fixrweb-dash-support-actions { display: flex !important; gap: 16px !important; }
.fixrweb-dash-support-btn { padding: 14px 24px !important; border-radius: 12px !important; font-weight: 600 !important; font-size: 15px !important; text-decoration: none !important; transition: all 0.2s ease !important; display: inline-block !important; }
.fixrweb-dash-support-primary { background: #fff !important; color: #0071e3 !important; }
.fixrweb-dash-support-primary:hover { transform: scale(1.02) !important; box-shadow: 0 4px 12px rgba(255,255,255,0.3) !important; }
.fixrweb-dash-support-secondary { background: rgba(255,255,255,0.1) !important; color: #fff !important; border: 1px solid rgba(255,255,255,0.2) !important; }
.fixrweb-dash-support-secondary:hover { background: rgba(255,255,255,0.15) !important; }

/* Action Chips */
.fixrweb-dash-action-row { display: flex !important; gap: 12px !important; }
.fixrweb-dash-action-chip { background: rgba(255,255,255,0.08) !important; color: #fff !important; padding: 12px 20px !important; border-radius: 10px !important; text-decoration: none !important; font-weight: 600 !important; font-size: 14px !important; border: 1px solid rgba(255,255,255,0.1) !important; transition: all 0.2s !important; }
.fixrweb-dash-action-chip:hover { background: #fff !important; color: #1d1d1f !important; }

/* SKELETON */
.fixrweb-dash-skeleton-text { background: #f0f0f2 !important; border-radius: 6px !important; animation: fixrweb-pulse 1.5s infinite ease-in-out !important; }
.fixrweb-dash-skeleton-val { background: #f0f0f2 !important; border-radius: 6px !important; animation: fixrweb-pulse 1.5s infinite ease-in-out !important; min-width: 80px !important; display: inline-block !important; color: transparent !important; }

@keyframes fixrweb-pulse { 0% { opacity: 0.6; } 50% { opacity: 1; } 100% { opacity: 0.6; } }

@media (max-width: 1024px) {
    .fixrweb-dash-bento-grid { grid-template-columns: 1fr !important; }
    .fixrweb-dash-col-8, .fixrweb-dash-col-4, .fixrweb-dash-col-12 { grid-column: span 1 !important; }
    .fixrweb-dash-support-content { flex-direction: column !important; align-items: flex-start !important; }
}

@media (max-width: 768px) {
    .fixrweb-dash-container { padding: 20px !important; }
    .fixrweb-dash-header { flex-direction: column !important; align-items: flex-start !important; gap: 20px !important; margin-bottom: 30px !important; }
    .fixrweb-dash-action-row { flex-direction: column !important; }
    .fixrweb-dash-support-list { grid-template-columns: 1fr !important; }
    .fixrweb-dash-support-actions { flex-direction: column !important; width: 100% !important; }
    .fixrweb-dash-support-btn { text-align: center !important; justify-content: center !important; width: 100% !important; }
    .fixrweb-dash-hosting-promo { flex-direction: column !important; align-items: flex-start !important; text-align: left !important; }
}

/* ==================================================
   MASTER CONTROL (ADMIN UI)
   ================================================== */
.fixrweb-dash-admin-wrap {
    padding: 20px 20px !important;
}

.fixrweb-dash-admin-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 40px !important;
    gap: 20px !important;
}

.fixrweb-dash-title {
    font-size: 32px !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    color: #1d1d1f !important;
    margin-bottom: 8px !important;
}

.fixrweb-dash-subtitle {
    font-size: 15px !important;
    color: #86868b !important;
    font-weight: 500 !important;
}

.fixrweb-dash-save-btn {
    background: #0071e3 !important;
    color: #fff !important;
    padding: 12px 24px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.fixrweb-dash-save-btn:hover:not(:disabled) { 
    background: #005bb5 !important; 
    transform: translateY(-1px) scale(1.02) !important; 
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3) !important; 
}
.fixrweb-dash-save-btn:active:not(:disabled) { 
    transform: translateY(0) scale(0.98) !important; 
}
.fixrweb-dash-save-btn:disabled { 
    opacity: 0.7 !important; 
    cursor: not-allowed !important; 
}

/* Spinner Animation for button */
@keyframes fixrweb-spin {
    0% { transform: rotate(0deg) !important; }
    100% { transform: rotate(360deg) !important; }
}
.fixrweb-dash-spinner {
    width: 16px !important;
    height: 16px !important;
    border: 2px solid rgba(255,255,255,0.4) !important;
    border-top-color: #fff !important;
    border-radius: 50% !important;
    animation: fixrweb-spin 0.8s linear infinite !important;
    display: none !important;
}
.fixrweb-dash-save-btn.is-loading .fixrweb-dash-spinner {
    display: block !important;
}

/* Toasts */
.fixrweb-dash-toast {
    background: #fff !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06) !important;
    margin-bottom: 32px !important;
    border: 1px solid #e5e5ea !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #1d1d1f !important;
    transition: opacity 0.4s ease, transform 0.4s ease !important;
}

/* Sections */
.fixrweb-dash-section-heading {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #86868b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    margin-bottom: 12px !important;
    margin-left: 12px !important;
}

.fixrweb-dash-card {
    background: #fff !important;
    border-radius: 16px !important;
    border: 1px solid #e5e5ea !important;
    margin-bottom: 40px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02) !important;
    transition: box-shadow 0.3s ease !important;
}

.fixrweb-dash-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.05) !important;
}

/* Rows */
.fixrweb-dash-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px 24px !important;
    border-bottom: 1px solid #e5e5ea !important;
    transition: background-color 0.2s ease !important;
}

.fixrweb-dash-row:last-child { border-bottom: none !important; }
.fixrweb-dash-row:hover { background-color: #fbfbfd !important; }

.fixrweb-dash-row-info {
    flex: 1 !important;
    padding-right: 40px !important;
    max-width: 600px !important;
}

.fixrweb-dash-row-info label {
    display: block !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1d1d1f !important;
    margin-bottom: 4px !important;
}

.fixrweb-dash-row-info span {
    display: block !important;
    font-size: 14px !important;
    color: #86868b !important;
    line-height: 1.4 !important;
}

.fixrweb-dash-row-control {
    flex-shrink: 0 !important;
    min-width: 280px !important;
    max-width: 360px !important;
    width: 360px !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
}

/* Inputs & Selects */
.fixrweb-dash-input {
    width: 100% !important;
    background: #f5f5f7 !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    color: #1d1d1f !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    outline: none !important;
}

.fixrweb-dash-input:hover:not(:disabled) {
    background: #ebebed !important;
}

.fixrweb-dash-input:focus {
    background: #fff !important;
    border-color: #0071e3 !important;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15) !important;
}

.fixrweb-dash-select-wrap { position: relative !important; }
.fixrweb-dash-select { appearance: none !important; cursor: pointer !important; padding-right: 40px !important; }
.fixrweb-dash-select-wrap::after {
    content: "▼" !important;
    position: absolute !important;
    right: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 10px !important;
    color: #86868b !important;
    pointer-events: none !important;
}

/* macOS Style Toggle Switch */
.fixrweb-dash-toggle {
    position: relative !important;
    display: inline-block !important;
    width: 50px !important;
    height: 30px !important;
}

.fixrweb-dash-toggle input { opacity: 0 !important; width: 0 !important; height: 0 !important; }

.fixrweb-dash-slider {
    position: absolute !important;
    cursor: pointer !important;
    top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    background-color: #e5e5ea !important;
    transition: .3s !important;
    border-radius: 30px !important;
}

.fixrweb-dash-slider:before {
    position: absolute !important;
    content: "" !important;
    height: 26px !important;
    width: 26px !important;
    left: 2px !important;
    bottom: 2px !important;
    background-color: white !important;
    transition: .3s !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

.fixrweb-dash-toggle input:checked + .fixrweb-dash-slider { background-color: #34c759 !important; }
.fixrweb-dash-toggle input:checked + .fixrweb-dash-slider:before { transform: translateX(20px) !important; }

/* Authorized Managers Grid (Caps overflow, Apple Address Book Style) */
.fixrweb-dash-manager-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
    max-height: 400px !important;
    overflow-y: auto !important;
    padding: 4px 12px 4px 0 !important;
}

.fixrweb-dash-manager-grid::-webkit-scrollbar {
    width: 6px !important;
}
.fixrweb-dash-manager-grid::-webkit-scrollbar-track {
    background: #f5f5f7 !important;
    border-radius: 4px !important;
}
.fixrweb-dash-manager-grid::-webkit-scrollbar-thumb {
    background: #c7c7cc !important;
    border-radius: 4px !important;
}
.fixrweb-dash-manager-grid::-webkit-scrollbar-thumb:hover {
    background: #86868b !important;
}

.fixrweb-dash-manager-chip {
    display: flex !important;
    align-items: center !important;
    padding: 12px !important;
    border-radius: 12px !important;
    border: 1px solid #e5e5ea !important;
    background: #fbfbfd !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    gap: 12px !important;
    position: relative !important;
}

.fixrweb-dash-manager-chip input[type="checkbox"] {
    position: absolute !important;
    opacity: 0 !important;
}

.fixrweb-dash-manager-chip:hover { border-color: #0071e3 !important; }

.fixrweb-dash-manager-chip.active {
    background: #f0f7ff !important;
    border-color: #0071e3 !important;
    box-shadow: inset 0 0 0 1px #0071e3 !important;
}

.fixrweb-dash-manager-avatar {
    width: 32px !important;
    height: 32px !important;
    background: #0071e3 !important;
    color: #fff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    flex-shrink: 0 !important;
}

.fixrweb-dash-manager-details { display: flex !important; flex-direction: column !important; overflow: hidden !important; }
.fixrweb-dash-manager-name { font-size: 14px !important; font-weight: 600 !important; color: #1d1d1f !important; white-space: nowrap !important; text-overflow: ellipsis !important; overflow: hidden !important; }
.fixrweb-dash-manager-email { font-size: 12px !important; color: #86868b !important; white-space: nowrap !important; text-overflow: ellipsis !important; overflow: hidden !important; }

/* Terminal Card Override */
.fixrweb-dash-terminal-card { background: #1d1d1f !important; border: none !important; }
.fixrweb-dash-audit-terminal {
    padding: 24px !important;
    font-family: "SF Mono", Menlo, monospace !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    max-height: 300px !important;
    overflow-y: auto !important;
}
.fixrweb-dash-audit-line { border-bottom: 1px solid rgba(255,255,255,0.05) !important; padding: 8px 0 !important; display: flex !important; gap: 12px !important; }
.fixrweb-dash-audit-time { color: #86868b !important; }
.fixrweb-dash-audit-user { color: #00f0ff !important; font-weight: 600 !important; }
.fixrweb-dash-audit-msg { color: #fff !important; }

@media (max-width: 768px) {
    .fixrweb-dash-row { flex-direction: column !important; align-items: flex-start !important; gap: 16px !important; }
    .fixrweb-dash-row-info { padding-right: 0 !important; width: 100% !important; }
    .fixrweb-dash-row-control { width: 100% !important; min-width: 100% !important; max-width: 100% !important; justify-content: flex-start !important; }
    .fixrweb-dash-admin-header { flex-direction: column !important; align-items: flex-start !important; gap: 20px !important; }
}
