.success {
    color: green;
}
.error{
    color: red;
}
.status{
    display: inline-grid;
    grid-template-columns: auto auto;
    column-gap: 1rem;
    align-items: center;
}
body {
    background-color: #6050DC
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.search-bar {
    flex-grow: 1;
    margin: 0 40px;
}

.search-bar input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 30px;
    border: none;
    font-size: 16px;
    outline: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.categories {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.categories a {
    background: white;
    padding: 10px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    color: #2d004d;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.card {
    background: white;
    height: 150px;
    border-radius: 12px;
    padding: 20px;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #2d004d;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}


.account-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    color: #2d004d;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    max-width: 500px;
    margin-top: 20px;
}

.account-fields {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.account-field label {
    font-weight: bold;
    color: #2d004d;
    display: block;
    margin-bottom: 6px;
}

.account-field input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.add-songs-form {
    margin-top: 20px;
    max-width: 600px;
}

.add-song-row {
    background: white;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.add-song-row label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2d004d;
}

.song-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.song-actions {
    margin: 0;
}

.remove-btn {
    background-color: #2d004d;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.remove-btn:hover {
    background-color: #3e0066;
}


.playlist-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.playlist-name a {
    text-decoration: none;
    color: #2d004d;
    font-weight: bold;
}

.playlist-name a:hover {
    text-decoration: underline;
}

.playlist-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}


.edit-btn,
.delete-btn {
    background-color: #2d004d;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}

.edit-btn:hover,
.delete-btn:hover {
    background-color: #3e0066;
}


.empty-state {
    margin-top: 20px;
    font-size: 18px;
    color: #2d004d;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.modal-content h3 {
    margin-bottom: 10px;
    color: #2d004d;
}

.modal-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.modal-cancel {
    background: #999;
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

.modal-delete {
    background: #2d004d;
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

.modal-delete:hover {
    background: #3e0066;
}


.logo a {
    text-decoration: none;
    color: inherit;
    font-weight: bold;
}

.logo a:hover {
    opacity: 0.85;
}

.homepage-main {
    max-width: 1200px;
    margin: 2rem auto 4rem;
}

.home-section {
    margin-bottom: 3rem;
}

.home-section h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.home-card-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.home-card {
    flex: 1 1 200px;
    height: 160px;
    border-radius: 1.5rem;
    background: #CCCCFF;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(135deg, #8a63ff, #c266ff);
    border-radius: 20px;
    margin-bottom: 20px;
}

.header-left img.songify-logo {
    height: 60px;
    border-radius: 15px;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.searchbar {
    width: 70%;
    padding: 12px 18px;
    border-radius: 30px;
    border: none;
    outline: none;
    font-size: 16px;
}

.header-right {
    display: flex;
    gap: 10px;
}
.songify-logo {
    width: 60px;
    height: auto;
    border-radius: 15px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0 30px 0;
}

.sidebar-btn {
    background: white;
    padding: 12px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    color: #2d004d;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    width: 160px;
    text-align: center;
}
.sidebar {
    position: fixed;
    top: 160px;          
    left: 0;
    width: 200px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-left: 20px;
    z-index: 10;
}

.sidebar-btn {
    background: white;
    padding: 12px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    color: #2d004d;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: block;
}

.sidebar::after {
    content: "";
    position: absolute;
    top: 0;
    right: -10px; 
    width: 4px;
    height: 2000px; 
    background: rgba(255,255,255,0.5); 
}
.homepage-main {
    margin-left: 230px;
}
.home-card-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.home-card {
    height: 160px;
    border-radius: 1.5rem;
    background: #CCCCFF;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.search-suggestions {
    display: none;
    background: white;
    padding: 12px;
    border-radius: 12px;
    margin-top: 6px;
    width: 220px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
    position: absolute;
    z-index: 10;
}

.header-center {
    position: relative;
}

.header-center:focus-within .search-suggestions {
    display: block;
}

.search-suggestions a {
    display: block;
    padding: 6px 0;
    font-size: 14px;
    color: #2d004d;
    text-decoration: none;
}

.search-suggestions a:hover {
    text-decoration: underline;
}
.search-wrapper {
    position: relative;
    width: 70%;
}

.searchbar {
    width: 100%;
    padding: 12px 18px;
    border-radius: 30px;
    border: none;
    outline: none;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.search-suggestions {
    display: none;
    position: absolute;
    top: 48px;          
    left: 0;
    width: 100%;         
    background: white;
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
    z-index: 20;
}

.search-wrapper:focus-within .search-suggestions {
    display: block;
}

.search-suggestions a {
    display: block;
    padding: 6px 0;
    font-size: 15px;
    color: #1f1f1f;       
    font-weight: 500;     
    text-decoration: none; 
    cursor: pointer;       
}

.search-suggestions a:hover {
    background: #f4f4f4;  
    text-decoration: none; 
    padding-left: 4px;
}

