* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 250px 1fr 300px;
    grid-template-rows: 1fr;
    gap: 20px;
    padding: 20px;
}

/* Left Sidebar */
.left-sidebar {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: fit-content;
}

.logo h1 {
    color: #6366f1;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 30px;
}

.navigation h3,
.customization h3 {
    color: #6366f1;
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navigation ul,
.customization ul {
    list-style: none;
    margin-bottom: 30px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(99, 102, 241, 0.2);
    color: white;
}

.nav-link i {
    margin-right: 12px;
    width: 16px;
}

.now-playing {
    margin-top: 30px;
}

.now-playing h3 {
    color: #6366f1;
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.music-player {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.album-art {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.track-info h4 {
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.track-info p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin-bottom: 8px;
    position: relative;
}

.progress {
    width: 45%;
    height: 100%;
    background: #6366f1;
    border-radius: 2px;
}

.time {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.controls button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.controls button:hover {
    color: white;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 15px 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-icons {
    display: flex;
    gap: 15px;
}

.nav-icon {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.settings-btn {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.settings-btn:hover {
    background: rgba(99, 102, 241, 0.3);
}

.profile-header {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.profile-avatar {
    position: relative;
    margin-right: 20px;
    cursor: pointer;
}

.profile-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #6366f1;
    transition: all 0.3s ease;
}

.profile-avatar:hover img {
    filter: brightness(0.7);
}

.change-picture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.change-picture-overlay i {
    color: white;
    font-size: 1.5rem;
}

.profile-avatar:hover .change-picture-overlay {
    opacity: 1;
}

.online-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 16px;
    height: 16px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid white;
}

.profile-details h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.profile-details p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.edit-profile-btn {
    background: #6366f1;
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
    margin-bottom: 20px;
}

.edit-profile-btn:hover {
    background: #5856eb;
}

.status-input {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.status-input input {
    flex: 1;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: white;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.status-input input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.status-input input:focus {
    border-color: #6366f1;
    background: rgba(255, 255, 255, 0.15);
}

.post-btn {
    padding: 15px 20px;
    background: #6366f1;
    border: none;
    border-radius: 25px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

.post-btn:hover {
    background: #5855eb;
    transform: translateY(-1px);
}

.post-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
    transform: none;
}

/* Posts Section */
.posts-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.posts-container {
    margin-top: 20px;
}

.post-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.post-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.post-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-user-details h4 {
    color: white;
    font-size: 0.95rem;
    margin: 0 0 4px 0;
    font-weight: 600;
}

.post-time {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.post-actions {
    display: flex;
    gap: 8px;
}

.delete-post-btn {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.delete-post-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
}

.post-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 0.95rem;
}

.post-count {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.no-posts {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    padding: 40px 20px;
    font-style: italic;
}

/* Delete confirmation modal */
.delete-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.delete-modal.show {
    opacity: 1;
    visibility: visible;
}

.delete-modal-content {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.delete-modal.show .delete-modal-content {
    transform: scale(1);
}

.delete-modal h3 {
    color: white;
    margin: 0 0 15px 0;
    font-size: 1.2rem;
}

.delete-modal p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 25px 0;
    line-height: 1.5;
}

.delete-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.confirm-delete-btn,
.cancel-delete-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.confirm-delete-btn {
    background: #ef4444;
    color: white;
}

.confirm-delete-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.cancel-delete-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.cancel-delete-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about-section,
.playlist-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.section-header h2 {
    color: #6366f1;
    font-size: 1.3rem;
}

.edit-btn,
.add-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.edit-btn:hover,
.add-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.about-content p {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.about-edit-form {
    margin-top: 10px;
}

.about-edit-form textarea {
    width: 100%;
    min-height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    color: white;
    font-size: 0.95rem;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    transition: all 0.3s ease;
}

.about-edit-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.about-edit-form textarea:focus {
    border-color: #6366f1;
    background: rgba(255, 255, 255, 0.15);
}

.edit-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: flex-end;
}

.save-btn,
.cancel-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.save-btn {
    background: #10b981;
    color: white;
}

.save-btn:hover {
    background: #059669;
    transform: translateY(-1px);
}

.cancel-btn {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.cancel-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
}

.track-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.track-item:last-child {
    border-bottom: none;
}

.track-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.music-icon {
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
}

.alternative-icon {
    background: linear-gradient(45deg, #ec4899, #f97316);
}

.rock-icon {
    background: linear-gradient(45deg, #10b981, #06b6d4);
}

.track-info {
    flex: 1;
}

.track-info h4 {
    font-size: 1rem;
    margin-bottom: 3px;
}

.track-info p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.track-controls {
    display: flex;
    gap: 10px;
}

.play-btn,
.more-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.play-btn:hover,
.more-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Right Sidebar */
.right-sidebar {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: fit-content;
}

.friends-section .section-header {
    margin-bottom: 20px;
}

.friends-section .section-header h2 {
    color: #6366f1;
    font-size: 1.3rem;
}

.friend-count {
    background: rgba(99, 102, 241, 0.2);
    color: #6366f1;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.friend-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.friend-item:last-child {
    border-bottom: none;
}

.friend-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
}

.friend-info {
    flex: 1;
}

.friend-info h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.friend-info p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.message-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.message-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.view-all-btn {
    width: 100%;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #6366f1;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: rgba(99, 102, 241, 0.3);
    color: white;
}

/* Responsive Design */
@media (max-width: 1200px) {
    body {
        grid-template-columns: 200px 1fr 250px;
    }
}

@media (max-width: 992px) {
    body {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    
    .left-sidebar,
    .right-sidebar {
        order: 2;
    }
    
    .main-content {
        order: 1;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
        gap: 10px;
    }
    
    .nav-icons {
        gap: 10px;
    }
    
    .nav-icon {
        padding: 8px;
        font-size: 1rem;
    }
    
    .profile-info {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
}