:root {
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --primary-light: #EEF2FF;
    --bg: #F3F4F6;
    --bg-card: #FFFFFF;
    --text: #1F2937;
    --text-light: #6B7280;
    --gray: #6B7280;
    --gray-light: #E5E7EB;
    --gray-dark: #4B5563;
    --red: #EF4444;
    --red-dark: #DC2626;
    --green: #10B981;
    --green-dark: #059669;
    --green-light: #ECFDF5;
    --accent: #8B5CF6;
    --accent-light: #EDE9FE;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 0.5rem;
    --radius-sm: 0.25rem;
    --radius-lg: 1rem;
    --transition: all 0.2s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    background-image:
        radial-gradient(circle at 25px 25px, rgba(139, 92, 246, 0.15) 2%, transparent 0%),
        radial-gradient(circle at 75px 75px, rgba(139, 92, 246, 0.1) 2%, transparent 0%);
    background-size: 100px 100px;
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text);
    letter-spacing: -0.025em;
    position: relative;
    display: inline-block;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text);
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1.75rem;
    margin-bottom: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

.help-text {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Checkbox styling */
.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 1rem;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: var(--bg);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.checkbox-container:hover input~.checkmark {
    border-color: var(--primary);
}

.checkbox-container input:checked~.checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

input[type="file"],
input[type="text"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    background: white;
    margin-bottom: 0.5rem;
    transition: var(--transition);
    font-size: 1rem;
    color: var(--text);
}

input[type="file"]:hover,
input[type="text"]:hover,
input[type="number"]:hover,
select:hover,
textarea:hover {
    border-color: var(--primary);
}

input[type="file"]:focus,
input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.error {
    color: var(--red);
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    border-left: 4px solid var(--red);
}

.success {
    color: var(--green);
    padding: 1rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    border-left: 4px solid var(--green);
}

button,
.btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1rem;
}

button:hover,
.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

button:active,
.btn:active {
    transform: translateY(0);
}

.btn-accent {
    background: var(--accent);
}

.btn-accent:hover {
    background: #7C3AED;
}

.btn-green {
    background: var(--green);
}

.btn-green:hover {
    background: var(--green-dark);
}

.btn-red {
    background: var(--red);
}

.btn-red:hover {
    background: var(--red-dark);
}

.btn-gradient {
    background: linear-gradient(to right, var(--accent), var(--primary));
}

.loading {
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--gray);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(99, 102, 241, 0.2);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(107, 114, 128, 0.2);
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius);
    backdrop-filter: blur(8px);
}

.nav-link {
    color: var(--gray-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--accent);
}

.nav-link.active::after {
    width: 100%;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.pagination a {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
}

.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination a.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.empty-state {
    text-align: center;
    padding: 3rem 0;
    color: var(--gray);
}

.empty-state svg {
    opacity: 0.5;
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.badge {
    background: linear-gradient(to right, var(--accent), var(--primary));
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    color: white;
    font-size: 0.875rem;
    margin-left: 0.5rem;
    font-weight: 500;
}

.icon-box {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-light), var(--primary-light));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
    margin-right: 8px;
}

/* Audio player styling */
#audio-player {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius) var(--radius) 0 0;
    box-shadow: var(--shadow-lg);
    margin: 0 auto;
    max-width: 1000px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 231, 235, 0.8);
}

#progress-bar {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    appearance: none;
    -webkit-appearance: none;
}

#progress-bar::-webkit-progress-bar {
    background-color: rgba(139, 92, 246, 0.2);
    border-radius: 4px;
}

#progress-bar::-webkit-progress-value {
    background: linear-gradient(to right, var(--accent), var(--primary));
    border-radius: 4px;
    transition: width 0.1s ease;
}

#progress-bar::-moz-progress-bar {
    background: linear-gradient(to right, var(--accent), var(--primary));
    border-radius: 4px;
}

#volume-control {
    appearance: none;
    -webkit-appearance: none;
    width: 80px;
    height: 6px;
    border-radius: 3px;
    background: rgba(139, 92, 246, 0.2);
    outline: none;
}

#volume-control::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: none;
}

#volume-control::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: none;
}

.player-button {
    background: transparent;
    color: var(--text);
    border: none;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-button:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

.player-button.play-pause {
    background: var(--green);
    color: white;
}

.player-button.play-pause:hover {
    background: var(--green-dark);
}

.player-button.stop {
    background: var(--red);
    color: white;
}

.player-button.stop:hover {
    background: var(--red-dark);
}

.player-button.scroll {
    background: var(--accent);
    color: white;
}

.player-button.scroll:hover {
    background: #7C3AED;
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

th {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 600;
    text-align: left;
    padding: 0.75rem 1rem;
}

td {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--gray-light);
}

tr:hover {
    background: rgba(139, 92, 246, 0.05);
}

/* Grid layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.grid-item {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Dropzone */
.dropzone {
    border: 2px dashed rgba(139, 92, 246, 0.3);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    background-color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.dropzone:hover {
    border-color: var(--accent);
    background-color: rgba(237, 233, 254, 0.5);
}

/* Song list styling */
.song-list {
    margin-top: 1.5rem;
}

.song-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border-left: 3px solid transparent;
}

.song-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    background: white;
    border-left: 3px solid var(--accent-light);
}

.song-info {
    flex: 1;
    padding-left: 0.5rem;
}

.song-title {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.song-artist {
    color: var(--gray);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.song-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.delete-btn {
    background: var(--red);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-btn:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
}

.play-btn {
    background: var(--green);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
}

.playing {
    background: linear-gradient(to right, var(--accent-light), white);
    border-left: 3px solid var(--accent) !important;
    box-shadow: var(--shadow);
}

.playing .song-title {
    color: var(--accent);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}