/* ==========================================================================
   Intro Explorer & Welcome Screen Styles
   Supports Dark Mode and Light Mode
   ========================================================================== */

.intro_explorer_module {
    height: 100%;
    position: relative;
    overflow: hidden;
}

.intro_explorer_wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.intro_explorer_scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 14px 90px 14px;
    -webkit-overflow-scrolling: touch;
}

/* Card Styling */
.intro_explorer_card,
.intro_mobile_welcome_card {
    border-radius: 20px;
    margin: 0 0 20px 0;
    border: none;
    overflow: hidden;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Light Mode Defaults */
.intro_explorer_card,
.intro_mobile_welcome_card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.intro_card_content {
    padding: 22px 20px 12px 20px;
}

.intro_user_greeting {
    font-weight: 700;
    font-size: 19px;
    line-height: 1.3;
    margin-bottom: 8px;
    color: #0f172a;
}

.intro_subtitle {
    font-size: 12.5px;
    line-height: 1.55;
    margin-bottom: 10px;
    color: #64748b;
}

/* Dark Mode Overrides */
body.dark_mode .intro_explorer_card,
body.dark_mode .intro_mobile_welcome_card {
    background: #141724;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

body.dark_mode .intro_user_greeting {
    color: #ffffff;
}

body.dark_mode .intro_subtitle {
    color: #8b9bb4;
}

/* List Group & Custom Items */
.intro_list_group {
    overflow: visible;
    border: none;
    margin: 0 16px 20px 16px;
}

.intro_list_group .list-group-item {
    display: flex;
    align-items: center;
    padding: 12px 6px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    text-decoration: none;
    position: relative;
}

body.dark_mode .intro_list_group .list-group-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.intro_community_header {
    cursor: pointer;
    user-select: none;
}

.intro_community_header:hover {
    text-decoration: none;
}

.intro_item_icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    display: block;
}

.intro_item_titles {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1;
    margin-right: 10px;
}

.intro_item_titles strong {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 2px;
    color: #1e293b;
    pointer-events: none;
}

body.dark_mode .intro_item_titles strong {
    color: #ffffff;
}

.intro_item_titles span {
    font-size: 11px;
    line-height: 1.3;
    font-weight: 400;
    color: #64748b;
    pointer-events: none;
}

body.dark_mode .intro_item_titles span {
    color: #7a889b;
}

/* Badge */
.intro_list_group .badge.rounded-xl {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 50px !important;
    margin-left: auto;
    white-space: nowrap;
}

/* Category Collapse & Child Groups */
.intro_category_collapse {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.dark_mode .intro_category_collapse {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.intro_category_collapse .intro_group_item {
    border-bottom: none;
    padding: 10px 8px 10px 28px;
}

.intro_group_item .intro_item_titles strong {
    font-size: 12.5px;
}

.intro_group_item .intro_item_titles span {
    font-size: 11px;
}

/* iOS Switch Component */
.ios-switch {
    width: 58px;
    height: 32px;
    position: relative;
    margin: 0;
    padding: 0;
    margin-left: auto;
    flex-shrink: 0;
}

.switch-m {
    transform: scale(0.8);
    transform-origin: 100% 50%;
}

.ios-switch input.ios-input {
    display: none;
}

.ios-switch label.custom-control-label {
    display: block !important;
    cursor: pointer;
    margin: 0;
    padding: 0;
    width: 58px;
    height: 32px;
    position: relative;
}

.ios-switch label.custom-control-label::before {
    content: "";
    display: block !important;
    width: 58px !important;
    height: 32px !important;
    border-radius: 50px !important;
    transition: all 0.2s ease;
    background-color: rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

body.dark_mode .ios-switch label.custom-control-label::before {
    background-color: rgba(255, 255, 255, 0.12);
}

.ios-switch label.custom-control-label::after {
    content: "";
    display: block !important;
    position: absolute;
    top: 1px;
    left: 1px;
    z-index: 2;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50px !important;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.ios-input:checked ~ .custom-control-label::after {
    transform: translateX(26px) !important;
}

.switch-green .ios-input:checked ~ .custom-control-label::before {
    background-color: #4cd964 !important;
}

/* Mobile Welcome Card */
.intro_mobile_welcome_card {
    margin-top: 10px;
    margin-bottom: 25px;
}

.intro_mobile_welcome_content {
    padding: 28px 18px 32px 18px;
    text-align: center;
}

.intro_mobile_welcome_logo img {
    width: 140px;
    height: auto;
    margin: 0 auto 16px auto;
    display: block;
}

.intro_mobile_welcome_title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0f172a;
}

body.dark_mode .intro_mobile_welcome_title {
    color: #ffffff;
}

.intro_mobile_welcome_desc {
    font-size: 12.5px;
    line-height: 1.6;
    margin-bottom: 16px;
    padding: 0 4px;
    color: #64748b;
}

body.dark_mode .intro_mobile_welcome_desc {
    color: #8b9bb4;
}

.intro_mobile_welcome_footer {
    font-size: 11.5px;
    line-height: 1.5;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 14px;
    margin-top: 14px;
    margin-bottom: 22px;
    color: #64748b;
}

body.dark_mode .intro_mobile_welcome_footer {
    color: #8b9bb4;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Terms and Conditions Link (Yellow) */
.intro_terms_link {
    color: #eab308 !important;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: color 0.15s ease;
}

.intro_terms_link:hover {
    color: #facc15 !important;
    text-decoration: underline !important;
}

/* OK Pushbutton */
.intro_welcome_ok_btn {
    background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 8px 42px !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4) !important;
    transition: all 0.2s ease !important;
    cursor: pointer;
    min-width: 120px;
    outline: none !important;
    display: inline-block;
}

.intro_welcome_ok_btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5) !important;
}

.intro_welcome_ok_btn:active {
    transform: translateY(1px);
}

/* Desktop Welcome Screen Additions */
.welcome_screen .footer .intro_terms_link {
    color: #eab308 !important;
    font-weight: 600;
    text-decoration: none;
}

.welcome_screen .footer .intro_terms_link:hover {
    color: #facc15 !important;
    text-decoration: underline;
}

.welcome_screen .welcome_ok_wrap {
    margin-top: 24px;
    text-align: center;
}


