/* ============================================
   التنسيقات الأساسية والخلفيات
   ============================================ */
body {
    background-color: #0B0F19;
    color: #F9FAFB;
    background-image: 
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
}

.glass-panel {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to left, #3B82F6, #8B5CF6);
}

/* شريط التمرير العام */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0B0F19;
}
::-webkit-scrollbar-thumb {
    background: #1F2937;
    border-radius: 10px;
}

/* ============================================
   تكوينات Tailwind الإضافية
   ============================================ */
.bg-dark-800 {
    background-color: #1F2937;
}
.bg-dark-900\/80 {
    background-color: rgba(17, 24, 39, 0.8);
}
.text-accent-primary {
    color: #3B82F6;
}
.text-accent-glow {
    color: #60A5FA;
}
.border-accent-primary\/30 {
    border-color: rgba(59, 130, 246, 0.3);
}
.border-accent-primary\/50 {
    border-color: rgba(59, 130, 246, 0.5);
}
.from-accent-primary {
    --tw-gradient-from: #3B82F6;
}
.to-accent-purple {
    --tw-gradient-to: #8B5CF6;
}
.shadow-accent-primary\/20 {
    --tw-shadow-color: rgba(59, 130, 246, 0.2);
}

/* ============================================
   المربع الخاص بالبرومبت (مع تمرير)
   ============================================ */
#outputBox {
    max-height: 420px;
    overflow-y: auto;
    direction: ltr;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.7;
    white-space: pre-wrap;
    word-wrap: break-word;
    scrollbar-width: thin;
    scrollbar-color: #3B82F6 transparent;
}

#outputBox::-webkit-scrollbar {
    width: 6px;
}
#outputBox::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}
#outputBox::-webkit-scrollbar-thumb {
    background: #3B82F6;
    border-radius: 10px;
}
#outputBox::-webkit-scrollbar-thumb:hover {
    background: #60A5FA;
}

/* ============================================
   حركة دوران دائرة التحميل
   ============================================ */
@keyframes spin {
    to { transform: rotate(360deg); }
}
.animate-spin {
    animation: spin 0.8s linear infinite;
}

/* ============================================
   القائمة المنسدلة (للأدوات)
   ============================================ */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 8px 0;
    margin-top: 8px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
    z-index: 100;
}
.dropdown-menu.open {
    display: block;
}
.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: #E5E7EB;
    font-size: 0.9rem;
    transition: all 0.2s;
    text-decoration: none;
}
.dropdown-menu a:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #60A5FA;
}

/* ============================================
   تنسيق زر "استخراج البرومبت الآن"
   ============================================ */
#generateBtn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 16px 24px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

#generateBtn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
    border-color: rgba(255, 255, 255, 0.25);
}

#generateBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}