/* Dashboard Styles */

/* Banner styles */
.process-banner {
    box-shadow: 0 4px 20px rgba(0, 51, 102, 0.15);
    border-left: 4px solid #add8e6;
    background: linear-gradient(135deg, #003366 0%, #001a33 100%);
    color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 3rem;
}

.process-banner h3 {
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.process-banner .btn-outline-light {
    border-width: 2px;
}

.process-banner .icon-wrapper {
    background: white;
    border-radius: 50%;
    padding: 0.75rem;
    margin-right: 1rem;
}

/* Progress tracking */
.progress-container {
    margin-bottom: 3rem;
}

.progress {
    height: 16px;
    border-radius: 10px;
    background: linear-gradient(145deg, #f0f2f5, #e9ecef);
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.1);
}

.progress-bar {
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 50%, #03a9f4 100%);
    transition: width 1.0s cubic-bezier(0.4, 0.0, 0.2, 1);
    height: 100%;
    min-width: 0;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

/* Add a subtle shine effect */
.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent
    );
    animation: shine 2s ease-in-out infinite;
}

/* Loading overlay for smooth initial loading */
.progress-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(240, 242, 245, 0.8) 0%, 
        rgba(255, 255, 255, 0.9) 50%, 
        rgba(240, 242, 245, 0.8) 100%
    );
    border-radius: 10px;
    animation: shimmer 1.5s ease-in-out;
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

.progress-loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Task cards */
.task-grid {
    margin-top: 2rem;
}

.task-card {
    background: #ffffff;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
    height: 100%;
    border: 3px solid #4fc3f7 !important;
}

.task-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.task-card.completed {
    background-color: rgba(79, 195, 247, 0.05);
    border: 3px solid #003366 !important;
}

.task-card.locked {
    border: 3px dashed #b3c6e0 !important;
}

.card-body {
    min-height: 270px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
}

/* Task card contents */
.completion-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #4fc3f7;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.task-icon {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-icon img {
    max-height: 60px;
    transition: filter 0.3s ease;
}

.grayscale {
    filter: grayscale(100%);
    opacity: 0.7;
}

.task-title {
    color: #003366;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.task-desc {
    color: #555;
    font-size: 1.05rem;
    min-height: 3em;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Toggle switch styles */
.toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    min-height: 40px;
    padding: 0 1rem;
    flex-direction: row-reverse;
    gap: 0.75rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e9ecef;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input:checked + .toggle-slider {
    background-color: #4fc3f7;
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.toggle-label {
    color: #4fc3f7;
    font-weight: 500;
    white-space: nowrap;
    font-size: 0.9rem;
    text-align: center;
    width: 120px;
    flex-shrink: 0;
}

/* Completed task toggle label */
.task-card.completed .toggle-label {
    color: #003366;
    font-weight: 600;
}

/* Locked task styles */
.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.96);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 8px 8px 8px;
}

.disabled-link {
    pointer-events: none;
    opacity: 0.6;
}

/* Typography styles */
.dashboard-heading {
    color: #003366;
    font-weight: 700;
}

.dashboard-container {
    font-family: 'Poppins', sans-serif;
}

/* Modal styles */
.modal-header {
    background-color: #003366;
    color: #fff;
}

.modal-header .close {
    color: #fff;
}

.btn-confirm {
    background-color: #4fc3f7;
    border-color: #4fc3f7;
}

/* MODAL STYLING - SINGLE SOURCE OF TRUTH */
/* Temporarily override any navbar dropdown z-index conflicts */
.navbar .dropdown-menu {
    z-index: 1000 !important; /* Lower than modal */
}

/* Show backdrop with very high z-index to cover everything */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5) !important;
    opacity: 1 !important;
    z-index: 1200 !important; /* High enough to cover everything */
    pointer-events: none !important; /* Backdrop doesn't block clicks */
}

.modal-backdrop.fade.show {
    background-color: rgba(0, 0, 0, 0.5) !important;
    opacity: 1 !important;
    z-index: 1200 !important; /* High enough to cover everything */
    pointer-events: none !important; /* Critical: backdrop doesn't interfere */
}

/* Ensure modal has proper z-index and positioning with ULTRA HIGH SPECIFICITY */
.modal {
    z-index: 1300 !important; /* Above backdrop */
}

.modal.show {
    z-index: 1300 !important;
}

.modal-dialog {
    z-index: 1400 !important; /* Above modal base */
    position: relative !important;
    pointer-events: auto !important;
}

.modal.show .modal-dialog {
    z-index: 1400 !important;
    position: relative !important;
    pointer-events: auto !important;
}

.modal-content {
    z-index: 1500 !important; /* Highest priority */
    position: relative !important;
    pointer-events: auto !important;
}

.modal.show .modal-content {
    z-index: 1500 !important;
    position: relative !important;
    pointer-events: auto !important;
}

/* Ultra-high specificity modal content rules */
html body div.modal.show div.modal-dialog {
    z-index: 1400 !important;
    position: relative !important;
    pointer-events: auto !important;
}

html body div.modal.show div.modal-dialog div.modal-content {
    z-index: 1500 !important;
    position: relative !important;
    pointer-events: auto !important;
}

/* Ensure all modal interactive elements work */
.modal .btn, .modal button, .modal a, .modal [role="button"] {
    pointer-events: auto !important;
    cursor: pointer !important;
    user-select: auto !important;
    z-index: 1500 !important;
    position: relative !important;
}

/* HOMEPAGE STYLE MODAL - Exact replica of homepage premium cards */
.homepage-modal-content {
    border-radius: 20px !important;
    border: none !important;
    font-family: 'Poppins', sans-serif !important;
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.08), 0 8px 25px rgba(0, 51, 102, 0.06) !important;
    overflow: hidden !important;
}

/* Modal responsive sizing */
@media (max-width: 991.98px) {
    .modal-dialog {
        max-width: 90% !important;
        margin: 1rem auto !important;
    }
}

@media (max-width: 767.98px) {
    .modal-dialog {
        max-width: 95% !important;
        margin: 0.5rem auto !important;
    }
}

@media (max-width: 575.98px) {
    .modal-dialog {
        max-width: calc(100% - 1rem) !important;
        margin: 0.5rem !important;
    }
}

.homepage-modal-header {
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%) !important;
    color: #003366 !important;
    border-radius: 20px 20px 0 0 !important;
    border-bottom: 1px solid rgba(0, 51, 102, 0.06) !important;
    padding: 2rem !important;
    text-align: center !important;
}

.homepage-modal-header .modal-title {
    color: #003366 !important;
    font-weight: 700 !important;
    font-size: 1.8rem !important;
    margin: 0 !important;
}

.homepage-modal-close {
    color: #003366 !important;
    opacity: 0.7 !important;
    font-size: 1.5rem !important;
    position: absolute !important;
    top: 1.5rem !important;
    right: 1.5rem !important;
}

.homepage-modal-close:hover {
    opacity: 1 !important;
    color: #003366 !important;
}

.homepage-modal-body {
    padding: 2rem !important;
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%) !important;
}

.homepage-modal-subtitle {
    font-size: 1.1rem !important;
    color: #5a6d87 !important;
    font-weight: 500 !important;
    margin-bottom: 2rem !important;
}

/* Cards container - responsive layout */
.homepage-cards-container {
    display: flex !important;
    gap: 30px !important;
    justify-content: center !important;
    margin: 2rem 0 !important;
    perspective: 1000px !important;
    flex-wrap: wrap !important;
}

/* Mobile and tablet responsive styles */
@media (max-width: 991.98px) {
    .homepage-cards-container {
        flex-direction: column !important;
        gap: 20px !important;
        margin: 1.5rem 0 !important;
    }
    
    .homepage-premium-card {
        max-width: 100% !important;
        margin: 0 auto !important;
    }
    
    .homepage-modal-body {
        padding: 1.5rem !important;
    }
    
    .homepage-modal-header {
        padding: 1.5rem !important;
    }
    
    .homepage-modal-header .modal-title {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 767.98px) {
    .homepage-cards-container {
        gap: 15px !important;
        margin: 1rem 0 !important;
    }
    
    .homepage-premium-card {
        max-width: 100% !important;
    }
    
    .homepage-premium-card-header {
        padding: 30px 20px 15px !important;
    }
    
    .homepage-premium-card-body {
        padding: 15px 20px 20px !important;
    }
    
    .homepage-premium-card-footer {
        padding: 0 20px 20px !important;
    }
    
    .homepage-premium-icon {
        width: 80px !important;
        height: 80px !important;
    }
    
    .homepage-premium-icon-img {
        width: 50px !important;
        height: 50px !important;
    }
    
    .homepage-premium-card-title {
        font-size: 1.3rem !important;
    }
    
    .homepage-premium-card-description {
        font-size: 0.85rem !important;
    }
    
    .homepage-modal-body {
        padding: 1rem !important;
    }
    
    .homepage-modal-header {
        padding: 1rem !important;
    }
    
    .homepage-modal-header .modal-title {
        font-size: 1.3rem !important;
    }
    
    .homepage-modal-subtitle {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
}

@media (max-width: 575.98px) {
    .modal-dialog {
        margin: 0.5rem !important;
        max-width: calc(100% - 1rem) !important;
    }
    
    .homepage-premium-card {
        border-radius: 16px !important;
    }
    
    .homepage-premium-card-header {
        padding: 25px 15px 10px !important;
    }
    
    .homepage-premium-card-body {
        padding: 10px 15px 15px !important;
    }
    
    .homepage-premium-card-footer {
        padding: 0 15px 15px !important;
    }
    
    .homepage-premium-icon {
        width: 70px !important;
        height: 70px !important;
    }
    
    .homepage-premium-icon-img {
        width: 45px !important;
        height: 45px !important;
    }
    
    .homepage-premium-icon-bg {
        width: 100px !important;
        height: 100px !important;
        top: -10px !important;
        left: -10px !important;
    }
    
    .homepage-premium-card-title {
        font-size: 1.2rem !important;
        margin-bottom: 10px !important;
    }
    
    .homepage-premium-card-description {
        font-size: 0.8rem !important;
        margin-bottom: 15px !important;
        min-height: auto !important;
    }
    
    /* Hide feature checkboxes on mobile for cleaner look */
    .homepage-premium-features {
        display: none !important;
    }
    
    /* Hide modal subtitle on mobile for cleaner appearance */
    .homepage-modal-subtitle {
        display: none !important;
    }
    
    .homepage-premium-feature {
        padding: 4px 8px !important;
        margin-bottom: 6px !important;
        font-size: 0.8rem !important;
    }
    
    .homepage-premium-feature i {
        font-size: 0.7rem !important;
        margin-right: 6px !important;
    }
    
    .homepage-premium-feature span {
        font-size: 0.8rem !important;
    }
    
    .homepage-premium-btn {
        padding: 12px 16px !important;
        font-size: 0.85rem !important;
    }
    
    .homepage-premium-badge-age {
        padding: 4px 10px !important;
        font-size: 0.7rem !important;
        top: 15px !important;
        right: 15px !important;
    }
    
    .homepage-modal-body {
        padding: 0.75rem !important;
    }
    
    .homepage-modal-header {
        padding: 1rem 0.75rem !important;
    }
    
    .homepage-modal-header .modal-title {
        font-size: 1.1rem !important;
    }
    
    .homepage-modal-close {
        top: 1rem !important;
        right: 1rem !important;
        font-size: 1.3rem !important;
    }
    
    .homepage-modal-subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
    }
    
    .homepage-info-section {
        padding: 1rem !important;
        margin-top: 1rem !important;
    }
    
    .homepage-info-title {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .homepage-info-list li {
        font-size: 0.8rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    .homepage-info-icon {
        width: 30px !important;
        height: 30px !important;
        margin-right: 0.75rem !important;
    }
    
    .homepage-info-icon i {
        font-size: 0.8rem !important;
    }
    
    .homepage-check-icon {
        font-size: 0.7rem !important;
        margin-right: 0.5rem !important;
    }
}

/* Individual card styling - exact homepage replica */
.homepage-premium-card {
    position: relative !important;
    background: white !important;
    border-radius: 24px !important;
    padding: 0 !important;
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.08), 0 8px 25px rgba(0, 51, 102, 0.06) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    flex: 1 !important;
    max-width: 300px !important;
    overflow: hidden !important;
    border: 1px solid rgba(0, 51, 102, 0.06) !important;
    transform-style: preserve-3d !important;
}

.homepage-premium-card:hover {
    transform: translateY(-12px) rotateX(5deg) !important;
    box-shadow: 0 30px 60px rgba(0, 51, 102, 0.15), 0 15px 35px rgba(0, 51, 102, 0.1) !important;
}

/* Card glow effects */
.homepage-card-glow {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    border-radius: 24px !important;
    opacity: 0 !important;
    transition: opacity 0.4s ease !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

.adult-glow,
.child-glow {
    background: radial-gradient(circle at 50% 50%, rgba(0, 51, 102, 0.15), transparent 70%) !important;
}

.homepage-premium-card:hover .homepage-card-glow {
    opacity: 1 !important;
}

/* Age badges */
.homepage-premium-badge-age {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    background: rgba(0, 51, 102, 0.1) !important;
    color: #003366 !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(0, 51, 102, 0.15) !important;
    z-index: 10 !important;
}

/* Card header with icon */
.homepage-premium-card-header {
    position: relative !important;
    padding: 40px 30px 20px !important;
    text-align: center !important;
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%) !important;
}

.homepage-premium-icon-wrapper {
    position: relative !important;
    display: inline-block !important;
    margin-bottom: 15px !important;
}

.homepage-premium-icon {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 2 !important;
    transition: all 0.3s ease !important;
    background: linear-gradient(135deg, #f8faff, #e3eefd) !important;
    border: 3px solid rgba(0, 51, 102, 0.1) !important;
}

.homepage-premium-icon-img {
    width: 60px !important;
    height: 60px !important;
    object-fit: contain !important;
    filter: brightness(0) saturate(100%) invert(13%) sepia(100%) saturate(2127%) hue-rotate(201deg) brightness(90%) contrast(101%) !important;
}

.homepage-premium-icon-bg {
    position: absolute !important;
    top: -15px !important;
    left: -15px !important;
    width: 130px !important;
    height: 130px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.05), rgba(0, 86, 179, 0.1)) !important;
    opacity: 0.3 !important;
    z-index: 1 !important;
    transition: all 0.3s ease !important;
}

.homepage-premium-card:hover .homepage-premium-icon {
    transform: scale(1.1) rotateY(10deg) !important;
    border-color: rgba(0, 51, 102, 0.2) !important;
}

.homepage-premium-card:hover .homepage-premium-icon-bg {
    transform: scale(1.2) !important;
    opacity: 0.5 !important;
}

/* Card body */
.homepage-premium-card-body {
    padding: 20px 30px 30px !important;
    text-align: center !important;
}

.homepage-premium-card-title {
    color: #003366 !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
    letter-spacing: -0.01em !important;
}

.homepage-premium-card-description {
    color: #5a6d87 !important;
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
    min-height: 40px !important;
}

/* Features list */
.homepage-premium-features {
    margin-bottom: 20px !important;
}

.homepage-premium-feature {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 8px !important;
    padding: 6px 12px !important;
    background: rgba(0, 51, 102, 0.03) !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    font-size: 0.85rem !important;
}

.homepage-premium-feature:hover {
    background: rgba(0, 51, 102, 0.06) !important;
    transform: translateX(5px) !important;
}

.homepage-premium-feature i {
    color: #4fc3f7 !important;
    margin-right: 8px !important;
    font-size: 0.8rem !important;
}

.homepage-premium-feature span {
    color: #4a5568 !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
}

/* Card footer with button */
.homepage-premium-card-footer {
    padding: 0 30px 30px !important;
}

.homepage-premium-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 14px 20px !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    border: none !important;
    gap: 8px !important;
    background: linear-gradient(135deg, #003366, #0056b3) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3) !important;
}

.homepage-premium-btn:hover {
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 51, 102, 0.4) !important;
    background: linear-gradient(135deg, #004080, #0066cc) !important;
}

.btn-arrow {
    transition: transform 0.3s ease !important;
}

.homepage-premium-btn:hover .btn-arrow {
    transform: translateX(4px) !important;
}

/* Child card special styling */
.child-card .homepage-premium-card-header {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f0fa 100%) !important;
}

.child-card .homepage-premium-icon {
    border: 4px solid rgba(0, 51, 102, 0.15) !important;
    background: linear-gradient(135deg, #f0f7ff, #e6f0fa) !important;
    box-shadow: 0 0 20px rgba(0, 51, 102, 0.1), inset 0 2px 4px rgba(255, 255, 255, 0.8) !important;
}

.child-card .homepage-premium-icon-bg {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.08), rgba(0, 86, 179, 0.15)) !important;
}

.child-card .homepage-premium-badge-age {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.15), rgba(0, 86, 179, 0.1)) !important;
    border: 2px solid rgba(0, 51, 102, 0.2) !important;
    font-weight: 700 !important;
}

/* Child tooltip */
.child-tooltip {
    position: absolute !important;
    top: -50px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: linear-gradient(135deg, #003366, #0056b3) !important;
    color: white !important;
    padding: 8px 12px !important;
    border-radius: 12px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    z-index: 1000 !important;
    box-shadow: 0 4px 20px rgba(0, 51, 102, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.child-tooltip::before {
    content: '' !important;
    position: absolute !important;
    bottom: -8px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border-left: 8px solid transparent !important;
    border-right: 8px solid transparent !important;
    border-top: 8px solid #003366 !important;
}

.child-card:hover .child-tooltip {
    opacity: 1 !important;
    visibility: visible !important;
    top: -55px !important;
}

/* Info section */
.homepage-info-section {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.03), rgba(79, 195, 247, 0.03)) !important;
    border: 1px solid rgba(0, 51, 102, 0.1) !important;
    border-radius: 16px !important;
    padding: 1.5rem !important;
    margin-top: 2rem !important;
}

.homepage-info-icon {
    width: 40px !important;
    height: 40px !important;
    background: linear-gradient(135deg, #003366, #4fc3f7) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 1rem !important;
    flex-shrink: 0 !important;
}

.homepage-info-icon i {
    color: white !important;
    font-size: 1rem !important;
}

.homepage-info-content {
    flex: 1 !important;
}

.homepage-info-title {
    color: #003366 !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    margin-bottom: 0.75rem !important;
}

.homepage-info-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.homepage-info-list li {
    margin-bottom: 0.5rem !important;
    color: #495057 !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    font-size: 0.9rem !important;
}

.homepage-check-icon {
    color: #28a745 !important;
    margin-right: 0.75rem !important;
    font-size: 0.8rem !important;
    flex-shrink: 0 !important;
}

/* Force modal elements to be interactive with ULTRA-HIGH specificity */
/* These selectors override global html *, body * rules */
html body div.modal div.modal-dialog div.modal-content,
html body div.modal div.modal-dialog div.modal-content *,
html body div.modal div.modal-dialog div.modal-header,
html body div.modal div.modal-dialog div.modal-header *,
html body div.modal div.modal-dialog div.modal-body,
html body div.modal div.modal-dialog div.modal-body *,
html body div.modal div.modal-dialog div.modal-footer,
html body div.modal div.modal-dialog div.modal-footer *,
html body div.modal div.modal-dialog button,
html body div.modal div.modal-dialog button *,
html body div.modal div.modal-dialog a,
html body div.modal div.modal-dialog a *,
html body div.modal div.modal-dialog .btn,
html body div.modal div.modal-dialog .btn *,
html body div.modal div.modal-dialog .close,
html body div.modal div.modal-dialog .close *,
html body div.modal div.modal-dialog .card,
html body div.modal div.modal-dialog .card * {
    pointer-events: auto !important;
    -webkit-user-select: auto !important;
    -khtml-user-select: auto !important;
    -moz-user-select: auto !important;
    -ms-user-select: auto !important;
    user-select: auto !important;
    -webkit-touch-callout: auto !important;
    cursor: pointer !important;
}

/* Force progress bar widths to stick */
.progress-bar[aria-valuenow="0"] { width: 0% !important; }
.progress-bar[aria-valuenow="10"] { width: 10% !important; }
.progress-bar[aria-valuenow="20"] { width: 20% !important; }
.progress-bar[aria-valuenow="30"] { width: 30% !important; }
.progress-bar[aria-valuenow="40"] { width: 40% !important; }
.progress-bar[aria-valuenow="50"] { width: 50% !important; }
.progress-bar[aria-valuenow="60"] { width: 60% !important; }
.progress-bar[aria-valuenow="70"] { width: 70% !important; }
.progress-bar[aria-valuenow="80"] { width: 80% !important; }
.progress-bar[aria-valuenow="90"] { width: 90% !important; }
.progress-bar[aria-valuenow="100"] { width: 100% !important; }

/* Child form specific progress percentages (6 steps) */
.progress-bar[aria-valuenow="1"] { width: 16.67% !important; } /* Step 1 of 6 */
.progress-bar[aria-valuenow="2"] { width: 33.33% !important; } /* Step 2 of 6 */
.progress-bar[aria-valuenow="3"] { width: 50% !important; }    /* Step 3 of 6 */
.progress-bar[aria-valuenow="4"] { width: 66.67% !important; } /* Step 4 of 6 */
.progress-bar[aria-valuenow="5"] { width: 83.33% !important; } /* Step 5 of 6 - Witness step */
.progress-bar[aria-valuenow="6"] { width: 100% !important; }   /* Step 6 of 6 */

/* Ensure width is properly applied with highest specificity */
#progress-bar.progress-bar {
    width: var(--progress-width, 0%) !important;
}

/* Alternative class-based width enforcement */
.width-10 { width: 10% !important; }
.width-20 { width: 20% !important; }
.width-30 { width: 30% !important; }
.width-40 { width: 40% !important; }
.width-50 { width: 50% !important; }
.width-60 { width: 60% !important; }
.width-70 { width: 70% !important; }
.width-80 { width: 80% !important; }
.width-90 { width: 90% !important; }
.width-100 { width: 100% !important; }

/* Add these high-specificity rules at the end of the file */

/* Override with extreme specificity to ensure width is always applied */
.progress #progress-bar.progress-bar {
    transition: none !important; /* Disable transitions completely */
}

/* Force immediate display without animation */
.progress .progress-bar[aria-valuenow] {
    transition: none !important;
}

/* Extra debugging classes */
.progress-0 { background-color: #e9ecef !important; }
.progress-100 { background-color: #4fc3f7 !important; }

/* Add at the end of your CSS file */

/* Maximum specificity override for progress bar */
body .progress .progress-bar#progress-bar,
html body .progress #progress-bar.progress-bar,
div.progress > div.progress-bar#progress-bar {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    transition: none !important;
    background-color: #4fc3f7 !important;
    display: block !important;
    visibility: visible !important;
}

/* Hard-coded specific rule for 100% progress */
.progress-bar[aria-valuenow="100"] {
    width: 100% !important;
    min-width: 100% !important;
    display: block !important;
}

/* Guide-Only Purchase Option Styles */
.guide-only-divider {
    text-align: center;
    margin: 2rem 0 1.5rem 0;
    position: relative;
}

.guide-only-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0e7ef 20%, #e0e7ef 80%, transparent);
    z-index: 1;
}

.guide-divider-text {
    background: #f8f9fa;
    padding: 0 1.5rem;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.guide-only-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e9ecef;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.guide-only-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #4fc3f7;
}

.guide-card-header {
    background: linear-gradient(135deg, #003366 0%, #004080 100%);
    padding: 1rem 1.5rem;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.guide-special-badge {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.guide-price-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guide-original-price {
    color: #ffffff;
    text-decoration: line-through;
    font-size: 1rem;
    opacity: 0.8;
}

.guide-sale-price {
    color: #4fc3f7;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.guide-card-body {
    padding: 1.5rem;
    text-align: center;
}

.guide-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    box-shadow: 0 4px 12px rgba(79, 195, 247, 0.3);
}

.guide-icon i {
    font-size: 1.5rem;
    color: white;
}

.guide-title {
    color: #003366;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.guide-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.guide-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.guide-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.guide-feature i {
    color: #28a745;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.guide-feature span {
    color: #495057;
    font-size: 0.9rem;
}

.guide-purchase-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.guide-purchase-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, #218838 0%, #1cc88a 100%);
}

.guide-purchase-btn:active {
    transform: translateY(0);
}

/* Modal-specific guide styling - COMPACT VERSION */
.modal .guide-only-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
    border: 1px solid #e9ecef !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    margin: 1rem 0 !important;
}

.modal .guide-only-card:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    border-color: #4fc3f7 !important;
}

.modal .guide-card-header {
    background: linear-gradient(135deg, #003366 0%, #004080 100%) !important;
    padding: 0.5rem 1rem !important;
    position: relative !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.modal .guide-special-badge {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%) !important;
    color: white !important;
    padding: 0.15rem 0.5rem !important;
    border-radius: 8px !important;
    font-size: 0.65rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.modal .guide-price-container {
    display: flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
}

.modal .guide-original-price {
    color: #ffffff !important;
    text-decoration: line-through !important;
    font-size: 0.85rem !important;
    opacity: 0.8 !important;
}

.modal .guide-sale-price {
    color: #4fc3f7 !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

.modal .guide-card-body {
    padding: 1rem !important;
    text-align: center !important;
}

.modal .guide-icon {
    width: 40px !important;
    height: 40px !important;
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 0.5rem auto !important;
    box-shadow: 0 2px 6px rgba(79, 195, 247, 0.3) !important;
}

.modal .guide-icon i {
    font-size: 1rem !important;
    color: white !important;
}

.modal .guide-title {
    color: #003366 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
}

.modal .guide-description {
    color: #6c757d !important;
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    margin-bottom: 1rem !important;
}

.modal .guide-purchase-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: white !important;
    border: none !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3) !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
}

.modal .guide-purchase-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(40, 167, 69, 0.4) !important;
    background: linear-gradient(135deg, #218838 0%, #1cc88a 100%) !important;
}

.modal .guide-purchase-btn:active {
    transform: translateY(0) !important;
}

.modal .guide-only-divider {
    position: relative;
    text-align: center;
    margin: 1rem 0 0.5rem 0 !important;
}

.modal .guide-only-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #dee2e6, transparent);
}

.modal .guide-divider-text {
    background: #f8f9fa !important;
    padding: 0 1rem !important;
    color: #6c757d !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    position: relative !important;
    z-index: 2 !important;
}

/* Tablet responsiveness - Center last 2 cards when there are 8 total */
@media (min-width: 768px) and (max-width: 991px) {
    .task-grid {
        display: flex;
        flex-wrap: wrap;
    }
    
    /* First 6 cards take up their normal space (3 columns) */
    .task-grid > .col-md-4:nth-child(1),
    .task-grid > .col-md-4:nth-child(2),
    .task-grid > .col-md-4:nth-child(3),
    .task-grid > .col-md-4:nth-child(4),
    .task-grid > .col-md-4:nth-child(5),
    .task-grid > .col-md-4:nth-child(6) {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    /* Last 2 cards - center them with proper offset */
    .task-grid > .col-md-4:nth-child(7),
    .task-grid > .col-md-4:nth-child(8) {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    /* Offset the 7th card to center the last row (2 items) */
    .task-grid > .col-md-4:nth-child(7) {
        margin-left: 16.5%; /* Fine-tuned offset for perfect centering */
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .guide-card-header,
    .modal .guide-card-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .guide-features,
    .modal .guide-features {
        grid-template-columns: 1fr;
    }
    
    .guide-purchase-btn,
    .modal .guide-purchase-btn {
        width: 100%;
        padding: 1rem 2rem;
    }
}