/* Enhanced CSS for Sunil Ringtones App */
body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated background particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="particles" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="white" opacity="0.1"/><circle cx="80" cy="40" r="0.5" fill="white" opacity="0.1"/><circle cx="40" cy="80" r="1.5" fill="white" opacity="0.1"/><circle cx="60" cy="20" r="0.8" fill="white" opacity="0.1"/><circle cx="10" cy="70" r="1" fill="white" opacity="0.1"/><circle cx="90" cy="80" r="0.6" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23particles)"/></svg>');
    animation: floatParticles 20s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes floatParticles {
    0% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(-10px) translateX(-10px); }
    75% { transform: translateY(-30px) translateX(5px); }
    100% { transform: translateY(0px) translateX(0px); }
}

.img-fluid { 
    max-width: 100%; 
    height: auto; 
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Enhanced ringtone cards */
.ringtone-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: cardSlideIn 0.6s ease-out;
}

@keyframes cardSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ringtone-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #6366f1, #60a5fa, #22c55e, #f59e0b);
    border-radius: 20px 20px 0 0;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background: linear-gradient(90deg, #6366f1, #60a5fa, #22c55e, #f59e0b); }
    25% { background: linear-gradient(90deg, #60a5fa, #22c55e, #f59e0b, #6366f1); }
    50% { background: linear-gradient(90deg, #22c55e, #f59e0b, #6366f1, #60a5fa); }
    75% { background: linear-gradient(90deg, #f59e0b, #6366f1, #60a5fa, #22c55e); }
}

.ringtone-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.ringtone-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    background: rgba(255, 255, 255, 1);
    border-color: rgba(99, 102, 241, 0.3);
}

.ringtone-card:hover::after {
    opacity: 1;
}

.ringtone-card img {
    transition: all 0.3s ease;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.ringtone-card:hover img {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0,0,0,0.25);
}

/* Enhanced audio controls */
audio {
    width: 100%;
    height: 40px;
    border-radius: 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

audio:hover {
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

/* Custom Audio Player Styles */
.custom-audio-player {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
}

.custom-audio-player:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.play-pause-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.play-pause-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.player-info {
    min-width: 0;
}

.progress-container {
    margin-top: 0.5rem;
}

.progress-bar-custom {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #60a5fa);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s ease;
}

.progress-bar-custom:hover .progress-fill {
    background: linear-gradient(90deg, #4f46e5, #3b82f6);
}

.time-display {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.player-actions {
    margin-top: 0.75rem;
}

.player-actions .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* Active playing state */
.custom-audio-player.playing {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.05);
}

.custom-audio-player.playing .play-pause-btn {
    background: #22c55e;
    border-color: #22c55e;
}

.custom-audio-player.playing .play-pause-btn:hover {
    background: #16a34a;
    border-color: #16a34a;
}

/* Enhanced buttons */
.play-btn {
    background: linear-gradient(135deg, #6366f1 0%, #60a5fa 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.download-btn {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
    color: white;
    text-decoration: none;
}

.download-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Enhanced banner */
.banner-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0 0 2rem 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.banner-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
    animation: grainMove 15s ease-in-out infinite;
}

@keyframes grainMove {
    0%, 100% { transform: translateX(0px) translateY(0px); }
    25% { transform: translateX(-5px) translateY(-3px); }
    50% { transform: translateX(5px) translateY(3px); }
    75% { transform: translateX(-3px) translateY(5px); }
}

.banner-bg h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { text-shadow: 2px 2px 4px rgba(0,0,0,0.3), 0 0 20px rgba(255,255,255,0.1); }
    100% { text-shadow: 2px 2px 4px rgba(0,0,0,0.3), 0 0 30px rgba(255,255,255,0.2); }
}

.banner-bg .btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.banner-bg .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.banner-bg .btn:hover::before {
    left: 100%;
}

/* Enhanced search and filter */
.search-filter-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 3rem;
    animation: slideInDown 0.8s ease-out;
}

@keyframes slideInDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-group-text {
    background: linear-gradient(135deg, #6366f1, #60a5fa);
    color: white;
    border: none;
    border-radius: 12px 0 0 12px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 0 12px 12px 0;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}

.form-control:focus, .form-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
    background: white;
    transform: translateY(-2px);
}

.search-btn {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 2rem;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
    background: linear-gradient(135deg, #16a34a, #22c55e);
}

/* Section styling */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #60a5fa);
    border-radius: 2px;
    animation: titleUnderline 2s ease-in-out infinite alternate;
}

@keyframes titleUnderline {
    0% { width: 50px; }
    100% { width: 100px; }
}

.section-title i {
    margin-right: 0.5rem;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Enhanced footer */
.footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 2rem 2rem 0 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.1), rgba(96, 165, 250, 0.1));
    animation: footerGradient 8s ease-in-out infinite;
}

@keyframes footerGradient {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.footer .container {
    position: relative;
    z-index: 1;
}

/* Enhanced countdown */
.countdown {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    text-align: center;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 768px) {
    .container { 
        padding: 10px; 
    }
    
    .ringtone-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .banner-bg {
        padding: 2rem 1rem !important;
    }
    
    .banner-bg h1 {
        font-size: 2rem !important;
    }
    
    .download-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .ringtone-card {
        text-align: center;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        border-radius: 8px !important;
        margin-bottom: 0.5rem;
    }
    
    .custom-audio-player {
        padding: 0.75rem;
    }
    
    .player-controls {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.75rem;
    }
    
    .play-pause-btn {
        align-self: center;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .player-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .player-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6366f1, #60a5fa);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #4f46e5, #3b82f6);
}

/* Animation for floating elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Enhanced form styles */
.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .banner-bg {
        padding: 2rem 1rem;
        border-radius: 0 0 1rem 1rem;
    }
    
    .banner-bg h1 {
        font-size: 2rem;
    }
    
    .search-filter-container {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .ringtone-card {
        margin-bottom: 1rem;
        padding: 1rem;
        border-radius: 15px;
    }
    
    .custom-audio-player {
        padding: 1rem;
    }
    
    .player-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .player-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .footer {
        border-radius: 1rem 1rem 0 0;
    }
}

@media (max-width: 576px) {
    .banner-bg h1 {
        font-size: 1.5rem;
    }
    
    .banner-bg .lead {
        font-size: 1rem;
    }
    
    .search-filter-container {
        padding: 1rem;
    }
    
    .input-group-text {
        padding: 0.5rem;
    }
    
    .form-control, .form-select {
        padding: 0.5rem;
    }
    
    .search-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .ringtone-card {
        padding: 0.75rem;
    }
    
    .custom-audio-player {
        padding: 0.75rem;
    }
    
    .play-pause-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .download-btn, .btn-outline-primary {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .ringtone-card {
        background: rgba(30, 30, 30, 0.95);
        color: #e5e5e5;
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .search-filter-container {
        background: rgba(30, 30, 30, 0.95);
        color: #e5e5e5;
    }
    
    .form-control, .form-select {
        background: rgba(40, 40, 40, 0.9);
        color: #e5e5e5;
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .form-control:focus, .form-select:focus {
        background: rgba(50, 50, 50, 0.9);
        color: #e5e5e5;
    }
}

.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Card hover effects */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* Badge styles */
.badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
}

/* Table enhancements */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background: linear-gradient(135deg, #6366f1, #60a5fa);
    color: white;
    border: none;
    font-weight: 600;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background-color: rgba(99, 102, 241, 0.05);
    transform: scale(1.01);
}

a {
    text-decoration: none !important;
  }
  
  
  /*hader footer*/
  
  .site-header {
    background: #111;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .logo a {
    color: #ffcc00;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #ffcc00;
}

.site-footer {
    background: #111;
    color: #ccc;
    text-align: center;
    padding: 15px;
    margin-top: 30px;
    font-size: 0.9rem;
}