/* Custom styles for Adhkar app */

/* Arabic text styles */
.arabic-text {
    font-family: 'Amiri', serif;
    font-size: 1.8rem;
    line-height: 2.5;
    color: #198754;
}

.translation {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
}

.transliteration {
    font-size: 1rem;
    color: #888;
    font-style: italic;
}

/* Card styles */
.dhikr-card {
    border-radius: 15px;
    border-color: #e0e0e0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 1.5rem;
}

.dhikr-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dhikr-card .card-body {
    padding: 2rem;
}

/* Counter badge styles */
.counter-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.counter-badge:hover {
    transform: scale(1.1);
}

/* Prayer times styles */
.prayer-time {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prayer-time:last-child {
    border-bottom: none;
}

.prayer-name {
    font-weight: bold;
    color: #198754;
}

/* Animation for counter */
@keyframes countAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.count-animate {
    animation: countAnimation 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .arabic-text {
        font-size: 1.5rem;
    }
    
    .dhikr-card .card-body {
        padding: 1.5rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body.dark-mode {
        background-color: #121212;
        color: #ffffff;
    }

    .dark-mode .card {
        background-color: #1e1e1e;
        border-color: #333;
    }

    .dark-mode .arabic-text {
        color: #2fb344;
    }

    .dark-mode .translation {
        color: #cccccc;
    }

    .dark-mode .transliteration {
        color: #999999;
    }

    .dark-mode .modal-content {
        background-color: #1e1e1e;
        border-color: #333;
    }
}

/* Loading spinner styles */
.loading-spinner {
    width: 50px;
    height: 50px;
    margin: 20px auto;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #198754;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Toast notifications */
.toast {
    border-radius: 10px;
}

/* Utility classes */
.fadeIn {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}