/**
 * DigiCulture Lab - Components
 * Stili per componenti riutilizzabili
 */

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-family: inherit;
    font-size: var(--text-sm);
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

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

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--bg-elevated);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
    background-color: var(--bg-hover);
    border-color: var(--border-dark);
}

.btn-ghost {
    background-color: transparent;
    color: var(--text-light);
}

.btn-ghost:hover:not(:disabled) {
    background-color: var(--bg-hover);
    color: var(--text);
}

.btn-success {
    background-color: var(--success);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background-color: #059669;
}

.btn-danger {
    background-color: var(--error);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background-color: #DC2626;
}

.btn-sm {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
}

.btn-lg {
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-base);
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-light);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.icon-btn:hover {
    background-color: var(--bg-hover);
    color: var(--text);
}

/* ========================================
   CARDS
   ======================================== */
.card {
    background-color: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    transition: all var(--transition);
}

.card:hover {
    border-color: var(--border-dark);
}

.card-clickable {
    cursor: pointer;
}

.card-clickable:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--space-4);
}

.card-title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin: 0;
}

.card-subtitle {
    font-size: var(--text-sm);
    color: var(--text-light);
    margin-top: var(--space-1);
}

.card-body {
    color: var(--text-light);
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border);
}

/* Module Cards */
.module-card {
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.module-card[data-module="1"]::before { background: var(--module-1); }
.module-card[data-module="2"]::before { background: var(--module-2); }
.module-card[data-module="3"]::before { background: var(--module-3); }
.module-card[data-module="4"]::before { background: var(--module-4); }

.module-icon {
    font-size: 48px;
    margin-bottom: var(--space-3);
}

/* ========================================
   BADGES
   ======================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 500;
    border-radius: var(--radius-full);
    background-color: var(--bg-hover);
    color: var(--text-light);
}

.badge-primary {
    background-color: var(--primary-bg);
    color: var(--primary);
}

.badge-success {
    background-color: var(--success-bg);
    color: var(--success);
}

.badge-warning {
    background-color: var(--warning-bg);
    color: var(--warning);
}

.badge-error {
    background-color: var(--error-bg);
    color: var(--error);
}

.badge-module-1 { background: rgba(59, 130, 246, 0.1); color: var(--module-1); }
.badge-module-2 { background: rgba(139, 92, 246, 0.1); color: var(--module-2); }
.badge-module-3 { background: rgba(6, 182, 212, 0.1); color: var(--module-3); }
.badge-module-4 { background: rgba(245, 158, 11, 0.1); color: var(--module-4); }

/* ========================================
   PROGRESS BAR
   ======================================== */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--bg-hover);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-sm);
    color: var(--text-light);
    margin-top: var(--space-2);
}

/* Circular Progress */
.progress-circle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.progress-circle svg {
    transform: rotate(-90deg);
}

.progress-circle-bg {
    fill: none;
    stroke: var(--bg-hover);
}

.progress-circle-fill {
    fill: none;
    stroke: url(#progressGradient);
    stroke-linecap: round;
    transition: stroke-dashoffset var(--transition-slow);
}

.progress-circle-text {
    position: absolute;
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--primary);
}

/* ========================================
   FORMS
   ======================================== */
.form-group {
    margin-bottom: var(--space-4);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text);
    margin-bottom: var(--space-2);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-family: inherit;
    font-size: var(--text-base);
    color: var(--text);
    background-color: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.form-input:hover,
.form-textarea:hover,
.form-select:hover {
    border-color: var(--border-dark);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
    outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-lighter);
}

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

.form-helper {
    font-size: var(--text-sm);
    color: var(--text-light);
    margin-top: var(--space-1);
}

.form-error {
    color: var(--error);
}

/* Checkbox & Radio */
.checkbox-group,
.radio-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.checkbox-label,
.radio-label {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    cursor: pointer;
}

.checkbox-input,
.radio-input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Toggle Switch */
.toggle {
    position: relative;
    width: 48px;
    height: 26px;
    background-color: var(--border-dark);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.toggle.active {
    background-color: var(--primary);
}

.toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast);
}

.toggle.active::after {
    transform: translateX(22px);
}

/* ========================================
   TABS
   ======================================== */
.tabs {
    display: flex;
    gap: var(--space-1);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--space-6);
    overflow-x: auto;
}

.tab {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-light);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.tab:hover {
    color: var(--text);
    background-color: var(--bg-hover);
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
    animation: fadeIn var(--transition);
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========================================
   MODAL
   ======================================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: var(--z-modal-backdrop);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background-color: var(--bg-elevated);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.95) translateY(10px);
    transition: transform var(--transition);
}

.modal-backdrop.active .modal {
    transform: scale(1) translateY(0);
}

.modal-lg { max-width: 700px; }
.modal-xl { max-width: 900px; }

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--border);
}

.modal-title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin: 0;
}

.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-light);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background-color: var(--bg-hover);
    color: var(--text);
}

.modal-body {
    padding: var(--space-6);
    overflow-y: auto;
    max-height: 60vh;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--border);
}

/* ========================================
   TOAST
   ======================================== */
.toast-container {
    position: fixed;
    bottom: var(--space-6);
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background-color: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    animation: slideUp var(--transition);
    min-width: 300px;
    max-width: 500px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast-icon {
    font-size: var(--text-xl);
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.toast-message {
    font-size: var(--text-sm);
    color: var(--text-light);
}

.toast-close {
    padding: var(--space-1);
    background: none;
    border: none;
    color: var(--text-lighter);
    cursor: pointer;
    font-size: var(--text-lg);
    line-height: 1;
}

.toast-close:hover {
    color: var(--text);
}

.toast-success { border-left: 4px solid var(--success); }
.toast-success .toast-icon { color: var(--success); }

.toast-error { border-left: 4px solid var(--error); }
.toast-error .toast-icon { color: var(--error); }

.toast-warning { border-left: 4px solid var(--warning); }
.toast-warning .toast-icon { color: var(--warning); }

.toast-info { border-left: 4px solid var(--info); }
.toast-info .toast-icon { color: var(--info); }

/* ========================================
   CHAT WINDOW
   ======================================== */
.chat-window {
    position: fixed;
    bottom: calc(var(--space-6) + 70px);
    right: var(--space-6);
    width: var(--chat-width);
    max-height: 600px;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    z-index: var(--z-modal);
    overflow: hidden;
    animation: slideUp var(--transition);
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4);
    background-color: var(--bg);
    border-bottom: 1px solid var(--border);
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.chat-avatar {
    font-size: 28px;
}

.chat-header-text h3 {
    font-size: var(--text-base);
    font-weight: 600;
    margin: 0;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-xs);
    color: var(--text-light);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background-color: var(--text-lighter);
}

.status-dot.online {
    background-color: var(--success);
}

.chat-header-actions {
    display: flex;
    gap: var(--space-1);
}

.chat-messages {
    flex: 1;
    padding: var(--space-4);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    min-height: 300px;
    max-height: 400px;
}

.message {
    display: flex;
    gap: var(--space-3);
    max-width: 85%;
}

.message.user {
    margin-left: auto;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.message-content {
    display: flex;
    flex-direction: column;
}

.message-bubble {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-xl);
    line-height: 1.5;
}

.message.bot .message-bubble {
    background-color: var(--bg);
    border-bottom-left-radius: var(--radius-sm);
}

.message.user .message-bubble {
    background: var(--gradient-primary);
    color: white;
    border-bottom-right-radius: var(--radius-sm);
}

.message-time {
    font-size: var(--text-xs);
    color: var(--text-lighter);
    margin-top: var(--space-1);
}

.message.user .message-time {
    text-align: right;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: var(--space-3);
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background-color: var(--text-lighter);
    border-radius: var(--radius-full);
    animation: typingBounce 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-4px); }
}

.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding: 0 var(--space-4) var(--space-3);
}

.suggestion-chip {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
    color: var(--primary);
    background-color: var(--primary-bg);
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.suggestion-chip:hover {
    border-color: var(--primary);
    background-color: white;
}

.chat-input-container {
    display: flex;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border-top: 1px solid var(--border);
}

.chat-input {
    flex: 1;
    padding: var(--space-3);
    font-family: inherit;
    font-size: var(--text-sm);
    color: var(--text);
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    resize: none;
    max-height: 100px;
}

.chat-input:focus {
    border-color: var(--primary);
    outline: none;
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-lg);
    color: white;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

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

.chat-send-btn:not(:disabled):hover {
    transform: scale(1.05);
}

.chat-footer {
    padding: var(--space-2) var(--space-4);
    text-align: center;
    color: var(--text-lighter);
    font-size: var(--text-xs);
    border-top: 1px solid var(--border);
    background-color: var(--bg);
}

/* ========================================
   ACCORDION
   ======================================== */
.accordion {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid var(--border);
}

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

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--space-4);
    font-weight: 500;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.accordion-header:hover {
    background-color: var(--bg);
}

.accordion-icon {
    transition: transform var(--transition-fast);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
}

.accordion-body {
    padding: var(--space-4);
    padding-top: 0;
    color: var(--text-light);
}

/* ========================================
   EMPTY STATE
   ======================================== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-12);
    text-align: center;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: var(--space-4);
    opacity: 0.5;
}

.empty-state-title {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.empty-state-description {
    color: var(--text-light);
    margin-bottom: var(--space-6);
    max-width: 400px;
}

/* ========================================
   SKELETON LOADING
   ======================================== */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-hover) 25%,
        var(--border) 50%,
        var(--bg-hover) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

.skeleton-text {
    height: 1em;
    margin-bottom: var(--space-2);
}

.skeleton-text:last-child {
    width: 70%;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========================================
   STATS CARDS
   ======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-4);
}

.stat-card {
    background-color: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    text-align: center;
}

.stat-value {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: var(--space-1);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--text-light);
}

/* ========================================
   LESSON CARD
   ======================================== */
.lesson-card {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-4);
    background-color: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.lesson-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.lesson-number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    font-weight: 700;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.lesson-info {
    flex: 1;
}

.lesson-title {
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.lesson-meta {
    font-size: var(--text-sm);
    color: var(--text-light);
}

.lesson-status {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
}

.lesson-status.completed {
    background-color: var(--success-bg);
    color: var(--success);
}

.lesson-status.in-progress {
    background-color: var(--warning-bg);
    color: var(--warning);
}

.lesson-status.locked {
    background-color: var(--bg-hover);
    color: var(--text-lighter);
}

/* ========================================
   CHIP / TAG
   ======================================== */
.chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-sm);
    background-color: var(--bg-hover);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.chip:hover {
    background-color: var(--border);
}

.chip.active {
    background-color: var(--primary);
    color: white;
}

/* ========================================
   DIVIDER
   ======================================== */
.divider {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    color: var(--text-lighter);
    font-size: var(--text-sm);
    margin: var(--space-6) 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--border);
}

/* ========================================
   AVATAR
   ======================================== */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: white;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-sm { width: 32px; height: 32px; font-size: var(--text-xs); }
.avatar-lg { width: 56px; height: 56px; font-size: var(--text-lg); }
.avatar-xl { width: 80px; height: 80px; font-size: var(--text-2xl); }

/* ========================================
   GUIDED TOUR
   ======================================== */
.tour-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    pointer-events: auto;
}

.tour-spotlight {
    position: absolute;
    border-radius: var(--radius-lg);
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7);
    background: transparent;
    transition: all 0.3s ease;
    pointer-events: none;
}

.tour-tooltip {
    position: absolute;
    z-index: 9999;
    width: 320px;
    max-width: calc(100vw - 32px);
    background-color: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: var(--space-4);
    animation: tourFadeIn 0.3s ease;
}

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

.tour-tooltip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-2);
}

.tour-step-indicator {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--primary);
    background-color: var(--primary-bg);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-full);
}

.tour-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-light);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tour-close:hover {
    background-color: var(--bg-hover);
    color: var(--text);
}

.tour-tooltip-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text);
    margin: 0 0 var(--space-2) 0;
}

.tour-tooltip-content {
    font-size: var(--text-sm);
    color: var(--text-light);
    line-height: 1.6;
    margin: 0 0 var(--space-4) 0;
}

.tour-tooltip-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
}

.tour-prev,
.tour-next,
.tour-finish {
    min-width: 80px;
}

/* Tour Arrow Indicators */
.tour-tooltip::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--bg-elevated);
    border: 1px solid var(--border);
    transform: rotate(45deg);
}

.tour-tooltip[data-position="bottom"]::before {
    top: -7px;
    left: 50%;
    margin-left: -6px;
    border-right: none;
    border-bottom: none;
}

.tour-tooltip[data-position="top"]::before {
    bottom: -7px;
    left: 50%;
    margin-left: -6px;
    border-left: none;
    border-top: none;
}

.tour-tooltip[data-position="left"]::before {
    right: -7px;
    top: 50%;
    margin-top: -6px;
    border-left: none;
    border-bottom: none;
}

.tour-tooltip[data-position="right"]::before {
    left: -7px;
    top: 50%;
    margin-top: -6px;
    border-right: none;
    border-top: none;
}
