body {
    font-family: 'Vazir', sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
    direction: rtl;
    overflow-x: hidden;
}

.app-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    position: relative;
    z-index: 1;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 10px;
}

#search-bar {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    transition: box-shadow 0.3s;
}

#search-bar:focus {
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
    outline: none;
}

.audio-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.audio-player {
    width: 100%;
    max-width: 600px;
}

.audio-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.audio-info img {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    margin-left: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.audio-info h2 {
    font-size: 24px;
    color: #007bff;
    margin: 0;
}

.audio-info p {
    font-size: 16px;
    color: #666;
    margin: 5px 0 0;
}

.progress-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
    position: relative;
}

.progress-bar {
    width: 80%;
    height: 10px;
    background: #ddd;
    border-radius: 5px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.progress-bar:hover {
    height: 12px;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.progress-filled {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #00d4ff);
    border-radius: 5px;
    width: 0;
    transition: width 0.2s ease;
    position: relative;
    overflow: hidden;
}

.progress-filled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), transparent);
    animation: glow 2s infinite;
}

@keyframes glow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-handle {
    width: 16px;
    height: 16px;
    background: #fff;
    border: 2px solid #007bff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    cursor: grab;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    transition: left 0.2s ease;
}

.progress-tooltip {
    position: absolute;
    top: -30px;
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    display: none;
    transform: translateX(-50%);
}

.progress-bar:hover .progress-tooltip {
    display: block;
}

#current-time, #duration {
    font-size: 14px;
    color: #666;
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.btn {
    padding: 12px 20px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-size: 16px;
}

.btn:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.btn i {
    font-size: 18px;
}

#speed-select {
    padding: 10px;
    border-radius: 25px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    font-size: 16px;
}

#download-btn {
    background-color: #28a745;
}

#download-btn:hover {
    background-color: #218838;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

#volume-slider {
    width: 100px;
    accent-color: #007bff;
}

.playlist {
    width: 100%;
    max-width: 600px;
    max-height: 250px;
    overflow-y: auto;
    padding: 10px;
}

#sura-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#sura-list li {
    padding: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    font-size: 16px;
}

#sura-list li:hover {
    background-color: #f0f0f0;
    color: #007bff;
}

#sura-list li.active {
    background-color: #007bff;
    color: white;
    font-weight: bold;
}

footer {
    text-align: center;
    margin-top: 30px;
    color: #777;
    font-size: 14px;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(135deg, #1a1a1a, #2c3e50);
}