/* style.css - Complete Updated Version */
:root {
    --primary-color: #6C63FF;
    --secondary-color: #FF6584;
    --background-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --text-light: #ffffff;
    --text-dark: #2d3436;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background-gradient);
    min-height: 100vh;
    color: var(--text-light);
}

/* Login Page */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: var(--background-gradient);
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 40px 30px;
    max-width: 400px;
    width: 100%;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.brand-header {
    text-align: center;
    margin-bottom: 30px;
}

.brand-icon-large {
    width: 80px;
    height: 80px;
    background: var(--background-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 40px;
    color: white;
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.3);
}

.brand-title {
    color: var(--text-dark);
    font-size: 28px;
    font-weight: bold;
    margin: 0;
}

.brand-subtitle {
    color: var(--primary-color);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group label i {
    color: var(--primary-color);
    margin-right: 10px;
}

.pin-input-container {
    position: relative;
}

.pin-input {
    width: 100%;
    padding: 15px 45px 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 24px;
    text-align: center;
    letter-spacing: 10px;
    transition: all 0.3s ease;
    height: 60px;
}

.pin-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

.toggle-pin {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-check-label {
    color: var(--text-dark);
    cursor: pointer;
}

.btn-login {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 10px;
    cursor: pointer;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
}

/* PIN Pad */
.pin-pad {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pin-pad-row {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.pin-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    background: white;
    font-size: 24px;
    font-weight: bold;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pin-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.pin-btn:active {
    transform: scale(0.95);
}

.pin-submit {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pin-submit:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Dashboard */
.app-bar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.app-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-name {
    color: var(--text-dark);
    font-size: 22px;
    font-weight: bold;
}

.app-bar-actions {
    display: flex;
    gap: 15px;
}

.app-bar-actions a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.app-bar-actions a:hover {
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary-color);
}

.main-content {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.player-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.player-header h3 {
    margin: 0;
    font-size: 18px;
}

.player-controls {
    display: flex;
    gap: 10px;
}

.control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.play-btn {
    background: var(--primary-color);
    width: 60px;
    height: 60px;
}

.play-btn:hover {
    background: var(--secondary-color);
}

.song-info {
    text-align: center;
    padding: 15px 0;
}

.album-art {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 40px;
}

.song-info h4 {
    font-size: 22px;
    margin-bottom: 5px;
}

.song-info p {
    opacity: 0.8;
    margin: 0;
}

.progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    margin: 15px 0;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    transition: width 0.1s linear;
    width: 0%;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    opacity: 0.7;
}

.library-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    color: var(--text-dark);
}

.library-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.library-header h3 {
    margin: 0;
}

.song-count {
    font-size: 14px;
    color: #999;
}

.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.song-list {
    max-height: 500px;
    overflow-y: auto;
}

.song-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.song-item:hover {
    background: #f0f0f0;
}

.song-cover {
    width: 50px;
    height: 50px;
    background: var(--background-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 20px;
}

.song-details {
    flex: 1;
}

.song-details h5 {
    margin: 0;
    font-size: 16px;
}

.song-details p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.song-actions {
    display: flex;
    gap: 10px;
}

.fav-btn, .cache-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px;
}

.fav-btn {
    color: #ddd;
}

.fav-btn.active {
    color: #ff4757;
}

.cache-btn {
    color: #666;
}

.cache-btn:hover {
    color: var(--primary-color);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state i {
    font-size: 50px;
    color: #ddd;
    margin-bottom: 15px;
}

.empty-state p {
    color: #999;
    margin-bottom: 20px;
}

.btn-upload-first {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-upload-first:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
    color: white;
}

/* Upload Page */
.upload-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
}

.upload-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    color: var(--text-dark);
}

.upload-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.btn-back {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.btn-upload-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-upload-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .login-container {
        padding: 20px;
        margin: 10px;
    }
    
    .pin-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .player-controls {
        gap: 5px;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .play-btn {
        width: 50px;
        height: 50px;
    }
    
    .song-item {
        padding: 8px;
    }
    
    .song-cover {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .app-bar {
        padding: 10px 15px;
    }
    
    .brand-name {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .pin-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .login-container {
        padding: 15px;
    }
    
    .brand-title {
        font-size: 22px;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Animations */
@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.notification {
    animation: slideUp 0.3s ease;
}