/**
 * AppointmentDesk — Admin UI
 * Clean, modern design inspired by Elementor/WPForms.
 */

/* === Reset WP defaults === */
.adesk-wrap {
    margin: 0 0 0 -20px;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.adesk-wrap * {
    box-sizing: border-box;
}

/* === Header === */
.adesk-header {
    background: linear-gradient(135deg, #1d2327 0%, #2563eb 50%, #7c3aed 100%);
    color: #fff;
    padding: 0;
    margin: 0;
    box-shadow: none;
    border: none;
}

.adesk-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
}

.adesk-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.adesk-header-icon {
    font-size: 32px;
    width: 32px;
    height: 32px;
    opacity: 0.9;
}

.adesk-header-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.adesk-header-name {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.adesk-header-meta {
    font-size: 12px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.adesk-header-right {
    display: flex;
    gap: 8px;
}

.adesk-header-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    text-decoration: none;
    transition: background 0.2s;
}

.adesk-header-link:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.adesk-header-link .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* === Badges === */
.adesk-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.adesk-badge-premium {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.adesk-badge-free {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* === Body === */
.adesk-body {
    padding: 24px;
}

/* === Loading === */
.adesk-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 40px 0;
    color: #666;
}

.adesk-loading .spinner {
    float: none;
    margin: 0;
}

/* === Tabs === */
.adesk-tabs {
    display: flex;
    gap: 4px;
    margin: 0 0 24px 0;
    padding: 4px;
    background: #f0f0f1;
    border-radius: 8px;
    width: fit-content;
}

.adesk-tab {
    padding: 8px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #50575e;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.adesk-tab:hover {
    color: #1d2327;
    background: rgba(255, 255, 255, 0.5);
}

.adesk-tab-active {
    background: #fff;
    color: #1d2327;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.adesk-tab .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* === Cards === */
.adesk-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.adesk-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f1;
}

.adesk-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #1d2327;
    display: flex;
    align-items: center;
    gap: 8px;
}

.adesk-card-title .dashicons {
    color: #2563eb;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* === Support Info === */
.adesk-support-intro {
    margin-bottom: 20px;
    color: #50575e;
    line-height: 1.6;
}

.adesk-support-intro strong {
    color: #1d2327;
}

.adesk-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.adesk-info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 13px;
}

.adesk-info-item:last-child {
    border-bottom: none;
}

.adesk-info-label {
    color: #666;
    font-weight: 500;
}

.adesk-info-value {
    color: #1d2327;
    font-weight: 600;
    text-align: right;
    word-break: break-all;
}

.adesk-info-value.adesk-mono {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
    font-size: 12px;
}

/* === Copy Block === */
.adesk-copy-block {
    position: relative;
}

.adesk-copy-text {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
    font-size: 12px;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 300px;
    overflow-y: auto;
    color: #333;
}

.adesk-copy-btn {
    flex-shrink: 0;
}

/* === Status indicators === */
.adesk-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.adesk-status-ok {
    background: #ecfdf5;
    color: #059669;
}

.adesk-status-warn {
    background: #fffbeb;
    color: #d97706;
}

.adesk-status-error {
    background: #fef2f2;
    color: #dc2626;
}

.adesk-status-neutral {
    background: #f3f4f6;
    color: #6b7280;
}

/* === Buttons === */
.adesk-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}

.adesk-btn-primary {
    background: #2563eb;
    color: #fff;
}

.adesk-btn-primary:hover {
    background: #1d4ed8;
    color: #fff;
}

.adesk-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.adesk-btn-secondary:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.adesk-btn-sm {
    padding: 5px 12px;
    font-size: 12px;
}
.adesk-btn-xs {
    padding: 2px 8px;
    font-size: 11px;
    vertical-align: middle;
}

.adesk-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.adesk-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* === Options Form === */
.adesk-options-section {
    margin-bottom: 8px;
}

/* Options toolbar with sub-tabs and action buttons */
.adesk-options-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

/* Options sub-tabs */
.adesk-options-subtab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    display: inline-flex;
    align-items: center;
}
.adesk-options-subtab:hover {
    color: #1e293b;
}
.adesk-options-subtab.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    font-weight: 600;
}

/* Sticky section navigation */
.adesk-options-nav {
    position: sticky;
    top: 32px;
    z-index: 10;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.adesk-options-nav.adesk-nav-stuck {
    background: #1d2327;
    border-color: #1d2327;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.adesk-options-nav.adesk-nav-stuck .adesk-options-nav-item {
    color: rgba(255,255,255,0.7);
}
.adesk-options-nav.adesk-nav-stuck .adesk-options-nav-item:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
/* Back to top button */
.adesk-back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1d2327;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.adesk-back-to-top:hover {
    background: #2563eb;
}
.adesk-back-to-top-visible {
    opacity: 1;
    pointer-events: auto;
}
.adesk-options-nav-item {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    color: #4b5563;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.15s;
}
.adesk-options-nav-item:hover {
    background: #f3f4f6;
    color: #1d2327;
}
/* Option key code badge */
.adesk-option-key {
    font-size: 10px;
    font-weight: 400;
    color: #9ca3af;
    background: #f3f4f6;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 6px;
    font-family: monospace;
    user-select: all;
}

.adesk-option-group-title {
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    margin: 24px 0 12px 0;
    padding: 10px 0;
    border-bottom: 2px solid #2563eb;
    display: flex;
    align-items: center;
    gap: 8px;
    scroll-margin-top: 80px;
}

.adesk-option-group-title:first-child {
    margin-top: 0;
}

.adesk-option-row {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.adesk-option-row:last-child {
    border-bottom: none;
}

.adesk-option-label-col {
    flex: 0 0 240px;
    padding-right: 20px;
}

.adesk-option-label {
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 2px;
}

.adesk-option-desc {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
    margin-top: 4px;
}

.adesk-option-input-col {
    flex: 1;
    min-width: 0;
}

.adesk-option-input-col input[type="text"],
.adesk-option-input-col input[type="number"],
.adesk-option-input-col select {
    width: 100%;
    max-width: 360px;
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.adesk-option-input-col input:focus,
.adesk-option-input-col select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
    outline: none;
}

.adesk-option-input-col input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 2px 0 0 0;
    accent-color: #2563eb;
    cursor: pointer;
}

/* === Options Actions Bar === */
.adesk-options-autosave-bar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}
.adesk-options-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding: 16px 0 0 0;
    border-top: 1px solid #e0e0e0;
}

.adesk-save-feedback {
    font-size: 13px;
    transition: opacity 0.3s;
}

/* === License Section === */
.adesk-license-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.adesk-license-result {
    font-size: 13px;
}

.adesk-license-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.adesk-license-status {
    font-size: 13px;
}

/* === Section Header === */
.adesk-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.adesk-header-buttons {
    display: flex;
    gap: 8px;
}

.adesk-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
    margin: 0;
}

/* === Empty State === */
.adesk-empty-state {
    text-align: center;
    padding: 48px 24px;
}

.adesk-empty-icon {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #d1d5db;
    margin-bottom: 12px;
}

.adesk-empty-text {
    color: #888;
    font-size: 14px;
    margin: 0 0 16px 0;
}

/* === Calendar Cards === */
.adesk-calendar-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.adesk-calendar-card {
    padding: 16px 20px;
    transition: box-shadow 0.15s;
}

.adesk-calendar-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.adesk-calendar-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.adesk-calendar-color {
    width: 12px;
    height: 40px;
    border-radius: 4px;
    flex-shrink: 0;
}

.adesk-calendar-card-info {
    flex: 1;
    min-width: 0;
}

.adesk-calendar-card-name {
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
}

.adesk-calendar-id {
    font-size: 11px;
    font-weight: 400;
    color: #9ca3af;
    margin-left: 8px;
}

.adesk-calendar-card-desc {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.adesk-calendar-card-staff {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.adesk-calendar-card-services {
    margin-top: 6px;
}

.adesk-staff-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.adesk-staff-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.adesk-staff-badge-team {
    background: #dbeafe;
    color: #1e40af;
}

.adesk-staff-badge-user {
    background: #f3e8ff;
    color: #7c3aed;
}

.adesk-staff-badge-service {
    background: #dcfce7;
    color: #166534;
}

.adesk-staff-badge-calendar {
    background: #fff7ed;
    color: #c2410c;
}

.adesk-calendar-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
}

.adesk-team-card-calendars {
    margin-top: 8px;
}

.adesk-calendar-card-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.adesk-calendar-card-inactive {
    opacity: 0.6;
}

.adesk-calendar-color-inactive {
    filter: grayscale(100%);
}

.adesk-inactive-badge {
    display: inline-block;
    padding: 2px 6px;
    background: #9ca3af;
    color: #fff;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
    margin-left: 6px;
}

/* === Forms === */
.adesk-form-row {
    margin-bottom: 16px;
}

.adesk-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 6px;
}

.adesk-required {
    color: #dc2626;
}

.adesk-form-help {
    margin-top: -8px;
    margin-bottom: 16px;
    padding: 8px 12px;
    background: #f0f6ff;
    border-left: 3px solid #2271b1;
    border-radius: 4px;
}

.adesk-form-help small {
    color: #4a5568;
    font-size: 12px;
    line-height: 1.4;
}

.adesk-form-input {
    width: 100%;
    max-width: 480px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.adesk-option-textarea {
    width: 100%;
    max-width: 600px;
    min-height: 150px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.adesk-option-textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    outline: none;
}

.adesk-option-locked textarea:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.adesk-upgrade-hint {
    margin: 6px 0 0;
    font-size: 12px;
    color: #9333ea;
}

.adesk-upgrade-hint .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    vertical-align: text-bottom;
}

.adesk-upgrade-link {
    color: #7c3aed;
    text-decoration: underline;
}
    border-radius: 6px;
    font-size: 13px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.adesk-form-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
    outline: none;
}

.adesk-form-textarea {
    resize: vertical;
    min-height: 60px;
}

.adesk-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.adesk-form-feedback {
    font-size: 13px;
}

/* === Color Picker === */
.adesk-color-picker {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.adesk-color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s;
    padding: 0;
}

.adesk-color-swatch:hover {
    transform: scale(1.15);
}

.adesk-color-swatch.adesk-color-selected {
    border-color: #1d2327;
    transform: scale(1.15);
}

/* === Service List === */
.adesk-service-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.adesk-service-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
}

.adesk-service-info {
    flex: 1;
    min-width: 0;
}

.adesk-service-name {
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
}

.adesk-service-meta {
    display: flex;
    gap: 16px;
    margin-top: 4px;
    font-size: 12px;
    color: #888;
}

.adesk-service-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.adesk-service-meta .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.adesk-service-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

/* === Breadcrumb === */
.adesk-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
}

.adesk-breadcrumb-sep {
    color: #ccc;
    font-size: 14px;
}

.adesk-breadcrumb-current {
    font-size: 15px;
    font-weight: 600;
    color: #1d2327;
}

/* === Form Row Group === */
.adesk-form-row-group {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.adesk-form-row-half {
    flex: 1;
}

.adesk-form-row-third {
    flex: 1;
}

/* === Simple Table === */
.adesk-table-compact {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.adesk-table-compact th,
.adesk-table-compact td {
    padding: 6px 10px;
    border-bottom: 1px solid #e5e5e5;
    text-align: left;
}
.adesk-table-compact th {
    font-weight: 600;
    color: #1d2327;
    background: #f8fafc;
    font-size: 12px;
}

/* === Danger Button === */
.adesk-btn-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.adesk-btn-danger:hover {
    background: #fee2e2;
    color: #b91c1c;
}

.adesk-btn-warning {
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
}

.adesk-btn-warning:hover {
    background: #ffedd5;
    color: #c2410c;
}

/* === Footer === */
.adesk-footer {
    text-align: center;
    padding: 16px 24px;
    font-size: 12px;
    color: #888;
    border-top: 1px solid #e0e0e0;
}

.adesk-footer a {
    color: #2563eb;
    text-decoration: none;
}

.adesk-footer a:hover {
    text-decoration: underline;
}

/* === Success Button === */
.adesk-btn-success {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.adesk-btn-success:hover {
    background: #d1fae5;
    color: #047857;
}

/* === Team Cards === */
.adesk-team-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.adesk-team-card {
    padding: 16px 20px;
    transition: box-shadow 0.15s;
}

.adesk-team-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.adesk-team-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.adesk-team-card-icon {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #2563eb;
}

.adesk-team-card-info {
    flex: 1;
    min-width: 0;
}

.adesk-team-card-name {
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
}

.adesk-team-card-desc {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.adesk-team-card-count {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    background: #f3f4f6;
    color: #6b7280;
    flex-shrink: 0;
}

.adesk-team-card-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

/* === Info Hint === */
.adesk-info-hint {
    margin-top: 16px;
    padding: 10px 14px;
    background: #f0f6ff;
    border: 1px solid #d0e0f5;
    border-radius: 6px;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.5;
}

.adesk-info-hint .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    vertical-align: text-bottom;
    color: #6b9bd2;
}

/* === Team Members === */
.adesk-member-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.adesk-member-row:last-of-type {
    border-bottom: none;
}

.adesk-member-info {
    flex: 1;
    min-width: 0;
}

.adesk-member-name {
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
}

.adesk-member-email {
    font-size: 12px;
    color: #888;
    margin-top: 1px;
}

/* === Staff Section (Calendar Form) === */
.adesk-staff-section {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

/* Business Hours Table */
.adesk-bh-table {
    width: 100%;
    max-width: 500px;
    border-collapse: collapse;
    margin-top: 8px;
}

.adesk-bh-table th {
    text-align: left;
    padding: 6px 10px;
    font-size: 12px;
    color: #6b7280;
    border-bottom: 1px solid #e0e0e0;
}

.adesk-bh-table td {
    padding: 6px 10px;
    border-bottom: 1px solid #f0f0f0;
}

.adesk-bh-table input[type="time"] {
    padding: 4px 8px;
    font-size: 13px;
}

.adesk-bh-table input[type="time"]:disabled {
    opacity: 0.4;
    background: #f5f5f5;
}

.adesk-bh-table input[type="checkbox"] {
    margin: 0;
}

.adesk-staff-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.adesk-staff-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #f3f4f6;
    border-radius: 20px;
    font-size: 13px;
    color: #374151;
}

.adesk-staff-tag-remove {
    cursor: pointer;
    color: #dc2626;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    margin-left: 2px;
}

.adesk-staff-tag-remove:hover {
    color: #b91c1c;
}

.adesk-staff-add-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    align-items: center;
}

.adesk-staff-add-select {
    flex: 1;
    max-width: 300px;
}

/* === Appointments === */
.adesk-appointments-header {
    flex-wrap: wrap;
    gap: 12px;
}

.adesk-apt-filters {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.adesk-apt-calendar-filter,
.adesk-apt-member-filter,
.adesk-apt-team-filter {
    max-width: 170px;
    min-width: 0;
    font-size: 13px;
    padding: 4px 6px;
}

.adesk-apt-date-input {
    max-width: 160px;
}

.adesk-apt-date-nav {
    display: flex;
    gap: 2px;
}

.adesk-apt-timeline {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.adesk-apt-timeline-date {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 8px 0;
}

.adesk-apt-timeline-empty {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 16px;
    background: #f9f9f9;
    border-radius: 4px;
    color: #999;
    font-style: italic;
}

.adesk-empty-icon-small {
    font-size: 20px;
    opacity: 0.5;
}

.adesk-empty-text-small {
    font-size: 13px;
    color: #999;
}

.adesk-apt-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    transition: box-shadow 0.15s;
}

.adesk-apt-row:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.adesk-apt-time-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
    flex-shrink: 0;
}

.adesk-apt-time {
    font-size: 15px;
    font-weight: 700;
    color: #1d2327;
}

.adesk-apt-time-end {
    font-size: 11px;
    color: #9ca3af;
}

.adesk-apt-color-bar {
    width: 4px;
    height: 40px;
    border-radius: 2px;
    flex-shrink: 0;
}

.adesk-apt-info {
    flex: 1;
    min-width: 0;
}

.adesk-apt-customer {
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
}

.adesk-apt-meta {
    display: flex;
    gap: 12px;
    margin-top: 2px;
    font-size: 12px;
    color: #888;
}

.adesk-apt-cal-name {
    color: #6b7280;
    font-weight: 500;
}

.adesk-apt-staff-name {
    color: #7c3aed;
    font-size: 12px;
}

.adesk-apt-status-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.adesk-apt-checkin-badge {
    font-size: 11px;
    padding: 1px 6px;
}

.adesk-apt-checkin-badge .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
}

.adesk-apt-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

/* === Week View === */
.adesk-apt-view-toggle {
    display: flex;
    gap: 4px;
}

/* === Appointment Detail Styles (used by list/detail views) === */
.adesk-apt-time {
    font-weight: 600;
    font-size: 13px;
    color: #333;
    margin-bottom: 4px;
}

.adesk-apt-customer {
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.adesk-apt-service {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}

.adesk-apt-calendar {
    font-size: 11px;
    color: #999;
}

/* === Appointment Detail View === */
.adesk-apt-detail-view {
    max-width: 800px;
    margin: 0 auto;
}

.adesk-apt-detail-card {
    padding: 24px;
    margin-bottom: 20px;
}

.adesk-apt-detail-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.adesk-apt-detail-row:last-child {
    border-bottom: none;
}

.adesk-apt-detail-row label {
    font-weight: 600;
    color: #333;
    min-width: 150px;
    flex-shrink: 0;
}

.adesk-apt-detail-row span {
    color: #666;
}

.adesk-apt-detail-actions {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    flex-wrap: wrap;
}
.adesk-apt-actions-left,
.adesk-apt-actions-right {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* === Appointment Counter === */
.adesk-apt-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    margin: 16px 0;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
}

.adesk-apt-counter .dashicons {
    color: #2271b1;
    font-size: 18px;
}

#adesk-apt-count-text {
    font-weight: 500;
}

/* === FullCalendar Integration === */
#adesk-appointment-calendar {
    margin-top: 20px;
    background: #fff;
    border-radius: 4px;
    padding: 16px;
}

/* FullCalendar button styling to match WordPress */
.fc .fc-button-primary {
    background-color: #2271b1;
    border-color: #135e96;
    color: #fff;
}

.fc .fc-button-primary:hover {
    background-color: #135e96;
    border-color: #135e96;
}

.fc .fc-button-primary:disabled {
    background-color: #a7aaad;
    border-color: #a7aaad;
}

.fc .fc-toolbar-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
}

.fc-event {
    cursor: pointer;
    border-radius: 3px;
}

/* === Select2 Integration === */
.select2-container--default .select2-selection--single {
    height: 34px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 12px;
    line-height: 32px;
    font-size: 14px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 32px;
}

.select2-container--default .select2-selection--multiple {
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 34px;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    padding: 2px 8px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #e5e5e5;
    border: 1px solid #aaa;
    border-radius: 4px;
    padding: 2px 8px;
    margin: 2px;
    font-size: 13px;
}

.select2-container .select2-search--inline .select2-search__field {
    margin-top: 4px;
    padding: 0;
    font-size: 14px;
}

.select2-dropdown {
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.select2-results__option {
    padding: 8px 12px;
    font-size: 14px;
}

.select2-results__option--highlighted[aria-selected] {
    background-color: #2271b1;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #f0f0f0;
}

/* === Help Box === */
.adesk-help-box {
    margin-top: 32px;
    padding: 24px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    border-left: 4px solid #2271b1;
}

.adesk-help-box h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.adesk-help-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.adesk-help-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.adesk-help-step-num {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #2271b1;
    color: #fff;
    border-radius: 50%;
    font-weight: 600;
    font-size: 16px;
}

.adesk-help-step-content {
    flex: 1;
    padding-top: 4px;
}

.adesk-help-step-content strong {
    display: block;
    margin-bottom: 4px;
    color: #333;
    font-size: 15px;
}

.adesk-help-step-content span {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* === DataTables Integration === */
#adesk-customer-table_wrapper .dt-search input {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}
#adesk-customer-table_wrapper .dt-length select {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
}
#adesk-customer-table_wrapper .dt-paging .dt-paging-button {
    padding: 4px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 0 2px;
    cursor: pointer;
    background: #fff;
}
#adesk-customer-table_wrapper .dt-paging .dt-paging-button.current {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}
#adesk-customer-table_wrapper .dt-paging .dt-paging-button.disabled {
    opacity: 0.4;
    cursor: default;
}
#adesk-customer-table_wrapper .dt-info {
    color: #666;
    font-size: 13px;
}
.adesk-wrap table.dataTable thead th {
    border-bottom: 2px solid #e5e5e5;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 0.03em;
}
.adesk-wrap table.dataTable tbody td {
    padding: 10px 8px;
    border-bottom: 1px solid #f0f0f0;
}
.adesk-wrap table.dataTable tbody tr {
    background: #fff !important;
}
.adesk-wrap table.dataTable tbody tr:hover {
    background: #f8fafc !important;
}

/* === Cockpit Dashboard === */
#adesk-cockpit-container {
    display: flex;
    gap: 20px;
    width: 100%;
    align-items: flex-start;
}

#adesk-cockpit-left {
    flex: 2;
    display: flex;
    gap: 16px;
    min-width: 0;
}

#adesk-cockpit-cal {
    flex: 1;
    min-width: 0;
}

#adesk-cockpit-detail {
    flex: 1;
    min-width: 0;
    display: none;
}

#adesk-cockpit-detail .adesk-card {
    position: sticky;
    top: 32px;
}

#adesk-cockpit-right {
    flex: 0 0 340px;
    min-width: 0;
}

.adesk-cockpit-detail-empty {
    text-align: center;
    padding: 40px 20px;
}

.adesk-cockpit-detail-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.adesk-cockpit-detail-row {
    display: flex;
    gap: 8px;
    font-size: 13px;
    padding: 4px 0;
    border-bottom: 1px solid #f5f5f5;
}

.adesk-cockpit-detail-row:last-child {
    border-bottom: none;
}

.adesk-cockpit-detail-row label {
    color: #64748b;
    min-width: 80px;
    font-weight: 500;
    flex-shrink: 0;
}

.adesk-cockpit-detail-row span {
    color: #1d2327;
    word-break: break-word;
}

.adesk-cockpit-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.adesk-cockpit-apt-selected {
    background: #eff6ff !important;
    border-left: 3px solid #2563eb;
    opacity: 1 !important;
}

.adesk-cockpit-main {
    min-width: 0;
}

.adesk-cockpit-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.adesk-cockpit-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.adesk-cockpit-stat {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.adesk-cockpit-stat-num {
    font-size: 24px;
    font-weight: 700;
    color: #1d2327;
    line-height: 1;
    margin-bottom: 4px;
}

.adesk-cockpit-stat-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.adesk-cockpit-stat-confirmed .adesk-cockpit-stat-num { color: #059669; }
.adesk-cockpit-stat-pending .adesk-cockpit-stat-num { color: #d97706; }
.adesk-cockpit-stat-completed .adesk-cockpit-stat-num { color: #2563eb; }
.adesk-cockpit-stat-cancelled .adesk-cockpit-stat-num { color: #dc2626; }

.adesk-cockpit-timeline {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.adesk-cockpit-apt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.adesk-cockpit-apt:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: #2563eb;
}

.adesk-cockpit-apt-past {
    opacity: 0.5;
}

.adesk-cockpit-apt-current {
    border-color: #2563eb;
    border-width: 2px;
    background: #eff6ff;
}

.adesk-cockpit-apt-time {
    font-size: 14px;
    font-weight: 700;
    color: #1d2327;
    min-width: 45px;
    text-align: center;
}

.adesk-cockpit-apt-bar {
    width: 4px;
    height: 36px;
    border-radius: 2px;
    flex-shrink: 0;
}

.adesk-cockpit-apt-info {
    flex: 1;
    min-width: 0;
}

.adesk-cockpit-apt-customer {
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.adesk-cockpit-apt-service {
    font-size: 12px;
    color: #6b7280;
}

.adesk-cockpit-nextup-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f1;
}

.adesk-cockpit-nextup-item:last-child {
    border-bottom: none;
}

.adesk-cockpit-nextup-time {
    font-size: 13px;
    font-weight: 700;
    color: #1d2327;
    min-width: 45px;
}

.adesk-cockpit-nextup-info {
    flex: 1;
    min-width: 0;
    font-size: 13px;
}

.adesk-cockpit-nextup-name {
    font-weight: 500;
    color: #1d2327;
}

.adesk-cockpit-nextup-service {
    font-size: 12px;
    color: #888;
}

.adesk-cockpit-search {
    display: flex;
    gap: 8px;
}

.adesk-cockpit-search input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
}

.adesk-cockpit-search input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
    outline: none;
}

.adesk-cockpit-search-results {
    margin-top: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.adesk-cockpit-search-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    border-bottom: 1px solid #f5f5f5;
    font-size: 13px;
    cursor: pointer;
}

.adesk-cockpit-search-item:hover {
    background: #f8fafc;
}

.adesk-cockpit-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.adesk-cockpit-toggles {
    display: flex;
    gap: 4px;
}

.adesk-cockpit-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.15s;
    padding: 0;
}

.adesk-cockpit-toggle:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.adesk-cockpit-toggle-active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.adesk-cockpit-toggle-active:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}

.adesk-cockpit-toggle .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
}

@media (max-width: 1200px) {
    #adesk-cockpit-container {
        flex-wrap: wrap;
    }
    #adesk-cockpit-left {
        flex: 1 1 100%;
    }
    #adesk-cockpit-right {
        flex: 1 1 100%;
    }
}

@media (max-width: 900px) {
    #adesk-cockpit-container {
        flex-direction: column;
    }
    #adesk-cockpit-left {
        flex-direction: column;
    }
    #adesk-cockpit-right {
        flex: 1 1 auto;
        width: 100%;
    }
}

/* === Cockpit Tokens === */
.adesk-cockpit-token-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    gap: 8px;
}

.adesk-cockpit-token-item:last-child {
    border-bottom: none;
}

.adesk-cockpit-token-info {
    flex: 1;
    min-width: 0;
}

.adesk-cockpit-token-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.adesk-badge-success {
    background: #dcfce7;
    color: #166534;
}

.adesk-badge-muted {
    background: #f1f5f9;
    color: #94a3b8;
}

.adesk-loading-inline {
    text-align: center;
    padding: 8px;
}

/* Responsive */
@media (max-width: 782px) {
    .adesk-header-inner {
        padding: 12px 16px;
    }

    .adesk-body {
        padding: 16px;
    }

    .adesk-info-grid {
        grid-template-columns: 1fr;
    }

    .adesk-option-row {
        flex-direction: column;
        gap: 6px;
    }

    .adesk-option-label-col {
        flex: none;
        padding-right: 0;
    }

    .adesk-tabs {
        flex-wrap: wrap;
    }
}

/* === Cockpit View Switcher === */
.adesk-cockpit-view-switch {
    display: inline-flex;
    gap: 0;
    background: #f0f0f1;
    border-radius: 6px;
    padding: 2px;
}

.adesk-cockpit-view-btn {
    padding: 5px 14px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #50575e;
    border-radius: 4px;
    transition: all 0.15s;
}

.adesk-cockpit-view-btn:hover {
    color: #1d2327;
    background: rgba(255, 255, 255, 0.5);
}

.adesk-cockpit-view-btn.active {
    background: #fff;
    color: #1d2327;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* === Cockpit Date Navigation === */
.adesk-cockpit-date-nav {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.adesk-cockpit-weekday {
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
    white-space: nowrap;
    padding: 0 4px;
}

.adesk-cockpit-date-input {
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 12px;
    max-width: 140px;
}

.adesk-cockpit-date-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
    outline: none;
}

.adesk-cockpit-cal-filter {
    font-size: 12px !important;
    padding: 4px 8px !important;
}

.adesk-cockpit-top-header {
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.adesk-cockpit-top-header .adesk-section-title {
    white-space: nowrap;
}

.adesk-cockpit-top-header .adesk-cockpit-header-right {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex: 1;
    min-width: 0;
}

/* === Cockpit Week View === */
.adesk-cockpit-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.adesk-cockpit-week-day {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    min-height: 200px;
    overflow: hidden;
}

.adesk-cockpit-week-day-today {
    border-color: #2563eb;
    border-width: 2px;
}

.adesk-cockpit-week-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8fafc;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background 0.15s;
}

.adesk-cockpit-week-day-header:hover {
    background: #eff6ff;
}

.adesk-cockpit-week-day-today .adesk-cockpit-week-day-header {
    background: #eff6ff;
}

.adesk-cockpit-week-day-name {
    font-size: 12px;
    font-weight: 600;
    color: #1d2327;
}

.adesk-cockpit-week-day-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    background: #2563eb;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 0 6px;
}

.adesk-cockpit-week-day-empty {
    padding: 12px;
    text-align: center;
    color: #ccc;
    font-size: 13px;
}

.adesk-cockpit-week-day-list {
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.adesk-cockpit-week-apt {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 12px;
}

.adesk-cockpit-week-apt:hover {
    background: #f0f6ff;
}

.adesk-cockpit-week-apt-time {
    font-weight: 600;
    color: #1d2327;
    min-width: 36px;
    flex-shrink: 0;
}

.adesk-cockpit-week-apt-bar {
    width: 3px;
    height: 16px;
    border-radius: 1px;
    flex-shrink: 0;
}

.adesk-cockpit-week-apt-name {
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* === Cockpit Month View === */
.adesk-cockpit-month {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.adesk-cockpit-month-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f8fafc;
    border-bottom: 1px solid #e0e0e0;
}

.adesk-cockpit-month-weekday {
    padding: 8px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.adesk-cockpit-month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.adesk-cockpit-month-cell {
    padding: 8px;
    min-height: 60px;
    border-right: 1px solid #f0f0f1;
    border-bottom: 1px solid #f0f0f1;
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
}

.adesk-cockpit-month-cell:nth-child(7n) {
    border-right: none;
}

.adesk-cockpit-month-cell:hover {
    background: #f8fafc;
}

.adesk-cockpit-month-cell-other {
    opacity: 0.35;
}

.adesk-cockpit-month-cell-today {
    background: #eff6ff;
}

.adesk-cockpit-month-cell-today:hover {
    background: #dbeafe;
}

.adesk-cockpit-month-cell-has-apts {
    background: #fefce8;
}

.adesk-cockpit-month-cell-has-apts:hover {
    background: #fef9c3;
}

.adesk-cockpit-month-cell-today.adesk-cockpit-month-cell-has-apts {
    background: #dbeafe;
}

.adesk-cockpit-month-cell-day {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
}

.adesk-cockpit-month-cell-today .adesk-cockpit-month-cell-day {
    color: #2563eb;
    font-weight: 700;
}

.adesk-cockpit-month-cell-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    background: #2563eb;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 0 6px;
}

@media (max-width: 900px) {
    .adesk-cockpit-week {
        grid-template-columns: 1fr;
    }

    .adesk-cockpit-week-day {
        min-height: auto;
    }

    .adesk-cockpit-month-cell {
        min-height: 40px;
        padding: 4px;
    }

    .adesk-cockpit-month-cell-day {
        font-size: 11px;
    }

    .adesk-cockpit-view-switch {
        width: 100%;
        justify-content: center;
    }

    .adesk-cockpit-date-nav {
        width: 100%;
        justify-content: center;
    }
}

/* === Loading Spin Animation === */
.spin {
    animation: spin 1s linear infinite;
}

/* --- Modal --- */

.adesk-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
    overflow-y: auto;
}

.adesk-modal {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 640px;
    position: relative;
    animation: sbModalIn 0.15s ease-out;
}

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

.adesk-modal-header h2 {
    margin: 0;
    font-size: 16px;
}

.adesk-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #888;
    padding: 0 4px;
    line-height: 1;
}

.adesk-modal-close:hover {
    color: #333;
}

.adesk-modal-body {
    padding: 20px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
}

.adesk-modal-footer {
    padding: 12px 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

@keyframes sbModalIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Email History */
.adesk-email-history-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.adesk-email-history-table th { text-align: left; padding: 6px 8px; border-bottom: 2px solid #e5e5e5; font-weight: 600; font-size: 12px; color: #666; }
.adesk-email-history-table td { padding: 6px 8px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.adesk-email-history-table tr:hover td { background: #f9f9f9; }

/* Queue Badge in Header */
.adesk-queue-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 8px;
}

.adesk-queue-badge:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.adesk-queue-badge-active {
    background: #6366f1;
    color: #fff;
}

.adesk-queue-badge-active .adesk-queue-badge-count {
    font-weight: 700;
}

/* Queue Tab */
.adesk-queue-tab-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.adesk-queue-tab-header h2 {
    margin: 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.adesk-queue-tab-actions {
    display: flex;
    gap: 8px;
}

.adesk-queue-stats-bar {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.adesk-queue-stat-item {
    flex: 1;
    text-align: center;
    padding: 14px 10px;
    border-right: 1px solid #e2e8f0;
}

.adesk-queue-stat-item:last-child {
    border-right: none;
}

.adesk-queue-stat-value {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.adesk-queue-stat-label {
    display: block;
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.adesk-queue-tab-body {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
}

.adesk-queue-tab-staff h3,
.adesk-queue-tab-waiting h3 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin: 0 0 12px 0;
}

.adesk-queue-tab-staff {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
}

.adesk-queue-counter-count {
    font-weight: 400;
    color: #94a3b8;
    font-size: 12px;
}

.adesk-queue-counter {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.adesk-queue-counter:last-child {
    border-bottom: none;
}

.adesk-queue-counter-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.adesk-queue-counter-ticket {
    font-size: 18px;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 2px;
}

.adesk-queue-counter-customer {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 2px;
}

.adesk-queue-counter-status {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.adesk-queue-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.adesk-queue-btn-group .adesk-btn {
    white-space: nowrap;
}

.adesk-queue-btn-group .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 2px;
}

.adesk-queue-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100100;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    color: #fff;
    background: #475569;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.adesk-queue-toast-visible {
    opacity: 1;
    transform: translateY(0);
}

.adesk-queue-toast.adesk-status-warning {
    background: #d97706;
}

.adesk-queue-toast.adesk-status-error {
    background: #dc2626;
}

.adesk-queue-tab-waiting {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
}

/* Queue waiting table */
.adesk-queue-table-wrap {
    max-height: 500px;
    overflow-y: auto;
}

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

.adesk-queue-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

.adesk-queue-table th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 8px;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.adesk-queue-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.adesk-queue-table tbody tr:hover {
    background: #f8fafc;
}

.adesk-queue-table-wait {
    color: #94a3b8;
    font-size: 12px;
    white-space: nowrap;
    width: 40px;
}

.adesk-queue-table-num {
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    width: 60px;
}

.adesk-queue-table-name {
    color: #475569;
}

.adesk-queue-table-badge {
    width: 20px;
    text-align: center;
}

.adesk-queue-table-status { white-space: nowrap; }
.adesk-queue-table-counter { color: #64748b; font-size: 12px; white-space: nowrap; }
.adesk-queue-table-duration { color: #94a3b8; font-size: 12px; white-space: nowrap; }

.adesk-queue-badge-waiting { background: #dbeafe; color: #1d4ed8; padding: 2px 6px; border-radius: 4px; font-size: 11px; }
.adesk-queue-badge-called { background: #fef3c7; color: #b45309; padding: 2px 6px; border-radius: 4px; font-size: 11px; }
.adesk-queue-badge-serving { background: #d1fae5; color: #047857; padding: 2px 6px; border-radius: 4px; font-size: 11px; }
.adesk-queue-badge-completed { background: #f1f5f9; color: #64748b; padding: 2px 6px; border-radius: 4px; font-size: 11px; }
.adesk-queue-badge-skipped { background: #fee2e2; color: #dc2626; padding: 2px 6px; border-radius: 4px; font-size: 11px; }
.adesk-queue-badge-declined { background: #fef3c7; color: #92400e; padding: 2px 6px; border-radius: 4px; font-size: 11px; }
.adesk-queue-badge-no_show { background: #fee2e2; color: #991b1b; padding: 2px 6px; border-radius: 4px; font-size: 11px; }

.adesk-queue-status-completed td,
.adesk-queue-status-skipped td,
.adesk-queue-status-declined td,
.adesk-queue-status-no_show td { opacity: 0.7; }

.adesk-queue-counter-last { color: #94a3b8; font-size: 11px; margin-bottom: 4px; }

.adesk-queue-paging {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
    font-size: 12px;
}

.adesk-queue-paging-left,
.adesk-queue-paging-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.adesk-queue-per-page {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px 4px;
    font-size: 12px;
    background: #fff;
}

.adesk-queue-paging-total {
    color: #94a3b8;
}

.adesk-queue-paging-info {
    color: #64748b;
    font-size: 12px;
    min-width: 40px;
    text-align: center;
}

.adesk-queue-tab-empty {
    color: #94a3b8;
    font-size: 13px;
}

/* === Queue Showcase (empty state) === */

.adesk-queue-showcase {
    max-width: 900px;
    margin: 0 auto;
    padding: 16px 0;
}

.adesk-queue-showcase-hero {
    text-align: center;
    padding: 32px 24px 24px;
}

.adesk-queue-showcase-icon {
    font-size: 56px;
    width: 56px;
    height: 56px;
    color: #6366f1;
    display: block;
    margin: 0 auto 16px;
}

.adesk-queue-showcase-hero h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px;
}

.adesk-queue-showcase-subtitle {
    font-size: 15px;
    color: #64748b;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.adesk-queue-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.adesk-queue-showcase-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.adesk-queue-showcase-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.adesk-queue-showcase-card .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #6366f1;
    margin-bottom: 10px;
}

.adesk-queue-showcase-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 6px;
}

.adesk-queue-showcase-card p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.45;
}

.adesk-queue-showcase-demo {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    text-align: center;
}

.adesk-queue-showcase-demo h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 20px;
}

.adesk-queue-showcase-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.adesk-queue-showcase-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 0 1 200px;
}

.adesk-queue-showcase-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #6366f1;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adesk-queue-showcase-step-text {
    font-size: 13px;
    color: #475569;
    line-height: 1.4;
}

.adesk-queue-showcase-arrow {
    font-size: 24px;
    color: #c7d2fe;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: -20px;
}

.adesk-queue-showcase-cta {
    text-align: center;
    padding: 8px 0 0;
}

.adesk-queue-showcase-cta p {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 12px;
}

.adesk-queue-showcase-cta .adesk-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

@media (max-width: 900px) {
    .adesk-queue-tab-body {
        grid-template-columns: 1fr;
    }
    .adesk-queue-stats-bar {
        flex-wrap: wrap;
    }
    .adesk-queue-stat-item {
        flex: 0 0 33.33%;
    }
    .adesk-queue-showcase-grid {
        grid-template-columns: 1fr 1fr;
    }
    .adesk-queue-showcase-flow {
        flex-direction: column;
    }
    .adesk-queue-showcase-arrow {
        transform: rotate(90deg);
        margin-top: 0;
    }
}

@media (max-width: 600px) {
    .adesk-queue-showcase-grid {
        grid-template-columns: 1fr;
    }
}

/* Queue ticket appointment indicator */
.adesk-queue-ticket-apt {
    color: #6366f1;
    font-size: 12px;
    margin-left: 4px;
}
.adesk-queue-ticket-apt .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    vertical-align: middle;
}

/* Cockpit Queue Panel */
.adesk-cockpit-queue-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

.adesk-cockpit-queue-stats {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 8px;
    font-size: 12px;
    color: #666;
}

.adesk-cockpit-queue-stats strong {
    color: #333;
}

.adesk-cockpit-queue-staff {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.adesk-cockpit-queue-counter {
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #ccc;
}

.adesk-cockpit-queue-counter[data-staff-status="available"] {
    border-left-color: #2ecc71;
}

.adesk-cockpit-queue-counter[data-staff-status="busy"] {
    border-left-color: #3498db;
}

.adesk-cockpit-queue-counter[data-staff-status="paused"] {
    border-left-color: #f1c40f;
}

.adesk-cockpit-queue-counter-head {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
}

.adesk-cockpit-queue-counter-ticket {
    font-size: 12px;
    color: #555;
    margin-bottom: 4px;
}

.adesk-cockpit-queue-counter-btns {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.adesk-cockpit-queue-waiting {
    margin-top: 8px;
    border-top: 1px solid #eee;
    padding-top: 8px;
}

.adesk-cockpit-queue-waiting-title {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.adesk-cockpit-queue-ticket {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    font-size: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.adesk-cockpit-queue-ticket:last-child {
    border-bottom: none;
}

.adesk-cockpit-queue-ticket-num {
    font-weight: 600;
    color: #2c3e50;
    min-width: 50px;
}

.adesk-cockpit-queue-ticket-name {
    flex: 1;
    color: #555;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.adesk-cockpit-queue-ticket-wait {
    color: #888;
    font-size: 11px;
    white-space: nowrap;
}

/* Queue Tab: Multi-Calendar Sections */
.adesk-queue-multi-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.adesk-queue-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.adesk-queue-section-header h3 {
    display: flex;
    align-items: center;
    gap: 6px;
}

.adesk-queue-section-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.adesk-queue-pull-name {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 8px;
}

/* Queue Info Box (URLs + Shortcodes) */
.adesk-queue-info-box {
    margin-top: 16px;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 12px;
}

.adesk-queue-info-title {
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.adesk-queue-info-title .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.adesk-queue-info-warning {
    color: #b45309;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 4px;
    padding: 6px 8px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.adesk-queue-info-warning .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.adesk-queue-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.adesk-queue-info-label {
    color: #666;
    min-width: 120px;
}

.adesk-queue-info-code {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 11px;
    word-break: break-all;
    user-select: all;
    flex: 1;
}

.adesk-queue-info-copy {
    flex-shrink: 0;
    padding: 2px 6px !important;
    line-height: 1;
}

.adesk-queue-info-copy .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* === Pro Teaser Box === */

.adesk-pro-teaser {
    margin: 24px 0 8px;
    padding: 16px 20px;
    background: #f0f6ff;
    border: 1px solid #c3dafe;
    border-radius: 8px;
    font-size: 13px;
    color: #1e3a5f;
    line-height: 1.5;
}

.adesk-pro-teaser-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 13px;
}

.adesk-pro-teaser-header .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #6b7280;
}

.adesk-pro-teaser-list {
    margin: 0 0 10px 20px;
    padding: 0;
    list-style: disc;
}

.adesk-pro-teaser-list li {
    margin-bottom: 2px;
    color: #374151;
    font-size: 12px;
}

.adesk-pro-teaser-link {
    font-size: 12px;
    font-weight: 500;
    color: #2563eb;
    text-decoration: none;
}

.adesk-pro-teaser-link:hover {
    text-decoration: underline;
    color: #1d4ed8;
}

/* === Go Pro Page === */

.adesk-gopro {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 0;
}

.adesk-gopro-header {
    text-align: center;
    margin-bottom: 32px;
}

.adesk-gopro-header-icon {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #f59e0b;
    display: block;
    margin: 0 auto 12px;
}

.adesk-gopro-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px;
}

.adesk-gopro-header p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.adesk-gopro-table-wrap {
    overflow-x: auto;
    margin-bottom: 32px;
}

.adesk-gopro-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.adesk-gopro-table th,
.adesk-gopro-table td {
    padding: 10px 16px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
}

.adesk-gopro-feature-col {
    text-align: left !important;
    font-weight: 500;
    color: #374151;
}

.adesk-gopro-table thead th {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.adesk-gopro-plan-pro {
    background: rgba(37, 99, 235, 0.03);
}

.adesk-gopro-table thead .adesk-gopro-plan-pro {
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
}

.adesk-gopro-plan-business {
    background: rgba(124, 58, 237, 0.03);
}

.adesk-gopro-table thead .adesk-gopro-plan-business {
    background: rgba(124, 58, 237, 0.08);
    color: #7c3aed;
}

.adesk-gopro-check {
    color: #16a34a;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.adesk-gopro-dash {
    color: #cbd5e1;
    font-size: 16px;
}

.adesk-gopro-table tbody tr:hover {
    background: #f8fafc;
}

.adesk-gopro-table tbody tr:last-child td {
    border-bottom: none;
}

.adesk-gopro-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.adesk-gopro-btn-pro,
.adesk-gopro-btn-business {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
    cursor: pointer;
    border: none;
    line-height: 1.4;
}

.adesk-gopro-btn-pro {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
}

.adesk-gopro-btn-pro:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #fff;
}

.adesk-gopro-btn-business {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
}

.adesk-gopro-btn-business:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #fff;
}

.adesk-gopro-btn-pro .dashicons,
.adesk-gopro-btn-business .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.adesk-gopro-roadmap {
    text-align: center;
    padding: 16px 0;
}

.adesk-gopro-roadmap a {
    color: #2563eb;
    text-decoration: none;
    font-size: 13px;
}

.adesk-gopro-roadmap a:hover {
    text-decoration: underline;
}

.adesk-gopro-roadmap p {
    color: #64748b;
    font-size: 13px;
    margin: 0;
}

/* Go Pro tab highlight */
.adesk-tab[data-tab="gopro"] {
    color: #f59e0b;
}

.adesk-tab[data-tab="gopro"]:hover {
    color: #d97706;
}

.adesk-tab[data-tab="gopro"] .dashicons {
    color: #f59e0b;
}

/* Limit Popup */
.adesk-limit-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: adesk-fade-in 0.2s ease;
}

@keyframes adesk-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.adesk-limit-popup {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 32px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: adesk-slide-up 0.25s ease;
}

@keyframes adesk-slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.adesk-limit-popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.adesk-limit-popup-close:hover {
    color: #334155;
}

.adesk-limit-popup-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.adesk-limit-popup-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #fff;
}

.adesk-limit-popup h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px;
}

.adesk-limit-popup p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 24px;
}

.adesk-limit-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.adesk-limit-popup-actions .adesk-gopro-btn-pro {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
}

.adesk-limit-popup-actions .adesk-btn-secondary {
    font-size: 13px;
    color: #64748b;
}
