/* Resetting default styles ------------------------------------------------------------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #181818;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Ensures the body takes up the full viewport height */
    overflow-y: scroll;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

main {
    flex: 1;
    /* Ensures main content takes up remaining space */
}


body::-webkit-scrollbar {
    display: none;
}




/*TOP NAV---------------------------------------------------------------------------------------------------------- */
.top-nav {
    background-color: #333;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    top: 0;
    position: sticky;
    z-index: 1000;
}

.menu-items a.active {
    color: #c77f00;
    /* or any color you like */
    font-weight: bold;
    border-bottom: 2px solid #c77f00;
}


.logo-container {
    margin-right: auto;
    /* Push everything else to the right */
}

.menu-items {
    flex-grow: 1;
    /* Takes available space */
    display: flex;
    justify-content: center;
    /* Centers the menu */
}

.menu-items ul {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.menu-items ul li {
    display: inline;
}

.menu-items ul li a {
    color: white;
    text-decoration: none;
}

.hamburger {
    display: none;
    /* If you want it visible, adjust this in media queries */
}

/* If you need to align dropdown correctly */


ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
}

li {
    margin-left: 10px;
}

li a {
    display: inline-block;
    color: #ffffff;
    text-align: center;
    padding: 10px 15px;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    transition: background-color 0.3s, transform 0.2s;
}

li a:hover {
    transform: scale(1.1);
}

/* Styling the logo */
.logo {
    max-width: 50px;
    transition: transform 0.2s;
}

.logo:hover {
    transform: scale(1.1);
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #e89b00;
    transition: transform 0.2s;
}

.hamburger:hover span {
    transform: scaleX(1.2);
}

/* Dropdown Styles */
.dropdown {
    display: none;
    position: absolute;
    top: 50px;
    right: 10px;
    background-color: #444444f8;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    animation: fadeInDrop 0.5s ease-out;
    transform-origin: top right;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 1000;
}

/* When dropdown is active */
.dropdown.show {
    display: block;
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

/* Animation */
@keyframes fadeInDrop {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.dropdown a {
    display: block;
    text-decoration: none;
    color: #e89b00;
    padding: 10px 30px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.dropdown a:hover {
    background-color: #555;
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {

    .top-nav {
        top: 0;
    }

    .menu-items {
        display: none;
        flex-direction: column;
        background-color: #333;
        position: absolute;
        top: 50px;
        right: 3px;
        width: 100%;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

    .menu-items.active {
        display: flex;
    }

    ul {
        flex-direction: column;
        margin: 0;
        padding: 0;
    }

    li {
        margin: 0;
        padding: 20px;
    }

    li a {
        padding: 30px;
        text-align: left;
        border-bottom: 1px solid #444;
        font-size: 18px;
    }

    .hamburger {
        display: flex;
    }

    .menu-items {
        display: none;
        /* Hide main nav on mobile */
    }

    .dropdown {
        display: none;
        /* Hidden by default, toggled via JS */
        flex-direction: column;
        width: 200px;
        height: auto;
        z-index: 1000;
    }

    .dropdown.show {
        display: flex;
        /* Show when toggled */
    }

}


/* Styling the bottom navigation bar */


.search-container {
    display: flex;
    align-items: center;

}


.search-box {
    margin-top: 10px;
    margin-left: 38px;
    padding: 8px;
    margin-right: 4px;
    border: none;
    font-size: 18px;
    border-radius: 5px;
    width: 40%;
    border-bottom: 2px solid #e89b00;
    /* Adds a bottom margin line */
    position: sticky;
    top: 0;
    z-index: 100;
}

@media (max-width: 768px) {

    .search-box {
        margin-top: 4px;
        margin-left: 5px;
        padding: 10px;
        margin-right: 15px;
        border: none;
        font-size: 15px;
        border-radius: 5px;
        width: 70%;
        border-bottom: 2px solid #e89b00
    }

}


.lebel {
    display: inline-block;
    background-color: #523483;
    padding: 3px 13px;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    margin-top: 15px;
    border: none;
}

.lebel:hover {
    background-color: #2501aa;
    transform: scale(1.1);
}

.search-button:hover {
    background-color: rgb(13, 110, 78);
    transform: scale(1.1);
}

/* prod descrip page */


/* Media query for smaller screens---------------------------------------------------------- */
@media (max-width: 768px) {
    .top-nav {
        flex-direction: row;
        align-items: center;
    }

    .menu-items {
        margin-top: -5px;
    }

    li {
        display: inline-block;
        color: #e89b00;
        text-align: center;
        padding: 2px 2px;
        text-decoration: none;
        font-family: Arial, Helvetica, sans-serif;
        transition: background-color 0.3s;
    }

    .top-nav {
        background-color: #333;
        padding: 3px 8px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        top: 0;
        position: sticky;
        z-index: 1000;
    }
}


/*Main content-------------------------------------------------------------------*/


.card-content22 {
    background-color: #e89b00;
}

.card-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-left: 40px;
    margin-right: 40px;
    margin-bottom: 25px;
    margin-top: 25px;
    padding: 5px;
    padding-top: -3px;
    background-color:  #29223a;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.315);
    gap: 10px;
}

/* Landscape style cards */
.card {
    background-color: #cccccc;
    border-radius: 0px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.637);
    overflow: hidden;
    width: 32%;
    /* slight reduction to fit with gap */
    display: flex;
    flex-direction: row;
    transition: transform 0.3s;

}

.card:hover {
    transform: scale(1.02);
}

.card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.card-content {
    padding: 10px;
    width: 60%;
}

.card-content p,
.card-content h4 {
    margin: 4px 0;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

/* Mobile view - still landscape but stacked */
@media (max-width: 768px) {
    .card-container {
        margin: 10px 4px;
        gap: 10px;
    }

    .card {
        width: 100%;
        flex-direction: row;
        /* Keep landscape */
    }

    .card img {
        width: 100px;
        height: 100px;
    }

    .card-content {
        width: calc(100% - 100px);
        text-align: left;
    }
}

.new-music-heading {
    text-align: center;
    margin: 10PX auto; 
    width: 94%;
    padding: 10px;
    background-image: url('images/head.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}



/* for general container------------------------------------------------------------- */
.card-container2-wrapper {
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

.card-container2 {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px;
    margin-top: 0px;
    gap: 20px;
    background: #29223a;

    scrollbar-width: none;         
    -ms-overflow-style: none;      
}

.card-container2::-webkit-scrollbar {
    display: none;
}


.image-card {
    position: relative;
    width: 35vw;
    max-width: 150px;
    height: 35vw;
    max-height: 150px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-card:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: rgb(255, 255, 255);
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    padding: 10px 15px;
    display: none;
    pointer-events: none;
}

.image-card:hover .play-button {
    display: block;
}

/* Overlay on top of image */
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    backdrop-filter: blur(6px);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0,0,0,0));
    color: white;
    padding: 8px 10px;
    font-size: 13px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 4px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}


/* Genre tag styling */
.genre {
    display: inline-block;
    background: linear-gradient(135deg, #ffb347, #e89b00);
    border-radius: 12px;
    padding: 2px 10px;
    font-weight: 500;
    font-size: 11px;
    color: #1a1a1a;
    align-self: flex-start;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}



.title {
    margin: 0;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.artist {
    margin: 0;
    font-size: 12px;
    font-style: italic;
    color: #ddd;
}


/* Number badge in top-left corner */
.number-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #e89b00;
    color: #fff;
    padding: 5px 9px;
    font-size: 13px;
    font-weight: bold;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}


.number-badge2 {

    top: 5px;
    left: 5px;
    background: #e89b00;
    color: #fff;
    padding: 3px 7px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 0;
    z-index: 2;
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .card-container2 {
        padding: 6px;
        gap: 5px;
    }

    .image-card {
        position: relative;
        width: 35vw;
        max-width: 150px;
        height: 35vw;
        max-height: 150px;
        flex-shrink: 0;
        overflow: hidden;
        border-radius: 10px;
    }



    .number-badge {
        font-size: 13px;
        padding: 4px 8px;
    }
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: white;
    border: none;
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 800;
    transition: transform 0.3s ease, background 0.3s ease;
}

.arrow.left {
    left: 10px;
}

.arrow.right {
    right: 10px;
}

.arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.2);
}

.arrow:focus {
    outline: 2px solid white;
}

@media (max-width: 768px) {

    .arrow {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

}



/* Styling the footer--------------------------------------------------------------- */
.footer {
  background-color: #181818;
  color: #888888;
  padding: 40px 20px 20px;
  font-family: 'Segoe UI', sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
  margin: auto;
}

.footer-column {
  flex: 1 1 220px;
  min-width: 220px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
  padding: 5px;
}

.footer-column h3 {
  margin-bottom: 15px;
  font-size: 18px;
  border-bottom: 2px solid #383838;
  padding-bottom: 5px;
}

.footer-column p {
  font-size: 14px;
  line-height: 1.6;
}

.social-icons a {
  margin-right: 10px;
  display: inline-block;
}

.social-icons img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.social-icons img:hover {
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #34495e;
  font-size: 13px;
  color: #bdc3c7;
}


/* song view------------------------------------------ */

.songView {
    display: flex;
    flex-direction: row;
    flex: 1 1 100%;
    max-width: 100%;
    gap: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #d1d1d1, #f1f1f1);
    background-color: #c2c2c2; /* fallback */
    border-radius: 12px;
    border: 1px solid #a0a0a0;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.6),
        0 2px 5px rgba(0, 0, 0, 0.644);
    align-items: flex-start;
    margin: 10px 0;
    background-blend-mode: lighten;
}


.song-image img {
    width: 300px;
    height: 300px;
    border-radius: 10px;
    object-fit: cover;
}

.song-details {
    flex: 1;
}

.song-details p {
    margin: 4px 0;
}

.song-title {
    margin-top: 0;
    font-size: 20px;
    color: #c77f00;
    margin-bottom: 10px;
}

.player-controls {
    margin: 10px 0;
}


.download-btn {
    display: inline-block;
    padding: 10px 16px;
    background: linear-gradient(to bottom, #c8c8c8, #a0a0a0);
    color: #1a1a1a;
    border: 1px solid #8a8a8a;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: background 0.3s, transform 0.2s;
}

.download-btn:hover {
    background: linear-gradient(to bottom, #e0e0e0, #b0b0b0);
    transform: scale(1.05);
}

.download-btn i {
    margin-right: 6px;
}
@media (max-width: 768px) {
    .songView {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 6px; /* Reduced padding */
        gap: 6px; /* Tighter spacing */
    }

    .song-image img {
        width: 100%;
        max-width: 150px; /* Smaller image */
        height: auto;
        margin-bottom: 6px; /* Tighter margin */
    }

    .song-details {
        width: 100%;
    }

    .song-details p {
        font-size: 16px; /* Smaller text */
        margin: 1px 0; /* Minimal spacing */
    }

    .song-title {
        font-size: 16px; /* Smaller heading */
        margin-bottom: 4px;
    }

    .player-controls {
        justify-content: center;
        margin: 4px 0;
    }

    .download-btn {
        display: block;
        margin: 6px auto 0;
        padding: 8px 6px; /* Smaller button */
        font-size: 16px;
    }
}

/* ADMIN DASHBOARD--------------------------------------------------------------- */

.sidebar {
    width: 220px;
    background-color: #111827;
    color: white;
    height: 100vh;
    position: fixed;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.sidebar h2 {
    font-size: 22px;
    margin-bottom: 30px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.2s ease;
}

.nav-link i {
    margin-right: 10px;
}

.nav-link:hover {
    background-color: #374151;
}

.main-content1 {
    margin-left: 240px;
    padding: 30px;
}

.card2 {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card2 h3 {
    margin-top: 0;
}

@media (max-width: 768px) {

    /* Sidebar becomes horizontal bar */
    .sidebar {
        position: sticky;
        top: 0;
        z-index: 100;
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: space-around;
        flex-wrap: wrap;
        padding: 10px;
        background-color: #111827;
        overflow-x: auto;
    }

    .sidebar h2 {
        font-size: 16px;
        margin: 0;
        flex-basis: 100%;
        text-align: center;
        color: #c77f00;
    }

    .nav-link {
        font-size: 12px;
        padding: 8px;
        display: flex;
        flex-direction: column;
        align-items: center;
        min-width: 70px;
        white-space: nowrap;
    }

    .nav-link i {
        font-size: 16px;
        margin: 0 0 4px 0;
    }

    /* Main content full width */
    .main-content1 {
        margin-left: 0;
        padding: 15px;
        width: 100%;
        box-sizing: border-box;
    }

    /* Card styling adjustments */
    .card2 {
        padding: 15px;
    }

    .card2 h3 {
        font-size: 14px;
    }

    .card2 p {
        font-size: 13px;
    }

    /* Prevent overflow */
    body,
    html {
        overflow-x: hidden;
    }
}


/* MANAGE ADMIN FORM------------------ */

.admin-form {
    margin-bottom: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    max-height: 50vh;
    overflow-y: auto;
    margin-left: auto;
    margin-right: auto;
}

.form-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.form-input {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.search-input {
    width: 100%;
    margin-bottom: 10px;
}

.form-button {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #111827;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.table-wrapper {
    overflow-x: auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    max-height: 300px;
    overflow-y: auto;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
}

.admin-table th,
.admin-table td {
    white-space: nowrap;
    padding: 8px 12px;
    text-align: left;
}


.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.admin-table th {
    background-color: #f9f9f9;
    font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .form-group {
        flex-direction: column;
    }

    .form-input {
        width: 100%;
        font-size: 13px;
    }

    .admin-table th,
    .admin-table td {
        font-size: 12px;
        padding: 8px;
    }

    .admin-form,
    .table-wrapper {
        max-width: 100%;
        height: 300px;
        /* Control the height here */
        overflow-y: auto;
        /* Make the table scrollable */
        padding: 15px;
    }

    /* Optional: make sure the table has a scrollbar */
    .admin-table {
        width: 100%;
        border-collapse: collapse;
    }

    .admin-table th,
    .admin-table td {
        white-space: nowrap;
        /* Prevent content from breaking into multiple lines */
    }
}

.nav-link2 {
    display: flex;
    align-items: center;
    padding: 12px;
    color: rgb(255, 255, 255);
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.2s ease;
}

.nav-link2 i {
    margin-right: 10px;
}

.nav-link2:hover {
    background-color: #374151;
}

.nav-link2.active {
    background-color: #c77f00;
    /* Highlight color for active link */
    color: white;
}

/* UPLOAD ARTWORK-------------------------------------------------------------- */

#uploadArea {
    width: 100%;
    max-width: 300px;
    /* adjust as needed */
    height: 200px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    padding: 10px;
    background-color: #fafafa;
}

#uploadArea span {
    font-size: 14px;
    color: #999;
    margin-top: 10px;
}

#preview {
    display: none;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 5px;
}


#audioUploadArea {
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    margin-top: 10px;
}

.share-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 5px;
}

.share-btn i {
    margin-right: 5px;
}


.wave-container {
    display: flex;
    align-items: flex-end;

    gap: 4px;
    margin: 10px 0;
    height: 20px;
}

.wave {
    width: 100px;
    background: linear-gradient(to top, #c77f00, #eebb12);
    border-radius: 3px;
    animation: waveAnim 1s infinite ease-in-out;
}

.wave1 {
    animation-delay: 0s;
}

.wave2 {
    animation-delay: 0.2s;
}

.wave3 {
    animation-delay: 0.4s;
}

@keyframes waveAnim {

    0%,
    100% {
        height: 10px;
    }

    50% {
        height: 30px;
    }
}


.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #e4e4e4;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    /* Default width */
    max-width: 400px;
    /* Maximum width */
    border-radius: 10px;
}


.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.animated-banner {
    width: 200px;
    height: 40px;
    animation: fadePop 5s ease-out infinite;
}

@keyframes fadePop {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-10px);
    }
    10% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    90% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) translateY(-10px);
    }
}


.custom-player {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #363636;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
}
.custom-player button {
    background: #c77f00;
    border: none;
    padding: 6px 10px;
    color: white;
    cursor: pointer;
    border-radius: 4px;
}
.custom-player input[type="range"] {
    flex: 1;
}

