/* ? Token Expiry Warning Styles */

.token-warning {
    position: fixed;
    top: 80px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    z-index: 10000;
    animation: slideIn 0.3s ease-out;
    border-left: 4px solid #f59e0b;
}

.token-warning-error {
    border-left-color: #ef4444;
}

@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.token-warning-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
}

.token-warning-content > svg {
    flex-shrink: 0;
    color: #f59e0b;
    margin-top: 2px;
}

.token-warning-error .token-warning-content > svg {
    color: #ef4444;
}

.token-warning-text {
    flex: 1;
}

.token-warning-text strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 4px;
}

.token-warning-text p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.btn-extend,
.btn-login {
    flex-shrink: 0;
    padding: 8px 16px;
    background: #4299e1;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-extend:hover,
.btn-login:hover {
    background: #3182ce;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.btn-extend:active,
.btn-login:active {
    transform: translateY(0);
}

.btn-dismiss {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-dismiss:hover {
    background: #f1f5f9;
    color: #475569;
}

/* Success Toast */
.token-success-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10001;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.token-success-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.token-success-toast svg {
    flex-shrink: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .token-warning {
        top: 60px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .token-warning-content {
        flex-wrap: wrap;
        padding: 16px;
    }

    .btn-extend,
    .btn-login {
        width: 100%;
        margin-top: 8px;
    }

    .token-success-toast {
        bottom: 10px;
        right: 10px;
        left: 10px;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .token-warning {
        background: #1e293b;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    }

    .token-warning-text strong {
        color: #f1f5f9;
    }

    .token-warning-text p {
        color: #94a3b8;
    }

    .btn-dismiss:hover {
        background: #334155;
        color: #cbd5e1;
    }
}
