/* Trial Account Styles */


.trial-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 16px;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.trial-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

.trial-label {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trial-days {
    font-size: 12px;
    opacity: 0.9;
}

.upgrade-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upgrade-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Disabled Navigation Items */
.nav-item.disabled {
    opacity: 0.6;
    position: relative;
}

.nav-item.disabled .nav-link {
    cursor: not-allowed;
    color: rgba(60, 60, 67, 0.4) !important;
    pointer-events: none;
}

.nav-item.trial-locked {
    position: relative;
    opacity: 0.5; /* Make locked items semi-transparent */
}

.nav-item.trial-locked .nav-link {
    cursor: pointer; /* Allow hover for tooltip */
    pointer-events: auto; /* Allow click events for modal */
    color: #999 !important; /* Muted color for locked items */
}

/* Hide original icon and replace with lock */
.nav-item.trial-locked .nav-link svg {
    display: none;
}

.nav-item.trial-locked .nav-link::before {
    display: none; /* Let JavaScript handle the lock icon */
}

/* Style the lock icon added by JavaScript */
.nav-item.trial-locked .lock-icon {
    display: inline-block !important;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    vertical-align: top;
    line-height: 1;
}

.nav-item.trial-locked .lock-icon svg {
    display: inline-block;
    vertical-align: top;
}

/* Alternative: if you want to keep the JavaScript lock icon instead */
/*
.nav-item.trial-locked .nav-link::before {
    display: none;
}

.nav-item.trial-locked .lock-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0.8;
    pointer-events: none;
}
*/

/* Tooltips removed - using modals instead */

/* Hover effect for trial locked items */
.nav-item.trial-locked:hover {
    background: rgba(255, 107, 107, 0.1);
    border-radius: 8px;
    transition: background 0.2s ease;
}

.nav-item.trial-locked:hover .nav-link {
    color: rgba(255, 107, 107, 0.8) !important;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
    padding: 20px;
    box-sizing: border-box;
    /* Prevent layout shift during modal creation */
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 100%;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.2s ease-out forwards;
    margin: auto;
    box-sizing: border-box;
    /* Start with final transform to prevent flash */
    transform: translateY(0) scale(1);
    opacity: 1;
    color: #000 !important;
}

@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 24px 24px 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 24px;
    color: #000 !important;
}

.modal-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #666;
}

.modal-body {
    padding: 0 24px 24px 24px;
    color: #000 !important;
}

.modal-body p {
    margin: 0 0 16px 0;
    color: var(--text-color);
    line-height: 1.6;
}

.modal-body ul {
    margin: 16px 0;
    padding-left: 0;
    list-style: none;
}

.modal-body li {
    padding: 8px 0;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-footer {
    padding: 0 24px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 14px;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.upgrade-contact-btn:hover {
    background: rgba(255, 155, 53, 0.8) !important;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f5f5f5;
    color: var(--text-color);
}

.btn-secondary:hover {
    background: #e9e9e9;
}

/* Upgrade Modal Specific Styles */
.upgrade-modal .modal-body {
    text-align: center;
    padding: 30px;
}

.upgrade-modal .modal-header {
    padding: 25px 30px 20px 30px;
}

.upgrade-modal .modal-footer {
    padding: 20px 30px 30px 30px;
}

.upgrade-modal ul {
    text-align: left;
    background: #f8f9fa;
    padding: 25px 30px;
    border-radius: 12px;
    margin: 25px 0;
    list-style: none;
}

.upgrade-modal ul li {
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.5;
}

.upgrade-modal ul li:last-child {
    margin-bottom: 0;
}

/* Trial Expired Modal */
.trial-expired-modal {
    border: 2px solid #ff6b6b;
}

.trial-expired-modal .modal-header {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border-radius: 14px 14px 0 0;
    margin-bottom: 0;
    border-bottom: none;
}

.trial-expired-modal .modal-header h3 {
    color: white;
}

.trial-expired-modal .modal-body {
    padding: 24px;
    text-align: center;
}

.trial-expired-modal .modal-footer {
    justify-content: center;
}

/* Feature Blocked Indicators */
.feature-blocked {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.feature-blocked::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 107, 107, 0.1) 10px,
        rgba(255, 107, 107, 0.1) 20px
    );
    z-index: 1;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .trial-badge {
        margin-bottom: 12px;
        padding: 10px;
    }
    
    /* Hide tooltips on mobile, show modal instead */
    .nav-item[title]:hover::before,
    .nav-item[title]:hover::after {
        display: none;
    }
    
    /* Make lock icons more visible on mobile */
    .nav-item.trial-locked .lock-icon {
        font-size: 14px;
        right: 8px;
    }
}

/* Additional styling for better UX */
.nav-item.trial-locked .nav-link:hover {
    background: rgba(255, 107, 107, 0.05);
    border-radius: 6px;
    transition: all 0.2s ease;
}

/* Ensure tooltips appear above other elements */
.nav-item[title]:hover::before,
.nav-item[title]:hover::after {
    z-index: 9999;
}

/* Smooth transitions for lock icons */
.nav-item .lock-icon {
    transition: opacity 0.2s ease;
}

.nav-item.trial-locked:hover .lock-icon {
    opacity: 1;
}

/* Expired Trial Modal */
.expired-trial-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.expired-trial-modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.expired-trial-modal h2 {
    color: #FF6B6B;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 600;
}

.expired-trial-modal p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 16px;
}

.expired-trial-modal .upgrade-btn {
    background: linear-gradient(135deg, #FF9B35 0%, #FF7B35 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.expired-trial-modal .upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 155, 53, 0.4);
}

/* Expired trial overlay for entire page */
.expired-trial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: none;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .modal-content {
        background: #2d2d2d;
        color: #ffffff;
    }
    
    .modal-header {
        border-bottom-color: #404040;
    }
    
    .modal-body p,
    .modal-body li {
        color: #ffffff;
    }
    
    .btn-secondary {
        background: #404040;
        color: #ffffff;
    }
    
    .btn-secondary:hover {
        background: #505050;
    }
    
    .upgrade-modal ul {
        background: #404040;
    }
}

/* Trial Blocked Page Modal */
.trial-blocked-page .modal-content {
    border: 2px solid #ff6b6b;
}

.trial-blocked-page .modal-header {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border-radius: 14px 14px 0 0;
    margin-bottom: 0;
    border-bottom: none;
}

.trial-blocked-page .modal-header h3 {
    color: white;
}

.trial-blocked-page .modal-close {
    color: white;
}

.trial-blocked-page .modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.trial-blocked-page .modal-body {
    padding: 24px;
    text-align: center;
}

.trial-blocked-page .modal-footer {
    justify-content: center;
    gap: 16px;
}