/* /assets/css/style.css */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

/* --- Global Styles --- */
body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f8f9fa; /* Changed to a slightly off-white for better contrast with cards */
    color: #212529;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lora', serif;
    color: #333; 
}

a {
    color: #27ae60; 
    text-decoration: none;
}

a:hover {
    color: #229954; 
    text-decoration: underline;
}

/* --- Layout Containers --- */
/* Your original rule for the fixed-width container */
body > .container { 
    width: 90%; 
    max-width: 1100px; 
    margin-left: auto;
    margin-right: auto;
    padding-top: 20px; 
    padding-bottom: 20px; 
    flex-grow: 1; 
}

/* --- NEW: Style for the full-width layout we are about to create --- */
/* This rule will apply to the main content area on index.php and feed.php */
/* It ensures there is some space on the sides on larger screens. */
body > .container-fluid.main-content {
    padding-left: 15px;
    padding-right: 15px;
    flex-grow: 1; 
}

@media (min-width: 992px) { /* On large screens (desktops) */
    body > .container-fluid.main-content {
        padding-left: 60px;  /* Add more space on the sides */
        padding-right: 60px;
    }
}
/* --- End of new style --- */


/* --- Navbar Specifics (Unchanged) --- */
.navbar.sticky-top {
    z-index: 1030;
}
.navbar-light .navbar-brand { 
    font-family: 'Lora', serif;
    font-weight: bold;
    color: #27ae60; 
}
.navbar-light .navbar-brand:hover {
    color: #229954; 
}
.navbar-light .navbar-nav .nav-link {
    color: #495057; 
    padding-left: 0.75rem; 
    padding-right: 0.75rem;
}
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
    color: #27ae60; 
}
.navbar-light .navbar-nav .nav-link.active {
    color: #27ae60; 
    font-weight: 600; 
}
.navbar .nav-item.dropdown {
    position: relative;
}
.navbar-light .dropdown-menu { 
    background-color: #ffffff; 
    border: 1px solid rgba(0,0,0,.15); 
    width: auto; 
    min-width: 220px;
    z-index: 1031;
}
.navbar-light .dropdown-menu.dropdown-menu-end {
    right: 0;
    left: auto; 
}
.navbar-light .dropdown-menu .dropdown-item {
    color: #212529 !important;
    background-color: transparent;
    padding: .5rem 1rem; 
}
.navbar-light .dropdown-menu .dropdown-item:hover,
.navbar-light .dropdown-menu .dropdown-item:focus {
    color: #ffffff !important; 
    background-color: #27ae60; 
}
.navbar-light .dropdown-menu .dropdown-item.active, 
.navbar-light .dropdown-menu .dropdown-item:active {
    color: #ffffff !important;
    background-color: #229954; 
}
.navbar-light .dropdown-menu .dropdown-item-text {
    color: #495057; 
    padding: .5rem 1rem;
}
.navbar-light .dropdown-menu .dropdown-item:hover .fas,
.navbar-light .dropdown-menu .dropdown-item:hover .far,
.navbar-light .dropdown-menu .dropdown-item:hover .fab,
.navbar-light .dropdown-menu .dropdown-item:focus .fas,
.navbar-light .dropdown-menu .dropdown-item:focus .far,
.navbar-light .dropdown-menu .dropdown-item:focus .fab {
    color: #ffffff !important;
}
.navbar-light .dropdown-menu .dropdown-divider {
    border-top: 1px solid #e9ecef; 
}

/* --- Buttons (Unchanged) --- */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.btn:not([class*="btn-outline-"]):not([class*="btn-light"]):not([class*="btn-link"]) {
    background-color: #27ae60;
    color: #ffffff;
    border: 1px solid #27ae60;
}
.btn:not([class*="btn-outline-"]):not([class*="btn-light"]):not([class*="btn-link"]):hover {
    background-color: #229954;
    border-color: #229954;
    color: #ffffff;
}
.btn-link { 
    color: #27ae60;
    text-decoration: none; 
}
.btn-link:hover {
    color: #229954;
}

/* --- Forms (Unchanged) --- */
.form-container {
    background: #ffffff; 
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 30px auto;
}
.form-container h1, .form-container h2 { text-align: center; margin-bottom: 20px; color: #333; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; color: #555; }
.form-group input[type="text"], .form-group input[type="email"], .form-group input[type="password"], .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; box-sizing: border-box; font-size: 1rem; }
.form-group input[type="text"]:focus, .form-group input[type="email"]:focus, .form-group input[type="password"]:focus, .form-group textarea:focus { outline: none; border-color: #27ae60; box-shadow: 0 0 0 0.2rem rgba(39, 174, 96, 0.25); }
.form-text { font-size: 0.875em; color: #6c757d; }

/* --- Alerts (Unchanged) --- */
.alert { padding: 15px; margin-bottom: 20px; border: 1px solid transparent; border-radius: 4px; text-align: center; }
.alert-success { color: #155724; background-color: #d4edda; border-color: #c3e6cb; }
.alert-danger { color: #721c24; background-color: #f8d7da; border-color: #f5c6cb; }
.alert-info { color: #0c5460; background-color: #d1ecf1; border-color: #bee5eb; }

/* --- Footer (Unchanged) --- */
.site-footer.bg-white { font-size: 0.9rem; color: #555; }
.site-footer.bg-white h5, .site-footer.bg-white h6 { color: #333; font-weight: bold; }
.site-footer.bg-white .footer-link { color: #555; transition: color 0.2s ease-in-out; }
.site-footer.bg-white .footer-link:hover { color: #27ae60; text-decoration: none; }
.site-footer.bg-white .btn-floating { width: 38px; height: 38px; line-height: 38px; padding: 0; text-align: center; font-size: 1.1rem; color: #555; border-color: #ccc; }
.site-footer.bg-white .btn-floating:hover { background-color: #27ae60; color: #ffffff; border-color: #27ae60; }
.site-footer.bg-white .text-muted { color: #6c757d !important; }
.site-footer.bg-white .text-muted a { color: #6c757d; }
.site-footer.bg-white .text-muted a:hover { color: #27ae60; }

/* --- Utilities (Unchanged) --- */
.text-center { text-align: center; }
.card .border-left-primary { border-left: .25rem solid #4e73df!important; }
.card .border-left-success { border-left: .25rem solid #1cc88a!important; }
.card .border-left-info { border-left: .25rem solid #36b9cc!important; }
.card .border-left-warning { border-left: .25rem solid #f6c23e!important; }
.card .border-left-danger { border-left: .25rem solid #e74a3b!important; }
.card .border-left-secondary { border-left: .25rem solid #858796!important; }
.text-xs { font-size: .7rem; } .text-gray-300 { color: #dddfeb!important; } .text-gray-800 { color: #5a5c69!important; } .font-weight-bold { font-weight: 700!important; }
.admin-posts-table th, .admin-posts-table td { white-space: nowrap; } 
.unread-notification { background-color: #eef2f7 !important; border-left: 4px solid #0d6efd; }
.notification-message { font-size: 0.9rem; }
.notification-list-simple .notification-item-simple { border-bottom: 1px solid #eee; }
.notification-list-simple .notification-item-simple:last-child { border-bottom: none; }
.notification-text a { color: #0d6efd; }
.notification-text .fw-semibold { color: #212529; }
#replyingToBlock { background-color: #f8f9fa; padding: 0.3rem 0.6rem; border-radius: 0.25rem; border: 1px solid #dee2e6; display: flex; justify-content: space-between; align-items: center; }
#replyingToBlock .btn-close { font-size: 0.65rem; padding: 0.25rem 0.5rem; }
.comment-item img.rounded-circle.me-3 { width: 40px; height: 40px; flex-shrink: 0; }
#bookmarkButton.text-primary i, #bookmarkButton i.fas { color: #27ae60; }
.card .card-body canvas { min-height: 250px; }
#postsStatusPieChart { max-height: 280px !important; max-width: 280px !important; margin: auto; }