/* Floating Contact Developer FAB */
.contact-fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.contact-fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 20px var(--primary-glow), 0 0 0 4px rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-fab:hover {
    transform: scale(1.1) translateY(-5px) rotate(10deg);
}

.contact-fab .chat-icon {
    width: 24px;
    height: 24px;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--primary);
    opacity: 0;
    animation: fab-pulse 2s infinite;
    pointer-events: none;
}

@keyframes fab-pulse {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.8;
    }

    100% {
        width: 180%;
        height: 180%;
        opacity: 0;
    }
}

/* Contact Card */
.contact-card {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom right;
}

@media (max-width: 400px) {
    .contact-card {
        width: calc(100vw - 40px);
        right: -10px;
    }
}

.contact-card.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.card-header {
    background: var(--primary);
    color: white;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.close-card {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s;
}

.close-card:hover {
    background: rgba(255, 255, 255, 0.3);
}

.card-body {
    padding: 20px;
}

.card-body p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-opt {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.contact-opt .emoji {
    font-size: 1.5rem;
}

.opt-text {
    display: flex;
    flex-direction: column;
}

.opt-text strong {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.opt-text small {
    font-size: 0.75rem;
    color: #94a3b8;
}

.contact-opt:hover {
    transform: translateX(5px);
    background: white;
}

.contact-opt.bug:hover {
    border-color: #ef4444;
}

.contact-opt.suggestion:hover {
    border-color: #f59e0b;
}

.contact-opt.business:hover {
    border-color: var(--primary);
}

.card-footer {
    padding: 12px 20px;
    background: #f1f5f9;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.card-footer small {
    font-size: 0.7rem;
    color: #94a3b8;
    font-style: italic;
}

/* Dark Mode Adjustments */
[data-theme='dark'] .contact-card {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme='dark'] .contact-opt {
    background: #0f172a;
    border-color: #1e293b;
}

[data-theme='dark'] .contact-opt:hover {
    background: #1e293b;
}

[data-theme='dark'] .opt-text strong {
    color: #f1f5f9;
}

[data-theme='dark'] .card-footer {
    background: #0f172a;
    border-color: #1e293b;
}

/* Development Status Bar - Inside Typing Box */
.dev-status-bar {
    position: absolute;
    bottom: 8px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.7;
    z-index: 10;
    pointer-events: auto;
    width: auto;
    padding: 0;
}

.dev-status-bar:hover {
    opacity: 1;
}

[data-theme='dark'] .dev-status-bar {
    color: #64748b;
}


.dev-status-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.status-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.7);
        opacity: 1;
    }

    80%,
    100% {
        transform: scale(3.0);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dev-status-bar p {
    margin: 0;
}

.dev-status-bar strong {
    color: var(--primary-readable);
    font-weight: 700;
}

#report-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
    transition: opacity 0.2s;
}

#report-link:hover {
    opacity: 0.7;
}

/* Close Button */
.close-status-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: 10px;
    transition: all 0.2s;
    opacity: 0.6;
}

.close-status-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    opacity: 1;
    transform: scale(1.1);
}

[data-theme='dark'] .close-status-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}