/* General Body Styling */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f7fa;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
}

ul {
    list-style-type: none;
    list-style-position: inherit;
    padding: 0;
    margin: 0;
}

#ghlink {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    margin-top: 25px;
    font-size: 22px;
}

#ghlink h5 {
    margin: 0; 
}

/* Heading Style */
h2 {
    font-size: 2rem;
    color: #4a90e2;
    text-align: center;
    margin: 20px;
}

h3 {
    font-size: 1.3rem;
    color: #333;
}

#logo {
    width: 100px;
    height: 100px;
}

/* Drop Zone Styling */
#dropZone {
    width: 80%;
    max-width: 600px;
    height: 150px;
    border: 2px dashed #4a90e2;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    color: #4a90e2;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    padding: 15px;
}

/* When the drop zone is hovered over or the file is dragged over */
#dropZone.dragover {
    background-color: #e6f2ff;
    border-color: #1a73e8;
}

/* Search Box Container */
#search-box {
    display: none; /* Hidden initially */
    margin-top: 20px;
    width: 80%;
    max-width: 600px;
    text-align: center;
    padding: 10px;
    background-color: #ffffff;
    border: 1px solid #e1e8f0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#search-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* Search Label */
#search-box label {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: #4a90e2;
    margin-bottom: 10px;
}

/* Search Input Field */
#search-box input[type="search"] {
    width: calc(100% - 20px);
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #e1e8f0;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#search-box input[type="search"]:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
}

/* Responsive Design for Search Box */
@media (max-width: 768px) {
    #search-box {
        width: 90%;
    }

    #search-box input[type="search"] {
        font-size: 0.9rem;
    }

    #search-box label {
        font-size: 1rem;
    }
}

#search-loading-bar {
    width: 0%;
    height: 3px;
    background-color: #4CAF50;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
    z-index: 10;
}

#search-box {
    position: relative;
}

/* Available Files List Styling */
#availableFiles {
    margin-top: 30px;
    width: 80%;
    max-width: 600px;
    text-align: center;
}

#fileList {
    display: flex;
    justify-content: center;
    gap: 20px; /* Space between items */
    padding: 0;
    margin: 0;
}

#fileList li {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1rem;
    color: #333;
    background-color: #ffffff;
    padding: 10px;
    border: 1px solid #e1e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
    width: 100px; /* Fixed width for consistent icon alignment */
}

#fileList li:hover {
    background-color: #e6f2ff;
}

.fileList li img {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
}

.fileName {
    font-size: 0.9rem;
    color: #555;
    word-break: break-word; /* Prevent long names from breaking layout */
}

/* Song List Container */
#songList {
    width: 80%;
    max-width: 600px;
    margin-top: 15px;
    align-content: center;
}

/* Title for Song List */
#songListTitle {
    font-size: 1.5rem;
    color: #4a90e2;
    margin-bottom: 20px;
}

/* Styling the Song Items */
.songItem {
    background-color: #ffffff;
    border: 1px solid #e1e8f0;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.songItem:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

/* Song Name Styling */
.songName {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

/* Song Lyrics Styling */
.songLyrics {
    margin-left: 20px;
    font-size: 1.1rem;
    color: #555;
    font-style: italic;
    white-space: pre-wrap; /* Allows text to wrap naturally */
}

/* File Input Style (Hidden) */
#fileInput {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    #fileList {
        flex-wrap: wrap;
    }

    #fileList li {
        width: 80px; /* Adjust width for smaller screens */
    }

    .fileIcon {
        width: 30px;
        height: 30px;
    }

    .fileName {
        font-size: 0.8rem;
    }
}
