/* style.css */


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    /* ===== Colors ===== */
    --primary-color: #587964;
    --hmenu-color: #587964;
    --panel-color: #FFF;
    --text-color: #000;
    --black-light-color: #707070;
    --border-color: #e6e5e5;
    --toggle-color: #DDD;
    --box1-color: #fff;
    --box2-color: #FFE6AC;
    --box3-color: #E7D1FC;
    --title-icon-color: #fff;
    --player-accent: #587964; /* Default fallback */
    --player-muted: #587964;
    --player-text: #ffffff;
	
	--secondary-color: #6b6b6b;
	--link-color: #000;
    
    /* ====== Transition ====== */
    --tran-05: all 0.5s ease;
    --tran-03: all 0.2s ease;
}


body{
    min-height: 100vh;
    background-color: var(--primary-color);
}
body.dark{
    --primary-color: #3A3B3C;
	 --hmenu-color: var(--player-accent);
    --panel-color: #242526;
    --text-color: #CCC;
    --black-light-color: #CCC;
    --border-color: #4D4C4C;
    --toggle-color: #FFF;
    --box1-color: #3A3B3C;
    --box2-color: #3A3B3C;
    --box3-color: #3A3B3C;
    --title-icon-color: #CCC;
	
	--secondary-color: #587964;
	--link-color: #587964;
}

/* === Custom Scroll Bar CSS === */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #0b3cc1;
}

body.dark::-webkit-scrollbar-thumb:hover,
body.dark .activity-data::-webkit-scrollbar-thumb:hover{
    background: #3A3B3C;
}

nav{
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 250px;
    padding: 10px 14px;
    background-color: var(--panel-color);
    border-right: 1px solid var(--border-color);
    transition: var(--tran-05);
}
nav.close{
    width: 73px;
}
nav .logo-name{
    display: flex;
    align-items: center;
}
nav .logo-image{
    display: flex;
    justify-content: center;
    min-width: 45px;
}
nav .logo-image img{
    width: 40px;
    object-fit: cover;
    border-radius: 50%;
}

nav .logo-name .logo_name{
    font-size: 22px;
    font-weight: 600;
    color: var(--text-color);
    margin-left: 14px;
    transition: var(--tran-05);
}
nav.close .logo_name{
    opacity: 0;
    pointer-events: none;
}
nav .menu-items{
    margin-top: 20px;
    height: calc(100% - 90px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
	
}
.menu-items li{
    list-style: none;
}
.menu-items li a{
    display: flex;
    align-items: center;
    height: 50px;
    text-decoration: none;
    position: relative;
}
.nav-links li a:hover:before{
    content: "";
    position: absolute;
    left: -7px;
    height: 5px;
    width: 5px;
    border-radius: 50%;
    background-color: var(--hmenu-color);
}
body.dark li a:hover:before{
    background-color: var(--text-color);
}
.menu-items li a i{
    font-size: 24px;
    min-width: 45px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black-light-color);
}
.menu-items li a .link-name{
    font-size: 18px;
    font-weight: 400;
    color: var(--black-light-color);    
    transition: var(--tran-05);
}
nav.close li a .link-name{
    opacity: 0;
    pointer-events: none;
}
.nav-links li a:hover {
    background-color: var(--hmenu-color); /* Set the background color to your desired hover color */
    color: var(--panel-color); /* Optional: Change the text color on hover for better contrast */
}

.nav-links li a:hover i,
.nav-links li a:hover .link-name{
    color: var(--panel-color); /* Update the icon and text color to contrast with the new background */
}
body.dark .nav-links li a:hover i,
body.dark .nav-links li a:hover .link-name{
    color: var(--text-color);
}
.menu-items .logout-mode{
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}
.menu-items .mode{
    display: flex;
    align-items: center;
    white-space: nowrap;
	justify-content: space-between;
}
.menu-items .mode-toggle{
    position: absolute;
    right: 14px;
    height: 50px;
    min-width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.mode-toggle .switch{
    position: relative;
    display: inline-block;
    height: 22px;
    width: 40px;
    border-radius: 25px;
    background-color: var(--toggle-color);
}
.switch:before{
    content: "";
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    height: 15px;
    width: 15px;
    background-color: var(--panel-color);
    border-radius: 50%;
    transition: var(--tran-03);
}
body.dark .switch:before{
    left: 20px;
}
.controls {
  position: fixed;
  bottom: 0;
  left: 250px;
  width: calc(100% - 250px);
   transition: var(--tran-05);
 
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
	flex-direction:column;
    background-color: var(--panel-color);
}
.dashboard{
    position: relative;
    left: 250px;
    background-color: var(--panel-color);
    min-height: 100vh;
    width: calc(100% - 250px);
    padding: 10px 14px;
    transition: var(--tran-05);
	
}
nav.close ~ .dashboard{
    left: 73px;
    width: calc(100% - 73px);
}
nav.close ~  .dashboard .controls{
    left: 73px;
    width: calc(100% - 73px);
}
  .active {
  background-color: #e0e0e0;
  color: #000;
  font-weight: bold;
  /* Add any other styles for the active state */
}
.dashboard .top{
    position: fixed;
    top: 0;
    left: 250px;
    display: flex;
    width: calc(100% - 250px);

    align-items: center;
    padding: 10px 14px;
    background-color: var(--panel-color);
    transition: var(--tran-05);
    z-index: 10;
}
nav.close ~ .dashboard .top{
    left: 73px;
    width: calc(100% - 73px);
}
.dashboard .top .sidebar-toggle{
    font-size: 26px;
    color: var(--text-color);
    cursor: pointer;
}
.dashboard .top .search-box{
    position: relative;
    height: 45px;
    max-width: 600px;
    width: 100%;
    margin: 0 30px;
}
.top .search-box input{
    position: absolute;
    border: 1px solid var(--border-color);
    background-color: var(--panel-color);
    padding: 0 25px 0 50px;
    border-radius: 5px;
    height: 100%;
    width: 100%;
    color: var(--text-color);
    font-size: 15px;
    font-weight: 400;
    outline: none;
}
.top .search-box i{
    position: absolute;
    left: 15px;
    font-size: 22px;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
    color: var(--black-light-color);
}
.top img{
    width: 40px;
    border-radius: 50%;
}
.dashboard .dash-content{
    padding-top: 40px;
	 padding-bottom: 120px; /* Add space at the bottom for the player */
}
.dash-content .title{
    display: flex;
    align-items: center;
    margin: 15px 0 5px 0;
}
.dash-content .title i{
    position: relative;
    height: 35px;
    width: 35px;
    background-color: var(--primary-color);
    border-radius: 6px;
    color: var(--title-icon-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.dash-content .title .text{
    font-size: 20px;
    font-weight: 500;
    color: var(--text-color);
    margin-left: 10px;
}

.dashboard .title h3{
    color: var(--text-color);
    
}
.dash-content .boxes{
    display: flex;
    align-items: flex-start;
    justify-content: space-evenly;
    flex-wrap: wrap;
	
}
.dash-content .boxes .box{
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 12px;
    width: calc(100% / 3 - 15px);
  /*  padding: 15px 20px;*/
    background-color: var(--box1-color);
    transition: var(--tran-05);
}

.dash-content .boxes .cover{
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 12px;
    width:400px;
  /*  padding: 15px 20px;*/
    background-color: var(--box1-color);
    transition: var(--tran-05);
}
.boxes .box i{
    font-size: 25px;
    color: var(--black-light-color);
}
.boxes .box .text{
   /* white-space: ;*/
  
   text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
}
.boxes .box .number{
    font-size: 40px;
    font-weight: 500;
    color: var(--text-color);
}
.boxes .box.box2{
    background-color: var(--box2-color);
}
.boxes .box.box3{
    background-color: var(--box3-color);
}
.dash-content .activity .activity-data{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
	overflow:auto;
}
.activity .activity-data{
    display: flex;
}
.activity-data .data{
    display: flex;
    flex-direction: column;
    
	
}
.activity-data .data-title{
    font-size: 20px;
    font-weight: 500;
    color: var(--text-color);
}
.activity-data .data .data-list{
    font-size: 18px;
    font-weight: 400;
    margin-top: 0px;
    white-space: wrap;
    color: var(--text-color);
	
}

@media (max-width: 1000px) {
    nav{
        width: 73px;
    }
    nav.close{
        width: 250px;
    }
    nav .logo_name{
        opacity: 0;
        pointer-events: none;
    }
    nav.close .logo_name{
        opacity: 1;
        pointer-events: auto;
    }
    nav li a .link-name{
        opacity: 0;
        pointer-events: none;
    }
    nav.close li a .link-name{
        opacity: 1;
        pointer-events: auto;
    }
    nav ~ .dashboard{
        left: 73px;
        width: calc(100% - 73px);
    }
    nav.close ~ .dashboard{
        left: 250px;
        width: calc(100% - 250px);
    }
	 nav ~ .dashboard .controls{
        left: 73px;
        width: calc(100% - 73px);
    }
    nav.close ~ .dashboard .controls{
        left: 250px;
        width: calc(100% - 250px);
    }
    nav ~ .dashboard .top{
        left: 73px;
        width: calc(100% - 73px);
    }
    nav.close ~ .dashboard .top{
        left: 250px;
        width: calc(100% - 250px);
    }
    .activity .activity-data{
       
    }
}

@media (max-width: 780px) {
    .dash-content .boxes .box{
        width: calc(100% / 2 - 15px);
        margin-top: 15px;
    }
	.cover{
		width: 200px;
	}
}
@media (max-width: 560px) {
    .dash-content .boxes .box{
        width: 100% ;
    }
	.cover{
		width: 130px;
	}
}
@media (max-width: 450px) {
    nav{
        width: 0px;
    }
    nav.close{
        width: 73px;
    }
	nav .menu-items{
		margin-top: -50px;
	}
    nav .logo_name{
		margin-top: 75px;
        opacity: 0;
        pointer-events: none;
    }
    nav.close .logo_name{
        opacity: 0;
        pointer-events: none;
    }
    nav li a .link-name{
        opacity: 0;
        pointer-events: none;
    }
    nav.close li a .link-name{
        opacity: 0;
        pointer-events: none;
    }
    nav ~ .dashboard{
        left: 0;
        width: 100%;
    }
	 nav ~ .dashboard .controls{
        left: 0;
        width: 100%;
    }
    nav.close ~ .dashboard{
        left: 73px;
        width: calc(100% - 73px);
    }
	nav.close ~ .dashboard .controls{
        left: 73px;
        width: calc(100% - 73px);
    }
    nav ~ .dashboard .top{
        left: 0;
        width: 100%;
    }
    nav.close ~ .dashboard .top{
        left: 0;
        width: 100%;
    }
	.cover{
		width: 100px;
	}
	
}



.controls button {
  background-color: transparent;
  border: none;
  font-size: 24px;
  margin: 0 10px;
  color: #555;
}

.controls button:hover {
  cursor: pointer;
  color: #1db954;
}

.controls .play-btn {
  font-size: 32px;
}

.controls .prev-btn,
.controls .next-btn {
  font-size: 24px;
}

.controls .play-btn i:before {
  content: '\f04b';
}

.controls .pause-btn i:before {
  content: '\f04c';
}

.controls .prev-btn i:before {
  content: '\f04a';
}

.controls .next-btn i:before {
  content: '\f04e';
}


/*new player*/

/* 🔵 Ensure Everything in the Top Bar is Aligned */
.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: #fff;
    border-bottom: 1px solid #ddd;
}

/* 🔵 Container for Dropdowns */
.dropdown-container {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between dropdowns */
}

/* 🔵 Style Dropdowns Like Search Bar */
.dropdown-wrapper {
    position: relative;
}

.dropdown {
    display: block;
    background: var(--panel-color);
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 16px;
    outline: none;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
	color:var(--black-light-color);
}

 .dropdown-icon {
        
        
       
    }

.dropdown option
{
   background: var(--panel-color);
	
	color:var(--black-light-color);
}

.dropdown option:hover {
  background: var(--hmenu-color); /* Replace with your desired hover background color variable or hex code */
 /* color: var(--your-hover-text-color); /* Optional: Change the text color on hover */
}

/* 🔵 Hide Dropdowns & Show Icons on Mobile */
@media (max-width: 768px) {
    .dropdown {
        display: none; /* Hide select dropdowns on mobile */
        position: absolute;
        top: 40px; /* Place dropdown below icon */
        left: 50%;
        transform: translateX(-50%);
        width: 180px;
        z-index: 1000;
       
    }

    .dropdown-icon {
        display: inline-block;
        font-size: 24px;
        cursor: pointer;
        padding: 5px;
       
    }

    .dropdown.show {
        display: block;
    }
}

/* 🔵 Hide Icons on Larger Screens */
@media (min-width: 769px) {
    .dropdown-icon {
        display: none !important;
    }
}

/* new playlist styles from geimni*/
/* Styles for the Playlists dropdown */
/* Player Playlist Dropdown Styles */
.player-playlist-dropdown {
    position: relative;
    margin-right: 10px; /* Adjust spacing as needed */
}

.player-playlist-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    padding: 5px 10px;
    display: flex;
    align-items: center;
}

.player-playlist-toggle i {
    margin-right: 5px;
}

.player-playlist-options {
    display: none;
    position: absolute;
    background-color: var(--panel-color);
    border: 1px solid var(--border-color);
    list-style: none;
    padding: 5px 0;
    left: 0;
    bottom: 100%;
    z-index: 12;
    min-width: 200px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.player-playlist-options.show {
    display: block;
}

.player-playlist-options li .player-playlist-item {
    display: block;
    width: 100%;
    padding: 8px 15px;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    transition: background-color var(--tran-03), color var(--tran-03);
    display: flex;
    align-items: center;
}

.player-playlist-options li .player-playlist-item i {
    margin-right: 5px;
}

.player-playlist-options li .player-playlist-item:hover {
    background-color: var(--hmenu-color);
    color: var(--panel-color);
}

.added-tick {
    color: var(--primary-color);
    margin-left: 5px;
    font-size: 0.8em;
}
/* End Playlist droprown (Now in player) */

/* Table Container -- for Kalams */
.table-container {
  width: 100%;
  overflow-x: auto; /* Force horizontal scroll on mobile */
  margin: 20px 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on mobile */
}

/* Modern Table Styling */
.modern-table {
  width: 100%;
  border-collapse: collapse;
   background: var(--panel-color);
  border-radius: 8px;
  min-width: 600px; /* Minimum width to prevent column squeezing */
}

/* Table Header */
.modern-table th {
  background-color: #587964;
  color: #fff;
  padding: 5px 5px;
  text-align: left;
  font-weight: 600;
}

/* Table Rows */
.modern-table td {
  padding: 8px 5px;
  border-bottom: 1px solid var(--border-color);
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
  color: var(--black-light-color);
}

/* Styled Playlist Name Links */
.modern-table tbody td a {
	color: var(--black-light-color);
	text-decoration: none;
	transition: color 0.3s ease;
}

.modern-table tbody td a:hover {
	color: #fff; /* Darker blue on hover */
	text-decoration: underline; /* Underline on hover */
}

/* Added Kalam Count Column */
.modern-table th:nth-child(3),
.modern-table td:nth-child(3) {
	/* Center align Kalam Count */
}

/* Alternate Row Colors */
.modern-table tbody tr:nth-child(even) {
 /* background: var(--box1-color);*/
}

/* Hover Effect */
.modern-table tbody tr:hover td {
  background-color: var(--hmenu-color);
	 color: #fff;
}


.modern-table tbody tr {
    cursor: pointer;
    transition: background-color 0.2s;
}


/* Mobile: Keep table rows as rows (no stacking) */
@media (max-width: 768px) {
  .modern-table {
    font-size: 14px; /* Smaller font for mobile */
  }
  .modern-table th,
  .modern-table td {
    padding: 8px 10px; /* Smaller padding for mobile */
  }
}

/* Favorite Button */
.favorite-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 5px;
}

.favorite-btn i.fas {
    color: var(--player-muted); /* Filled heart color */
}

.remove-from-playlist-btn,
.delete-playlist-btn{
        color: #ff4757;
        background: none;
        border: none;
        cursor: pointer;
    }

/* Styled Create Playlist Button */
.create-playlist-btn {
	background-color: var(--primary-color);
	color: white; /* White text */
	border: none;
	padding: 10px 20px;
	border-radius: 5px;
	cursor: pointer;
	font-size: 1rem;
	transition: background-color 0.3s ease;
	float: right;
	margin-top: 10px;
}

.create-playlist-btn:hover {
	background-color: var(--hmenu-color); 
}

/* For Disclaimer, About, Contact page */
.overview {
    background-color: var(--panel-color);
	padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Adjust as needed */
}
.overview h1 {
    font-size: 2em;
    margin-bottom: 20px;
    color: var(--link-color); /* Adjust as needed */
}
.overview h2, .overview h3{
	color: var(--link-color);
}

.overview p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--text-color); /* Adjust as needed */
}

.overview ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

.overview ul li a, .overview ul li {
    color: var(--link-color); /* Adjust link color as needed */
    text-decoration: none;
}

.overview ul li a:hover {
    text-decoration: underline;
}

.overview a {
    color: var(--link-color);
    text-decoration: none;
}

.overview a:hover {
    text-decoration: underline;
}

/*User profile icon and dropdown styling*/
.top .fa-user {
    font-size: 2em; /* Adjust size as needed */
    color: var(--black-light-color); /* Use a CSS variable for theming */
    cursor: pointer; /* Indicate it's interactive */
    margin-left: 20px; /* Add some spacing from the search box */
    position: relative; /* For positioning the dropdown */
}

.user-dropdown-wrapper {
    position: relative; /* For positioning the dropdown */
    margin-left: 20px;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 16px); /* Position below the icon */
    right: 0;
    background-color: var(--panel-color); /* Use your panel background color */
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 10; /* Ensure it's above other elements */
    display: none; /* Initially hidden */
    min-width: 120px; /* Adjust as needed */
}

.user-dropdown.open {
    display: block; /* Show the dropdown when the 'open' class is added */
}
.dropdown-item.user-info {
    font-weight: bold;
    text-align: center;
    cursor: default; /* Not clickable */
}

.dropdown-item {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--black-light-color); /* Use your text color */
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--hmenu-color);  /* Hover background color */
	 color: white;
}

/* Styles for footer section */
footer {
    background-color: var(--panel1-color); /* Use your panel background color */
    color: var(--black-light-color); /* Use your text color */
    padding: 40px 0;
    font-size: 0.9em;
    line-height: 1.6;
}

.footer-container {
    max-width: 1200px; /* Adjust as needed */
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around; /* Distribute sections evenly */
}

.footer-section {
    margin-bottom: 20px;
    width: 100%; /* Stack sections on smaller screens */
    text-align: center;
}

.footer-section h3 {
    color: var(--primary-color); /* Use your primary color */
    margin-bottom: 10px;
}

.footer-logo img {
    max-width: 80px; /* Adjust logo size */
    height: auto;
    border-radius: 50%; /* Make the logo circular */
    margin-right: 10px; /* Spacing between logo and name */
  /*  vertical-align: middle; /* Align vertically with the name */
}

.footer-name {
	font-size: 18px;
    font-weight: bold;
    display: inline-block; /* Display next to the logo */
    vertical-align: middle;
}

.footer-description {
    margin-bottom: 15px;
}

.footer-section.links ul {
    list-style: none;
    padding: 0;
}

.footer-section.links ul li {
    margin-bottom: 8px;
}

.footer-section.links a {
    color: var(--black-light-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section.links a:hover {
    color: var(--primary-color);
}

.footer-section.social .social-links {
    display: flex;
    flex-direction: column; /* Stack icons vertically */
    align-items: center; /* Center icons horizontally */
    gap: 10px; /* Spacing between icons */
    font-size: 1.5em;
    margin-top: 10px; /* Add spacing below the "Follow Us" text */
}

.footer-section.social .social-links a {
    color: var(--icon-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section.social .social-links a:hover {
    color: var(--primary-color);
}

.footer-section.copyright {
    width: 100%;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee; /* Subtle separator */
    text-align: center;
    font-size: 0.85em;
}

/* Responsive adjustments for larger screens */
@media (min-width: 768px) {
    .footer-section {
        width: auto;
        text-align: left;
        margin-right: 30px; /* Add spacing between sections */
    }

    .footer-section.branding {
        width: 30%; /* Adjust width as needed */
    }

    .footer-section.links {
        width: 20%; /* Adjust width as needed */
    }

    .footer-section.social {
      /*  width: 25%; /* Adjust width as needed */
        text-align: left;
    }

    .footer-section.copyright {
        text-align: center;
        margin-top: 40px;
    }
}

/* Loader with blur effect */
.loader-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(69 66 66 / 67%);
    backdrop-filter: blur(5px);
    z-index: 9998;
}

.loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #cdc9c9;
    border-top: 4px solid #587964;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Navigation Active State */
.nav-links a.active {
    background: var(--primary-color-light);
    color: var(--primary-color) !important;
    border-radius: 8px;
}

.nav-links a.active i {
    color: var(--primary-color);
}

.nav-links a.active:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 3px;
    background: var(--primary-color);
    border-radius: 0 4px 4px 0;
}



/* Enhanced Loader Styles */
.playpause-container {
    position: relative;
    transition: opacity 0.3s ease;
}

.playpause-container.loading {
    opacity: 0.7;
}

.audio-loader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    opacity: 1;
    transition: none; /* Remove transitions */
}

.audio-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: var(--player-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Volume icon transitions */
.fa-volume, .fa-volume-xmark {
    transition: transform 0.2s ease;
}

.fa-volume:hover, .fa-volume-xmark:hover {
    transform: scale(1.1);
}



/* Keep progress bar visible during loading */
.progress-bar {
    transition: width 0.3s linear;
}

.loading .audio-loader {
    display: block;
}

/* Hide loader when not needed */


/* Prevent touch highlights */
.slider_container {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
}

/* Smoother progress bar transitions */
.progress-bar {
    transition: width 0.1s linear;
}

.playpause-container.loading .fa-circle-pause {
    opacity: 1 !important;
}
