/* eReader Onboarding Tour Styles */
.kites-tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999990;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.55);
    /*backdrop-filter: blur(2px);*/
    transition: opacity 0.3s ease;
}

.kites-tour-spotlight {
    position: fixed;
    z-index: 999995;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.65), 0 0 15px rgba(195, 154, 107,
    0.8);
    border-radius: 8px;
    transition: all 0.3s ease;
    pointer-events: none;
    top:0;
    min-height:54.5px !important;
}

.kites-tour-popover {
    position: fixed;
    z-index: 999999;
    background: #ffffff;
    color: #2c3e50;
    width: 320px;
    max-width: 90vw;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    padding: 20px;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: all 0.3s ease;
    border: 1px solid rgba(195, 154, 107, 0.3);
}

body.night-mode .kites-tour-popover {
    background: #1f242d;
    color: #e0e0e0;
    border-color: #c39a6b;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.kites-tour-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    direction:rtl;
}

.kites-tour-title {
    font-size: 17px;
    font-weight: 700;
    color: #c39a6b;
    margin: 0;
}

.kites-tour-close {
    background: transparent;
    border: none;
    font-size: 18px;
    color: #888;
    cursor: pointer;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}

.kites-tour-close:hover {
    color: #e74c3c;
    background: rgba(0,0,0,0.05);
}

.kites-tour-body {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
    direction:rtl;
}

.kites-tour-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

body.night-mode .kites-tour-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.kites-tour-step-counter {
    font-size: 12px;
    color: #777;
    font-weight: 500;
}

.kites-tour-buttons {
    display: flex;
    gap: 8px;
}

.kites-tour-btn {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.kites-tour-btn-secondary {
    background: #e9ecef;
    color: #495057;
}

.kites-tour-btn-secondary:hover {
    background: #dee2e6;
}

body.night-mode .kites-tour-btn-secondary {
    background: #2c323f;
    color: #ccc;
}

body.night-mode .kites-tour-btn-secondary:hover {
    background: #3a4253;
}

.kites-tour-btn-primary {
    background: #c39a6b;
    color: #ffffff;
}

.kites-tour-btn-primary:hover {
    background: #b08757;
}

/* Header Help Icon Button */
.kites_tour_help {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.2s, transform 0.2s;
    vertical-align: middle;
}

.kites_tour_help:hover {
    color: #c39a6b;
    transform: scale(1.1);
}

/* Tooltip Arrow */
.kites-tour-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.kites-tour-popover[data-popper-placement^='top'] .kites-tour-arrow {
    bottom: -8px;
    left: calc(50% - 8px);
    border-width: 8px 8px 0 8px;
    border-color: #ffffff transparent transparent transparent;
}
body.night-mode .kites-tour-popover[data-popper-placement^='top'] .kites-tour-arrow {
    border-color: #1f242d transparent transparent transparent;
}

.kites-tour-popover[data-popper-placement^='bottom'] .kites-tour-arrow {
    top: -8px;
    left: calc(50% - 8px);
    border-width: 0 8px 8px 8px;
    border-color: transparent transparent #ffffff transparent;
}
body.night-mode .kites-tour-popover[data-popper-placement^='bottom'] .kites-tour-arrow {
    border-color: transparent transparent #1f242d transparent;
}