body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f4f4;
}
header {
    background: #333;
    color: #fff;
    padding: 1rem;
}
header nav a {
    color: #fff;
    margin-right: 1rem;
    text-decoration: none;
}
.container {
    max-width: 800px;
    margin: 2rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 5px;
}
.error {
    color: red;
}
.success {
    color: green;
}
.btn {
    display: inline-block;
    background: #333;
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 3px;
}
/* Header & Logo */
header {
    background: #333;
    color: #fff;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo a {
    color: #fff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-main {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.logo-tagline {
    font-size: 0.8rem;
    opacity: 0.8;
}

header nav a {
    color: #fff;
    margin-left: 1.5rem;
    text-decoration: none;
    font-size: 1rem;
}

header nav a:hover {
    text-decoration: underline;
}

/* For mobile responsiveness */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    header nav {
        margin-top: 0.5rem;
    }
    header nav a {
        margin-left: 0;
        margin-right: 1rem;
    }
}

/* Notifications */
.notifications-dropdown {
    position: relative;
    display: inline-block;
}

.notifications-bell {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
}

.dropdown-content {
    position: absolute;
    right: 0;
    background-color: #f9f9f9;
    min-width: 300px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
    color: #333;
}

.dropdown-content.hidden {
    display: none;
}

.dropdown-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown-content li {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
}

.dropdown-content li.unread {
    background-color: #e3f2fd;
}

.dropdown-content li:hover {
    background-color: #f1f1f1;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: #eee;
    font-weight: bold;
}

.view-all {
    display: block;
    text-align: center;
    padding: 10px;
    background: #007bff;
    color: white;
    text-decoration: none;
}
@keyframes fadein {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeout {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(20px); }

}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f4f4;
    line-height: 1.6;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Header & Navigation */
header {
    background: #333;
    color: #fff;
    padding: 1rem;
    position: relative;
}
.logo a {
    color: #fff;
    text-decoration: none;
    display: inline-block;
}
.logo-main {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 2px;
}
.logo-tagline {
    font-size: 0.8rem;
    opacity: 0.8;
}
nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}
nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem 0;
}
nav a:hover {
    text-decoration: underline;
}
/* Hamburger menu for mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #444;
        margin-top: 1rem;
        padding: 0.5rem 0;
    }
    nav.show {
        display: flex;
    }
    nav a {
        width: 100%;
        text-align: center;
        padding: 0.8rem;
        border-top: 1px solid #555;
    }
    .notification-bell {
        margin-top: 0.5rem;
    }
}

/* Forms & Buttons */
input, textarea, select, button {
    width: 100%;
    padding: 10px;
    margin: 5px 0 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}
button, .btn {
    background: #333;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    width: auto;
    padding: 8px 15px;
    margin-right: 5px;
}
button:hover, .btn:hover {
    background: #555;
}
.error {
    color: red;
    margin: 10px 0;
}
.success {
    color: green;
    margin: 10px 0;
}

/* Music & Video Grid */
.music-grid, .video-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}
.music-item, .video-item {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    flex: 1 1 300px;
    transition: transform 0.2s;
}
.music-item:hover, .video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
audio, video {
    width: 100%;
    margin: 10px 0;
}

/* Live Stream Page */
.live-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
}
.video-section {
    flex: 2;
    min-width: 280px;
}
.chat-section {
    flex: 1;
    min-width: 250px;
    border-left: 1px solid #ccc;
    padding-left: 20px;
}
@media (max-width: 768px) {
    .live-container {
        flex-direction: column;
    }
    .chat-section {
        border-left: none;
        padding-left: 0;
    }
}
#chat-box {
    height: 400px;
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 10px;
    background: #f9f9f9;
    margin-bottom: 10px;
}
.chat-message {
    margin-bottom: 5px;
}
.chat-message small {
    color: #999;
    font-size: 10px;
}
.delete-chat {
    cursor: pointer;
    color: red;
    font-weight: bold;
    margin-left: 5px;
}

/* Tables (for admin, analytics) */
.table-responsive {
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
th {
    background-color: #f2f2f2;
}
@media (max-width: 600px) {
    th, td {
        font-size: 12px;
        padding: 4px;
    }
}

/* Profile Page */
.profile-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}
.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    margin-top: -60px;
    margin-left: 20px;
}
.profile-stats {
    display: flex;
    gap: 20px;
    margin: 15px 0;
}
.social-links a {
    margin-right: 10px;
    text-decoration: none;
    color: #555;
}
@media (max-width: 600px) {
    .profile-cover {
        height: 150px;
    }
    .profile-avatar {
        width: 80px;
        height: 80px;
        margin-top: -40px;
    }
}

/* Analytics Cards */
.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}
.stat-card {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    flex: 1;
    text-align: center;
}
.stat-card h3 {
    font-size: 2em;
    margin: 0;
}

/* Notifications */
.notification-bell {
    position: relative;
    cursor: pointer;
}
.notification-bell .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: red;
    color: white;
    border-radius: 50%;
    padding: 2px 5px;
    font-size: 10px;
}
.notification-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 30px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 300px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
}
.notification-dropdown.show {
    display: block;
}
.notification-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}
.notification-item.unread {
    background: #f0f8ff;
}
.notification-time {
    font-size: 11px;
    color: #999;
}
.mark-read {
    float: right;
    color: #007bff;
    cursor: pointer;
    font-size: 12px;
}



