:root {
    --bg-color: #f0f2f5;
    --sidebar-bg: #ffffff;
    --card-bg: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #65676b;
    --accent-color: #1877f2;
    --border-color: #e4e6eb;
    --hover-bg: #f2f2f2;
    --sidebar-width: 240px;
    --sidebar-collapsed-width: 60px;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Dark Mode */
body.dark-mode {
    --bg-color: #18191a;
    --sidebar-bg: #242526;
    --card-bg: #242526;
    --text-primary: #e4e6eb;
    --text-secondary: #b0b3b8;
    --border-color: #3a3b3c;
    --hover-bg: #3a3b3c;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.hidden {
    display: none !important;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow: hidden;
    /* App-like feel */
    height: 100vh;
}

.app-container {
    display: flex;
    height: 100%;
    width: 100%;
}

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
    z-index: 10;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.logo-area {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-color);
    height: 60px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.logo-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar.collapsed .logo-text {
    display: none;
}

.profile-link-btn {
    padding: 0 !important;
    width: 32px;
    height: 32px;
    justify-content: center !important;
    border-radius: 50% !important;
    background: var(--hover-bg) !important;
    color: var(--text-secondary) !important;
    margin: 0 !important;
}

.profile-link-btn:hover {
    color: var(--accent-color) !important;
}

.sidebar.collapsed .profile-link-btn {
    display: none;
}

.nav-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 5px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Hide scrollbar for a clean UI */
.nav-menu::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

.nav-menu {
    scrollbar-width: none;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: background-color 0.2s;
    white-space: nowrap;
    overflow: hidden;
}

.nav-item:hover,
.nav-item.active {
    background-color: var(--hover-bg);
    color: var(--accent-color);
}

.nav-item i {
    width: 24px;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
}

.nav-text {
    margin-left: 10px;
    font-weight: 500;
}

.sidebar.collapsed .nav-text {
    display: none;
}

.sidebar-footer {
    padding: 15px 10px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    margin-top: auto;
    background: var(--sidebar-bg);
    flex-shrink: 0;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-secondary);
    padding: 5px;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.app-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* Header Styles */
.feed-header {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 4px 12px;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
}

.header-top h1 {
    font-size: 1rem;
    color: var(--accent-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 4px 25px 4px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-color);
    color: var(--text-primary);
    width: 180px;
    font-size: 0.8rem;
    outline: none;
    transition: width 0.3s;
}

.search-box input:focus {
    width: 240px;
    border-color: var(--accent-color);
}

.search-box i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.marquee-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-color);
    padding: 2px 10px;
    border-radius: 4px;
    overflow: hidden;
    gap: 10px;
    border: 1px solid var(--border-color);
}

.marquee-label {
    background: var(--accent-color);
    color: white;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 800;
    white-space: nowrap;
}

.marquee-outer {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 14px;
}

.marquee-inner {
    display: flex;
    gap: 40px;
    position: absolute;
    white-space: nowrap;
    animation: marquee-scroll 40s linear infinite;
    align-items: center;
    height: 100%;
}

.marquee-item {
    font-size: 0.8rem;
    color: var(--text-primary);
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.marquee-item:hover {
    color: var(--accent-color);
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Finance Marquee Specifics */
.finance-wrapper {
    margin-top: 5px;
    border: 1px dashed var(--border-color);
    background: var(--bg-secondary) !important;
}

.finance-label {
    background: #4facfe;
}

.finance-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
}

.finance-label-name {
    color: var(--text-secondary);
    font-size: 0.65rem;
    text-transform: uppercase;
}

.finance-value {
    color: var(--text-primary);
}

.finance-change {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.7rem;
}

.finance-change.up {
    color: #2ed573;
}

.finance-change.down {
    color: #ff4757;
}

/* News Feed Styles */
.news-feed-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.header-right-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.legal-mini-links {
    display: flex;
    gap: 15px;
    font-size: 0.7rem;
}

/* Login/Profile elements */
.btn-login {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.2s;
}

.btn-login:hover {
    opacity: 0.9;
}

.user-profile-summary {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.loading-spinner {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* News Card */
.news-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
    border: 1px solid transparent;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--border-color);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 15px;
}

.source-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.source-logo {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    color: var(--text-primary);
}

.news-summary {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-footer {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.btn-read-more {
    background: transparent;
    color: var(--accent-color);
    border: 1.2px solid var(--accent-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dark-mode .news-card-footer {
    border-top-color: rgba(255, 255, 255, 0.05);
}

.btn-read-more:hover {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.25);
    transform: translateX(3px);
}

.source-site-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--hover-bg);
    color: var(--text-primary);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.7rem;
    text-decoration: none;
    font-weight: 700;
    margin-left: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.source-site-btn:hover {
    background: var(--accent-color);
    color: #fff !important;
    border-color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.source-site-btn i {
    font-size: 0.75rem;
}

/* Reading Time Badge */
.reading-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--hover-bg);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Enhanced Follow Button */
.btn-follow {
    background: none;
    border: 1.5px solid var(--accent-color);
    color: var(--accent-color);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-follow:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-1px);
}

.btn-follow.following {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.btn-follow.following:hover {
    background: #145dbf;
    border-color: #145dbf;
}

/* Save Article Button */
.btn-save {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 1.1rem;
}

.btn-save:hover {
    background: var(--hover-bg);
    color: var(--accent-color);
}

.btn-save.saved {
    color: #f59e0b;
}

/* Social Share Buttons */
.share-buttons {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.share-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn.twitter {
    background: #000000;
    color: white;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.copy {
    background: var(--hover-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* User Stats */
.user-stats {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    font-size: 0.9rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Preview Frame Styles */
.preview-frame {
    position: relative;
    width: 0;
    /* Initially hidden */
    height: 100%;
    background: var(--bg-color);
    border-left: 0 solid var(--border-color);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.05);
    transition: width 0.3s ease, border-width 0.3s;
    overflow: hidden;
    z-index: 20;
    display: flex;
    flex-direction: column;
}

.preview-frame.open {
    width: 60%;
    border-left-width: 1px;
    /* Takes up 60% of the screen when open */
}

/* When frame is open, adjust news feed */
.main-content.frame-active .news-feed-container {
    max-width: 40%;
    /* Shrink feed container */
    margin: 0;
    padding-right: 10px;
}

.close-frame-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 5px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 100;
}

.close-frame-btn:hover {
    background-color: var(--hover-bg);
}

.frame-content {
    flex: 1;
    overflow-y: auto;
    /* Removed padding to eliminate gap between blocks */
    padding: 0;
}

.placeholder-content {
    padding: 40px;
    text-align: center;
    color: var(--text-secondary);
}

/* Detail Content Styles */
.detail-container {
    animation: fadeIn 0.4s ease;
    background: var(--card-bg);
    color: var(--text-primary);
    /* Added padding here so content has breathing room but fits the frame edges */
    padding: 30px;
    min-height: 100%;
}

.detail-header {
    margin-bottom: 20px;
}

.detail-source {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.detail-source img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.detail-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 15px;
}

.detail-meta {
    display: flex;
    gap: 15px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.detail-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 25px;
    max-height: 500px;
    object-fit: cover;
}

.detail-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.detail-body p {
    margin-bottom: 20px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--card-bg);
    width: 400px;
    padding: 30px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.auth-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 10px;
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
}

.btn-submit:hover {
    filter: brightness(0.9);
}

.error-msg {
    color: red;
    font-size: 0.85rem;
    margin-top: 10px;
    text-align: center;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Like Button */
.action-btn-text {
    background: none;
    border: none;
    font-size: 1rem;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.action-btn-text.liked {
    color: #e74c3c;
}

/* Comments Section */
.comments-section {
    margin-top: 30px;
}

.comments-section h3 {
    margin-bottom: 20px;
}

.comment-form {
    margin-bottom: 20px;
}

.comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    resize: vertical;
    min-height: 80px;
    margin-bottom: 10px;
    font-family: inherit;
}

.comment-item {
    background: var(--hover-bg);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.comment-item strong {
    color: var(--text-primary);
}

.comment-item small {
    color: var(--text-secondary);
    margin-left: 10px;
}

.comment-item p {
    margin-top: 8px;
    color: var(--text-primary);
}

/* Profile Tabs Styling */
.profile-tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 500;
    color: #65676b;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.profile-tab-btn:hover {
    background-color: #f5f5f5;
}

.profile-tab-btn.active {
    color: #1877f2;
    border-bottom-color: #1877f2;
    font-weight: 700;
}

/* Legal Mini Links */
.legal-mini-links a {
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.legal-mini-links a:hover {
    color: var(--accent-color);
}


.footer-link {
    cursor: pointer;
    text-decoration: none;
    color: var(--text-secondary);
}

.footer-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--card-bg);
    border-top: 1px solid var(--accent-color);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-content {
    flex: 1;
    margin-right: 20px;
    color: var(--text-primary);
}

.cookie-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

/* Legal Text Modal Specifics */
.legal-text {
    max-height: 400px;
    overflow-y: auto;
    margin: 20px 0;
    padding-right: 10px;
    color: var(--text-primary);
    line-height: 1.6;
}

.legal-text h3 {
    margin-top: 15px;
    margin-bottom: 10px;
}

/* Form Checkbox for policies */
.policy-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 15px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.policy-check input {
    margin-top: 3px;
}

/* Threaded Comments */
.comment-item {
    background: var(--bg-secondary);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    position: relative;
    transition: transform 0.2s ease;
}

.reply-item {
    margin-top: 10px;
    border-left: 2px solid var(--accent-color);
    background: var(--bg-primary);
    padding: 12px 15px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.comment-header strong {
    color: var(--accent-color);
}

.comment-header small {
    color: var(--text-secondary);
}

.comment-actions {
    margin-top: 10px;
    display: flex;
    gap: 15px;
}

.reply-toggle-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    transition: color 0.2s;
}

.reply-toggle-btn:hover {
    color: var(--accent-color);
}

.reply-input-area {
    margin-top: 10px;
}

.reply-form {
    background: var(--bg-primary);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.reply-form textarea {
    font-size: 0.9rem;
    min-height: 80px;
}

.btn-login.mini {
    padding: 6px 15px;
    font-size: 0.85rem;
}

/* Notification System */
.notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 10px;
    height: 10px;
    background: #ff4757;
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
    box-shadow: 0 0 5px rgba(255, 71, 87, 0.5);
    z-index: 10;
}

.unread-badge-inline {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #ff4757;
    border-radius: 50%;
    margin-left: 5px;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-item:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.notification-item.unread {
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent-color);
}

.notification-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-body {
    flex: 1;
}

.notification-body p {
    margin: 0 0 5px 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.notification-body small {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Source Site Link */
.source-site-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-left: 10px;
    transition: color 0.2s;
}

.source-site-link:hover {
    color: var(--accent-color);
}

/* Profile Tab Improvements */
.profile-tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s;
    font-size: 0.9rem;
    white-space: nowrap;
}

.profile-tab-btn.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.profile-tab-btn:hover {
    color: var(--accent-color);
    background: var(--bg-secondary);
}

/* Poll Styles */
.poll-container {
    margin: 30px 0;
}

.poll-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.poll-question {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.poll-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.poll-option-btn {
    padding: 12px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.2s ease;
    text-align: left;
}

.poll-option-btn:hover {
    border-color: var(--accent-color);
    background: var(--bg-primary);
    transform: translateX(5px);
}

.poll-result-item {
    margin-bottom: 15px;
}

.poll-result-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 6px;
    font-weight: 600;
}

.poll-progress-bg {
    height: 10px;
    background: var(--bg-primary);
    border-radius: 5px;
    overflow: hidden;
}

.poll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #4facfe);
    border-radius: 5px;
    transition: width 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.poll-footer {
    margin-top: 15px;
    color: var(--text-secondary);
    text-align: right;
}