﻿
/**
 * Author: Somesh B 
 * Version: v1
 * Created: 12/03/2025
 * Description: Created to maintain css code for dashboard page.
 */










/* Onboarding Tour Styles */
/* Tour Overlay */
.tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tour-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Highlighted Element */
.tour-highlight {
    position: relative;
    z-index: 9999 !important;
    box-shadow: 0 0 0 4px #74943D, 0 0 0 8px rgba(116, 148, 61, 0.3) !important;
    border-radius: 8px;
    background: #fff;
}

/* Tour Tooltip */
.tour-tooltip {
    position: fixed;
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    max-width: 380px;
    min-width: 320px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

    .tour-tooltip.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .tour-tooltip::before {
        content: '';
        position: absolute;
        width: 16px;
        height: 16px;
        background: #ffffff;
        transform: rotate(45deg);
    }

    .tour-tooltip.arrow-left::before {
        left: -8px;
        top: 50%;
        margin-top: -8px;
    }

    .tour-tooltip.arrow-right::before {
        right: -8px;
        top: 50%;
        margin-top: -8px;
    }

    .tour-tooltip.arrow-top::before {
        top: -8px;
        left: 50%;
        margin-left: -8px;
    }

    .tour-tooltip.arrow-bottom::before {
        bottom: -8px;
        left: 50%;
        margin-left: -8px;
    }

.tour-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.tour-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #74943D, #5a7530);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.tour-step-info {
    flex: 1;
}

.tour-step-label {
    font-size: 12px;
    color: #74943D;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tour-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.tour-content {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.tour-progress {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}

.tour-progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e0e0e0;
    transition: all 0.3s ease;
}

    .tour-progress-dot.active {
        background: #74943D;
        width: 24px;
        border-radius: 4px;
    }

    .tour-progress-dot.completed {
        background: #74943D;
    }

.tour-buttons {
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.tour-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: 'Poppins', sans-serif;
}

.tour-btn-skip {
    background: transparent;
    color: #888;
}

    .tour-btn-skip:hover {
        color: #555;
        background: #f5f5f5;
    }

.tour-btn-prev {
    background: #f0f0f0;
    color: #444;
}

    .tour-btn-prev:hover {
        background: #e0e0e0;
    }

.tour-btn-next {
    background: linear-gradient(135deg, #74943D, #5a7530);
    color: white;
    flex: 1;
    max-width: 140px;
}

    .tour-btn-next:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(116, 148, 61, 0.4);
    }

.tour-btn-finish {
    background: linear-gradient(135deg, #E1B13A, #c99a2e);
    color: white;
    flex: 1;
}

    .tour-btn-finish:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(225, 177, 58, 0.4);
    }

/* Welcome Modal */
.tour-welcome-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: linear-gradient(180deg, #ffffff 0%, #f8fdf5 100%);
    border-radius: 24px;
    padding: 0;
    max-width: 580px;
    width: 90%;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.35);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
}

.tour-welcome-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}
@media (max-width: 1880px) {
    .tour-welcome-modal.active {
        transform: translate(-50%, -50%) scale(0.7);
    }
}

.welcome-header {
    background: linear-gradient(135deg, #74943D 0%, #5a7530 50%, #486025 100%);
    padding: 40px 40px 50px;
    position: relative;
    overflow: hidden;
}

    .welcome-header::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
        animation: shimmer 3s ease-in-out infinite;
    }

@keyframes shimmer {
    0%, 100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(10%, 10%);
    }
}

.welcome-header-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.08) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%);
}

.welcome-icon-container {
    position: relative;
    z-index: 1;
}

.welcome-icon {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

    .welcome-badge i {
        font-size: 10px;
        animation: pulse 2s ease-in-out infinite;
    }

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.welcome-title {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.welcome-subtitle-header {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.5;
}

.welcome-body {
    padding: 32px 40px 40px;
}

.welcome-intro {
    font-size: 15px;
    color: #555;
    margin-bottom: 28px;
    line-height: 1.7;
}

    .welcome-intro strong {
        color: #74943D;
    }

.welcome-features {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    text-align: left;
}

.welcome-feature {
    flex: 1;
    padding: 20px 16px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e8f0dc;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .welcome-feature::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #74943D, #E1B13A);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .welcome-feature:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 30px rgba(116, 148, 61, 0.15);
        border-color: #74943D;
    }

        .welcome-feature:hover::before {
            opacity: 1;
        }

.welcome-feature-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(116, 148, 61, 0.15), rgba(116, 148, 61, 0.05));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #74943D;
    margin-bottom: 12px;
    font-size: 18px;
}

.welcome-feature-title {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    margin-bottom: 6px;
}

.welcome-feature-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.welcome-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #888;
    margin-bottom: 24px;
}

    .welcome-time i {
        color: #74943D;
    }

.welcome-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.welcome-btn {
    padding: 16px 36px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Poppins', sans-serif;
}

.welcome-btn-skip {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
}

    .welcome-btn-skip:hover {
        background: #ebebeb;
        color: #444;
    }

.welcome-btn-start {
    background: linear-gradient(135deg, #74943D, #5a7530);
    color: white;
    min-width: 180px;
    box-shadow: 0 4px 15px rgba(116, 148, 61, 0.3);
    position: relative;
    overflow: hidden;
}

    .welcome-btn-start::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s ease;
    }

    .welcome-btn-start:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(116, 148, 61, 0.4);
    }

        .welcome-btn-start:hover::before {
            left: 100%;
        }

/* Completion Modal */
.tour-complete-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

    .tour-complete-modal.active {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, -50%) scale(1);
    }

.complete-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #74943D, #5a7530);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 40px;
    color: white;
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.complete-title {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
}

.complete-subtitle {
    font-size: 15px;
    color: #666;
    margin-bottom: 28px;
    line-height: 1.6;
}

.complete-btn {
    padding: 14px 40px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: linear-gradient(135deg, #74943D, #5a7530);
    color: white;
    font-family: 'Poppins', sans-serif;
}

    .complete-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(116, 148, 61, 0.4);
    }

/* Restart Tour Button */
.restart-tour-btn {
    position: fixed;
    bottom: 24px;
    right: 80px;/*24px;*/
    background: linear-gradient(135deg, #74943D, #5a7530);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    z-index: 1031;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(116, 148, 61, 0.4);
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    width: auto;
}

    .restart-tour-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 25px rgba(116, 148, 61, 0.5);
    }

    .restart-tour-btn i {
        font-size: 16px;
    }