@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

:root {
    --primary-color: #ff4343;
    --secondary-color: #97cc04;
    --background-color: #000b1c;
    --surface-color: #002152;
    --text-color: #ffffff;
    --error-color: #cf6679;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to bottom, var(--background-color), var(--surface-color));
    background-attachment: fixed;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    /* background-color: var(--surface-color); */
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    min-height: 100vh;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    margin: 20px 0 20px 0;
    color: var(--text-color);
}

nav {
    display: flex;
    justify-content: space-around;
    background-color: #01001c;
    border-radius: 8px;
    padding: 5px;
}

nav button {
    background: none;
    border: none;
    color: #aaa;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1rem;
    flex: 1;
    border-radius: 5px;
    transition: all 0.3s;
}

nav button.active {
    background-color: var(--primary-color);
    color: white;
}

section {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #ccc;
}

input {
    width: 100%;
    padding: 12px;
    border: 1px solid #01001c;
    border-radius: 5px;
    background-color: #01001c;
    color: white;
    font-size: 1rem;
    box-sizing: border-box;
}

button[type="submit"], .admin-controls button {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
}

button.danger {
    background-color: var(--error-color);
}

.queue-list {
    list-style: none;
    padding: 0;
}

.queue-item {
    background-color: #01001c;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.queue-item .info {
    flex: 1;
}

.queue-item .name {
    font-weight: bold;
    color: var(--secondary-color);
}

.queue-item .song {
    display: block;
    font-size: 0.9rem;
    color: #ddd;
}

.queue-item .actions button {
    background-color: var(--error-color);
    padding: 5px 10px;
    font-size: 0.8rem;
    width: auto;
    margin: 0;
}

.admin-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background-color: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    min-width: 250px;
    text-align: center;
    font-size: 0.9rem;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    background-color: var(--secondary-color);
    color: #000;
    font-weight: bold;
}

.toast.error {
    background-color: var(--error-color);
    color: #fff;
    font-weight: bold;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
}
.btn-primary:hover {
    background-color: var(--background-color);
    border-color: var(--background-color);
        font-weight: 600;
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--surface-color);
        font-weight: 600;
}
.btn-secondary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--surface-color);
        font-weight: 600;
}