/* --- Floating Action Buttons (FAB) --- */
.scr-fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    align-items: flex-end;
}

.scr-floating-btn {
    height: 50px !important;
    padding: 0 20px !important;
    border-radius: 25px !important;
    background: #4f46e5 !important; /* رنگ اصلی بنفش */
    color: #fff !important;
    box-shadow: 0 8px 20px -5px rgba(79, 70, 229, 0.5) !important;
    border: none !important;
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-weight: 600 !important;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.scr-floating-btn:hover {
    transform: translateY(-4px) scale(1.05) !important;
    background: #4338ca !important;
}

.scr-floating-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* --- Global Modern Modal (Glassmorphism) --- */
.scr-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(15, 23, 42, 0.6); /* پس‌زمینه تیره */
    backdrop-filter: blur(8px); /* افکت بلور روی پس‌زمینه */
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
    /* برای وسط‌چین کردن فلکس */
    align-items: center;
    justify-content: center;
}

/* وقتی جی‌کوئری display:block می‌دهد، ما باید flex کنیم */
.scr-modal[style*="display: block"] {
    display: flex !important;
    opacity: 1;
}

.scr-modal-content {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 30px;
    width: 90%;
    max-width: 450px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    text-align: center;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;

    /* حذف استایل‌های قدیمی absolute */
    top: auto; right: auto; bottom: auto; left: auto; margin: 0;

    transform: scale(0.9);
    animation: scrPopUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scrPopUp {
    to { transform: scale(1); }
}

.scr-modal-content h2 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #111827;
    margin-bottom: 10px;
}

.scr-close-button {
    position: absolute;
    top: 15px; right: 15px;
    background: #f3f4f6;
    color: #6b7280;
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}
.scr-close-button:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* فرم‌های داخل مودال */
.scr-option {
    margin: 20px 0;
    padding: 15px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #f3f4f6;
}

.scr-option input[type="datetime-local"],
.scr-option input[type="date"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: border 0.2s;
}
.scr-option input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.scr-quick-dates {
    display: flex;
    gap: 8px;
    margin: 10px 0;
}
.scr-quick-dates .button {
    flex: 1;
    font-size: 12px;
    padding: 6px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #4b5563;
}
.scr-quick-dates .button:hover {
    border-color: #4f46e5;
    color: #4f46e5;
}

.scr-separator {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 600;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.scr-separator::before, .scr-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}