/* Global Styles */
:root {
    --primary-color: #1a2f4e;    /* Navy blue from logo */
    --secondary-color: #c8a355;  /* Gold/yellow from logo */
    --primary-dark: #152238;
    --secondary-light: #dfc285;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-light: #f8f9fa;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --transition: all 0.3s ease-in-out;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Top Bar */
.top-bar {
    font-size: 0.9rem;
}

.top-bar a:hover {
    opacity: 0.8;
    margin: 2px; /* Add margin */
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: var(--text-light) !important;
}

.navbar-brand img {
    transition: var(--transition);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    color: var(--primary-color) !important;
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary-color) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--secondary-light);
    color: var(--primary-color);
}

/* Buttons */
.btn {
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-light);
    border-color: var(--secondary-light);
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
}

/* Cards */
.card {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: none;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    background-color: #f8f9fa;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid #eee;
}

footer h5 {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

footer a {
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--primary-color) !important;
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--secondary-color) !important;
}

/* Form Elements */
.form-control {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

/* Scroll Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .nav-item {
        margin: 0.5rem 0;
    }
    
    .hero {
        min-height: 60vh;
    }
}

@media (max-width: 767.98px) {
    .top-bar {
        text-align: center;
    }
    
    .top-bar .col-md-6:last-child {
        margin-top: 0.5rem;
    }
    
    footer {
        text-align: center;
    }
    
    footer .text-md-end {
        text-align: center !important;
        margin-top: 1rem;
    }
}

/* Article List Styles */
.article-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
}

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

.article-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.article-item h4 a {
    color: #0d6efd;
    text-decoration: none;
}

.article-item h4 a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

/* Article Details Page */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #0d6efd;
}

.article-content p {
    margin-bottom: 1.5rem;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.5em 0.8em;
}

/* Custom Colors for Article Types */
.badge.bg-primary {
    background-color: #0d6efd !important;
}

.badge.bg-success {
    background-color: #198754 !important;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
}

/* Citation Box */
#citationText {
    font-family: monospace;
    background-color: #f8f9fa;
}

/* Related Articles */
.list-group-item-action:hover {
    background-color: #f8f9fa;
}

/* Pagination */
.pagination .page-link {
    color: #0d6efd;
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Search Form */
.search-form .form-control {
    border-radius: 20px;
    padding-left: 1.5rem;
}

.search-form .btn {
    border-radius: 20px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Article Metrics */
.article-metrics .h3 {
    color: #0d6efd;
    font-weight: 600;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0.5rem 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .article-item h4 {
        font-size: 1.1rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
}

/* Top Bar Styling */
.bg-dark {
    background-color: var(--primary-color) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}


.text-alignment-justify{
    text-align: justify!important;
}


.dashboard-page .breadcrumb {
    display: none !important;
}

.admin-page header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030; /* Bootstrap's navbar z-index */
}

.admin-page main {
    margin-top: 80px; /* Adjusted based on header height */
}

.admin-page header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030; /* Bootstrap's navbar z-index */
}

.admin-page main {
    margin-top: 70px; /* Adjust based on header height */
}

/* Hide/Show Top Bar on Scroll */
.hide-top-bar {
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
.action-btn {   width: 80px; /* Adjust as needed */
    height: 30px; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0; /* Remove padding to control size with width/height */
   margin: 2px; /* Add margin */}

#usersTable td {
    font-size: 0.85rem; /* Adjust as needed */
}
