/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
}

.breaking-news {
    background-color: #dc3545;
    color: white;
}

/* Admin Styles */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
}

.sidebar .nav-link.active {
    color: #0d6efd;
}

.sidebar .nav-link:hover {
    color: #0d6efd;
}

main {
    padding-top: 1.5rem;
}

/* CKEditor Fix */
.cke_chrome {
    border: 1px solid #dee2e6 !important;
    box-shadow: none !important;
}

.cke_top {
    border-bottom: 1px solid #dee2e6 !important;
    background: #f8f9fa !important;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .sidebar {
        position: static;
        padding: 0;
    }
    
    .breaking-news marquee {
        font-size: 0.9rem;
    }
}
.sidebar {
    height: 100vh;
    overflow-y: auto;
}

.nav-link.active {
    font-weight: 600;
    background-color: rgba(13, 110, 253, 0.1);
    border-left: 3px solid #0d6efd;
}

.nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.dropdown-menu {
    font-size: 0.875rem;
}

.badge.float-end {
    margin-top: 0.2rem;
}
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}
.alert-success {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}
.alert-danger {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}