/* Custom Styles for Zikrly App */

/* RTL Support for Arabic Text */
.rtl {
    direction: rtl;
    text-align: right;
}

/* Arabic Font Styling */
.arabic-text {
    font-family: 'Amiri', serif;
    font-size: 1.5rem;
    line-height: 2.2;
    direction: rtl;
    text-align: center;
    color: #1e293b;
}

/* Urdu (category cards, forms) */
.urdu-text,
.font-urdu {
    font-family: 'Noto Nastaliq Urdu', 'Amiri', serif;
    direction: rtl;
    text-align: center;
}

.font-urdu {
    text-align: right;
}

.category-card-urdu-title {
    font-size: 1.25rem;
    line-height: 1.9;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.category-card-urdu-desc {
    font-size: 0.9rem;
    line-height: 1.85;
    margin-bottom: 0.75rem;
    color: #475569;
}

/* Smooth Transitions */
* {
    transition: all 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Islamic Pattern Background */
.islamic-pattern {
    background-image: 
        radial-gradient(circle at 20px 20px, rgba(139, 92, 246, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 80px 80px, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
    background-size: 100px 100px;
}

/* Card Hover Effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pulse Animation */
@keyframes pulse-soft {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.pulse-soft {
    animation: pulse-soft 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Islamic Ornament Divider */
.ornament-divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.ornament-divider::before,
.ornament-divider::after {
    content: '❋';
    color: #d4af37;
    font-size: 1.5rem;
    opacity: 0.5;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pending {
    background: #dbeafe;
    color: #1e40af;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.status-missed {
    background: #fee2e2;
    color: #991b1b;
}

/* Time Picker Custom Styles */
input[type="time"] {
    padding: 0.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
}

input[type="time"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

input[type="time"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 9999;
}

/* Above modals so toasts / full-screen loading stay visible */
#loading-overlay {
    z-index: 10020;
}

.toast-notification {
    z-index: 10050;
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .arabic-text {
        font-size: 1.25rem;
        line-height: 2.2;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
}

/* Hide scrollbar for time input on mobile */
input[type="time"]::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}
