/* General Body & Typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #f4f6f8;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* App Container */
#app {
    width: 100%;
    height: 100%;
}

/* Login View */
#login-view {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-container {
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.logo {
    height: 80px;
    margin-bottom: 20px;
}

/* Dashboard View */
#dashboard-view header {
    background-color: #ffffff;
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: calc(100% - 60px);
    top: 0;
    left: 0;
    z-index: 1000;
}

.logo-small {
    height: 40px;
}

header h1 {
    font-size: 1.5em;
    margin: 0;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-info span {
    margin-right: 15px;
    font-weight: 500;
}

main {
    padding-top: 80px; /* Space for fixed header */
}

.container {
    display: flex;
    padding: 20px;
}

.song-list-section {
    flex: 1;
    margin-right: 20px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.song-form-section {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

h2 {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-top: 0;
}

/* Song List */
#song-list {
    list-style: none;
    padding: 0;
    max-height: 70vh;
    overflow-y: auto;
}

#song-list li {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

#song-list li:hover {
    background-color: #f9f9f9;
}

#song-list li .song-details strong {
    display: block;
    font-size: 1.1em;
}

.song-actions button {
    margin-left: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9em;
}

.edit-btn {
    color: #007bff;
}

.delete-btn {
    color: #dc3545;
}

/* Form */
#song-form input, #song-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Important */
}

#song-form textarea {
    height: 300px;
    resize: vertical;
}

.form-buttons {
    display: flex;
    justify-content: flex-end;
}

/* Buttons */
button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: background-color 0.2s;
}

button[type="submit"], #signInButton {
    background-color: #4A148C; /* Deep Purple */
    color: white;
}

button[type="submit"]:hover, #signInButton:hover {
    background-color: #380f6b;
}

#cancel-edit-button {
    background-color: #ccc;
    margin-left: 10px;
}

#cancel-edit-button:hover {
    background-color: #bbb;
}

#logout-button {
    background-color: #dc3545;
    color: white;
}

#logout-button:hover {
    background-color: #c82333;
}
