/* converter-style.css */

/* === 1. Global & Unified Styles === */
body { font-family: 'Outfit', 'Tajawal', sans-serif; }

/* Floating Coffee Button Animation */
@keyframes float-wave { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.floating-coffee-btn { animation: float-wave 4s ease-in-out infinite; }
.floating-coffee-btn:hover { animation-play-state: paused; }

/* Modal Styles */
#newsletter-modal-overlay { 
    display: none; opacity: 0; transition: opacity 0.3s ease-in-out; 
    position: fixed; inset: 0; z-index: 2002; background-color: rgba(0, 0, 0, 0.6); 
    align-items: center; justify-content: center; 
}
#newsletter-modal-overlay.visible { display: flex; }
#newsletter-modal-content { transform: scale(0.95); opacity: 0; transition: all 0.3s ease-in-out; }
#newsletter-modal-overlay.visible #newsletter-modal-content { transform: scale(1); opacity: 1; }

/* === 2. Tool-Specific Styles === */
/* Fade-in Animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* Active Format Button Style */
.format-btn.active {
    background-color: #7e22ce; /* primary color */
    color: white;
    font-weight: bold;
    border-color: #a855f7; /* lighter purple */
}
/* === Tools Navigation Bar Styles === */
.tools-nav-scroll {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px; /* مسافة للظل */
    scrollbar-width: none; /* إخفاء السكرول بار لفايرفوكس */
}
.tools-nav-scroll::-webkit-scrollbar {
    display: none; /* إخفاء السكرول بار لكروم */
}

.tools-nav-conteiner {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background-color: rgba(255, 255, 255, 0.7); /* خلفية شفافة للنهاري */
    backdrop-filter: blur(10px);
    border-radius: 9999px; /* شكل كبسولة */
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.dark .tools-nav-conteiner {
    background-color: rgba(31, 41, 55, 0.6); /* خلفية شفافة لليلي */
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tool-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem; /* text-sm */
    font-weight: 500;
    transition: all 0.3s ease;
    color: #4b5563; /* text-gray-600 */
    white-space: nowrap;
}

.dark .tool-nav-btn {
    color: #d1d5db; /* text-gray-300 */
}

.tool-nav-btn:hover {
    background-color: rgba(126, 34, 206, 0.1); /* لون Primary شفاف */
    color: #7e22ce; /* Primary */
}

/* الزر النشط (الأداة الحالية) */
.tool-nav-btn.active {
    background-color: #7e22ce; /* Primary */
    color: white;
    box-shadow: 0 4px 12px rgba(126, 34, 206, 0.3);
}
/* أضف هذا في ملف الـ CSS أو الـ style */
.format-btn.active {
    background-color: #7e22ce !important; /* Primary Purple */
    color: white !important;
    border-color: #7e22ce !important;
}
