/* Color scheme variables */
:root {
    --primary-color: #bc202e;
    --primary-color-hover: #a81b26;
    --primary-color-light: rgba(188, 32, 46, 0.1);
    --black: #000;
    --white: #fff;
    --gray-light: #f8f9fa;
    --gray-medium: #e9ecef;
    --gray-dark: #6c757d;
}

body {
    font-family: "Lato", serif;
}

body#loginpage {
    background-image: url(../images/grm-bg.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: 0px;
}

#iniciologo {
    width:120px;
}

#homenav {
    background: transparent;
}

.botonchico {
    font-size: 12px !important;
}

#logincontainer {
    display:flex;
    height: 100vh;
}
#loginform {
    background-color: var(--white);
    box-shadow: 1px 1px 10px 1px var(--gray-medium);
    border-radius: 18px;
    padding: 40px;
    min-width: 500px;
    margin: auto;
    align-items: center;
    justify-content: center;
}

#loginform h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 800;
}

#loginform input {
    width: 100%;
    box-sizing: border-box;
    background-color: var(--gray-medium);
}

#loginform label {
    text-align: left !important;
}

#loginform .btn-primary {
    width: 100%;
    font-size: 14px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

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

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

#solicitar {
    text-align: center;
    border-top: 1px solid var(--gray-medium);
    margin-top: 30px;
    padding-top:20px;
}
#solicitar a {
    color: var(--black);
    font-size: 14px;
    text-decoration: none;
}

#dashboardnav {
    background-color: var(--black);
    padding: 10px;
}
#dashboardnav .btn {
    font-size: 12px;
}
#dashboardnav .botonesrojos {
    text-align: right;
}
#dashlogo {
    width: 90px;
}

#profileinfo {
    padding: 6px;
    margin-bottom: 0px;
}

#profileinfo h6{
    margin-bottom: 5px;
}
#profileinfo p {
    font-size: 11px;
    text-transform: uppercase;
}
#grmnav a {
    font-size: 14px;
    color: var(--black);
    margin-bottom: 3px;
    line-height: 18px;
    padding: 2px;
    padding-left: 6px;
}

#grmnav h6 {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

#pagetitle {
    padding: 0px;
    padding-left: 20px;
    border-bottom: 1px solid var(--primary-color);
    margin-bottom: 15px;
}

#pagetitle h2 {
    padding: 0px;
    margin: 0px;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 600;
}

.padding {
    padding: 10px;
}
.card {
    padding: 25px;
    box-shadow: 0px 0px 20px var(--gray-medium);
    border:0px;
}
.card h4 {
    font-weight: bold;
}

.perfilheader {
    padding-bottom: 30px;
}

#profilepic {
    text-align: center;
}
.profiletabs {
    padding-top: 30px;
}
.profiletabs ul {
    border-bottom: 1px solid var(--gray-medium);
}
.profiletabs .nav-link {
    color: var(--gray-dark);
    font-size: 14px;
    font-weight: bold;
    box-shadow: none;
    border:0px;
}

.profiletabs .nav-link.active {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: bold;
    box-shadow: none;
    border:0px;
    border-bottom: 3px solid var(--primary-color);
}


.hijo-search-wrapper {
    position: relative;
}
.hijo-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--gray-medium);
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    list-style: none;
    padding: 0;
    margin: 0;
    list-style-type: none;
}
.hijo-search-dropdown li {
    padding: 8px 12px;
    cursor: pointer;
}
.hijo-search-dropdown li:hover {
    background: var(--gray-light);
}
.hijo-search-dropdown.hidden {
    display: none;
}

#sidebar h6 {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
}

/* Gran Logia Activities Specific Styling */

#gran-logia-activities {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-bottom: 30px;
}
#gran-logia-activities li {
    padding: 6px 0;
    font-size: 0.9rem;
    color: #495057;
    border-bottom: 1px solid var(--gray-medium);
    overflow: hidden;
    text-overflow: ellipsis;
}
#gran-logia-activities li:last-child {
    border-bottom: none;
}
#gran-logia-activities .text-muted {
    font-style: italic;
    font-size: 0.85rem;
}
#gran-logia-activities .nav-link {
    font-size: 0.9rem;
    color: #007bff;
    padding: 5px 0;
    display: block;
}
#gran-logia-activities .nav-link:hover {
    text-decoration: underline;
    background-color: transparent;
}

/* Form validation styling */
.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: #28a745;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Dashboard widget styling */
.dashboard-widget {
    margin-bottom: 1.5rem;
}

.dashboard-widget .card-header {
    padding: 0.75rem 1.25rem;
    font-weight: bold;
}

.dashboard-widget .card-body {
    padding: 1.25rem;
}

.dashboard-stat {
    text-align: center;
    padding: 1rem;
}

.dashboard-stat h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.dashboard-stat p {
    margin-bottom: 0;
    color: var(--gray-dark);
}

/* Table enhancements */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Data tables with search functionality */
.data-table-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.data-table-search {
    margin-bottom: 1rem;
}

.data-table-search input {
    border-radius: 20px;
    padding-left: 15px;
    padding-right: 40px;
}

.data-table-search i {
    position: absolute;
    right: 15px;
    top: 10px;
    color: var(--gray-dark);
}

.data-table th {
    cursor: pointer;
    position: relative;
}

.data-table th.sort-asc::after {
    content: '↑';
    position: absolute;
    right: 8px;
    color: var(--primary-color);
}

.data-table th.sort-desc::after {
    content: '↓';
    position: absolute;
    right: 8px;
    color: var(--primary-color);
}

/* Pagination styling */
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.pagination li {
    margin: 0 2px;
}

.page-item .page-link {
    color: var(--gray-dark);
    background-color: var(--white);
    border: 1px solid var(--gray-medium);
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
    text-decoration: none;
}

.page-item.active .page-link {
    color: var(--white);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-item.disabled .page-link {
    color: var(--gray-dark);
    background-color: var(--white);
    border-color: var(--gray-medium);
    pointer-events: none;
}

/* Reduce size of pagination arrows */
.pagination svg {
    width: 10px;
    height: 10px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    /* Layout adjustments */
    .padding {
        padding: 15px;
    }
    
    .card {
        padding: 15px;
    }
    
    #loginform {
        min-width: 90%;
        padding: 20px;
    }
    
    /* Navbar adjustments */
    #dashboardnav .botonesrojos {
        text-align: center;
        margin-top: 10px;
    }
    
    #dashboardnav .botonesrojos .btn {
        margin-bottom: 5px;
        width: 100%;
    }
    
    /* Sidebar menu for mobile */
    #sidebarmenu {
        position: fixed;
        z-index: 1000;
        left: -250px;
        top: 0;
        height: 100vh;
        width: 250px;
        background-color: var(--white);
        transition: left 0.3s;
        overflow-y: auto;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    #sidebarmenu.show {
        left: 0;
    }
    
    .toggle-sidebar {
        display: block !important;
        position: fixed;
        top: 60px;
        left: 15px;
        z-index: 1001;
        background-color: var(--primary-color);
        color: var(--white);
        border: none;
        padding: 8px 10px;
        border-radius: 4px;
    }
    
    /* Tab adjustments for mobile */
    .profiletabs ul.nav-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
    }
    
    .profiletabs .nav-item {
        white-space: nowrap;
    }
    
    /* Form layout improvements */
    form .row > div {
        margin-bottom: 15px;
    }
}

/* Alert styling improvements */
.alert {
    border-radius: 4px;
    border-left: 4px solid;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    border-left-color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
}

.alert-danger {
    border-left-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

.alert-warning {
    border-left-color: #ffc107;
    background-color: rgba(255, 193, 7, 0.1);
}

.alert-info {
    border-left-color: #17a2b8;
    background-color: rgba(23, 162, 184, 0.1);
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    border: 1px solid var(--gray-medium);
    border-radius: 0.25rem;
    padding: 0.5rem;
    min-height: 42px;
    background-color: var(--white);
}
.tag {
    display: inline-flex;
    align-items: center;
    background-color: var(--gray-medium);
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    margin: 0.25rem;
    font-size: 0.875rem;
}
.tag-remove {
    margin-left: 0.5rem;
    cursor: pointer;
    color: var(--gray-dark);
}
.tag-remove:hover {
    color: #dc3545;
}
.recipient-search {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.25rem;
    min-width: 100px;
}
.search-results {
    position: absolute;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background-color: var(--white);
    border: 1px solid var(--gray-medium);
    border-top: none;
    z-index: 1000;
    display: none;
}
.search-item {
    padding: 0.5rem;
    cursor: pointer;
}
.search-item:hover {
    background-color: var(--gray-light);
}
.recipients-wrapper {
    position: relative;
    width: 100%;
}

/* Support Chat styling */
.support-chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
}

.support-chat-btn {
    border-radius: 50px;
    padding: 12px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.support-chat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.support-chat-box {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    height: 400px;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    padding: 12px 15px;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.chat-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chat-header .btn-close {
    filter: brightness(0) invert(1);
}

.chat-messages {
    flex-grow: 1;
    padding: 15px;
    padding-bottom: 30px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: calc(100% - 120px); /* Fixed height calculation accounting for header and input */
    max-height: calc(100% - 120px);
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: thin; /* For Firefox */
}

/* WebKit scrollbar styles */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: var(--gray-light);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--gray-medium);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--gray-dark);
}

.chat-input-group {
    display: flex;
    padding: 10px;
    border-top: 1px solid var(--gray-medium);
    background-color: var(--gray-light);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    flex-shrink: 0;
    z-index: 5;
}

.chat-input-group textarea {
    resize: none;
    border-radius: 20px;
    padding: 10px 15px;
    flex-grow: 1;
    margin-right: 10px;
    border: 1px solid var(--gray-medium);
}

.chat-input-group button {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    border: none;
}

.chat-input-group button:hover {
    background-color: var(--primary-color-hover);
}

.user-message {
    align-self: flex-end;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 15px;
    border-radius: 18px 18px 0 18px;
    max-width: 80%;
    word-wrap: break-word;
}

.system-message {
    align-self: flex-start;
    background-color: var(--gray-light);
    color: var(--black);
    padding: 10px 15px;
    border-radius: 18px 18px 18px 0;
    max-width: 80%;
    word-wrap: break-word;
}

.system-message.error {
    background-color: #ffeaea;
    color: #dc3545;
}

@media (max-width: 576px) {
    .support-chat-box {
        width: 280px;
        right: 0;
    }
}

/* Twitter/X Style Feed */
.twitter-feed {
    background-color: var(--white);
}
.post-card {
    transition: background-color 0.15s ease-in-out;
    border-bottom: 1px solid #eff3f4 !important;
    margin-bottom: 20px !important;
}
.post-card:hover {
    background-color: #f7f7f7;
}

/* =================================
   Modern Sidebar and Navigation Styles
   ================================= */

/* Modern sidebar styles */
body {
    overflow-x: hidden;
    padding-top: 56px; /* Add padding for fixed header */
}

/* Basic sidebar styling */
#sidebar {
    background-color: #f8f9fa; /* Lighter background to match screenshot */
    height: calc(100vh - 56px);
    padding: 0;
    overflow-y: auto;
    z-index: 100;
    border-right: 1px solid #dee2e6;
}

/* Make sure sidebar container takes up full height */
.sidebar-wrapper {
    position: fixed;
    width: inherit;
    max-width: inherit;
    top: 56px;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    z-index: 1000;
}

/* Sidebar sections - match the collapsible sections in screenshot */
#sidebar-wrapper .px-3 {
    margin-top: 1rem;
}

/* Sidebar section headers */
#sidebar-wrapper h6,
#sidebar-wrapper .sidebar-heading span {
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 600;
    color: #6c757d;
    letter-spacing: 0.03rem;
}

/* Main section headers - MI GRAN LOGIA, MI LOGIA */
#sidebar-wrapper .px-3 .sidebar-heading span:first-child {
    font-weight: 700;
}

/* Nested menu items */
.sidebar ul.nav .nav-item .collapse ul.nav {
    margin-left: 0.75rem;
    border-left: 1px solid #dee2e6;
    padding-left: 0.5rem;
}

/* Add spacing between sections */
#sidebar-wrapper > div > div {
    margin-bottom: 0.75rem;
}

/* Main content spacing */
main.content-wrapper {
    padding-top: 20px;
}

/* Hamburger Menu Styling */
#sidebarToggle {
    position: relative;
    background: none !important;
    border: none !important;
    padding: 8px 12px;
    margin-right: 15px;
    transition: all 0.3s ease;
}

#sidebarToggle:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 4px;
}

#sidebarToggle i {
    font-size: 20px;
    color: #dc3545 !important;
    transition: transform 0.3s ease;
}

#sidebarToggle:hover i {
    transform: scale(1.1);
}

/* Mobile sidebar */
@media (max-width: 767.98px) {
    /* Hide sidebar by default on mobile */
    #sidebar-wrapper {
        display: none !important;
    }
    
    #sidebar {
        position: fixed;
        top: 56px;
        left: 0;
        width: 100vw;
        height: calc(100vh - 56px);
        z-index: 1030;
        background: #fff;
        box-shadow: none;
        transition: all 0.3s ease;
        transform: translateX(-100%);
        border-right: none;
    }
    
    #sidebar-wrapper.show {
        display: block !important;
    }
    
    #sidebar.show {
        transform: translateX(0);
        display: block !important;
    }
    
    /* Full screen overlay */
    body.sidebar-open::before {
        content: '';
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1025;
        animation: fadeIn 0.3s ease;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    /* Adjust sidebar content for mobile */
    #sidebar .sidebar-sticky {
        padding: 1rem;
        height: calc(100vh - 56px);
    }
    
    /* Larger touch targets for mobile */
    #sidebar .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        border-radius: 8px;
        margin-bottom: 0.25rem;
    }
    
    #sidebar .nav-link i {
        width: 1.5rem;
        font-size: 1.1rem;
        margin-right: 0.75rem;
    }
    
    /* Section headers more prominent on mobile */
    #sidebar .sidebar-heading,
    #sidebar h6,
    #sidebar-wrapper .sidebar-heading span {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        background: rgba(0,0,0,0.05);
        margin: 0.5rem -1rem;
        margin-bottom: 0.75rem;
    }
    
    /* Better spacing for nested items */
    #sidebar .border-start {
        margin-left: 1rem;
        padding-left: 1rem;
    }
    
    main.content-wrapper {
        margin-left: 0 !important;
        width: 100%;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
    #sidebar {
        width: 280px;
    }
    
    main.content-wrapper {
        margin-left: 280px;
    }
}

/* Additional mobile responsive improvements */
@media (max-width: 576px) {
    /* Smaller mobile devices */
    .navbar-brand img {
        height: 35px;
    }
    
    #sidebarToggle {
        padding: 6px 10px;
        margin-right: 10px;
    }
    
    #sidebarToggle i {
        font-size: 18px;
    }
    
    /* Adjust dropdown menu for small screens */
    .dropdown-menu {
        min-width: 200px;
        right: 0 !important;
        left: auto !important;
    }
    
    /* Better sidebar spacing on very small screens */
    #sidebar .sidebar-sticky {
        padding: 0.75rem;
    }
    
    #sidebar .nav-link {
        padding: 0.6rem 0.75rem;
        font-size: 0.95rem;
    }
}

/* Prevent content shift when sidebar opens */
body {
    transition: none;
}

/* Smooth animations for sidebar */
#sidebar-wrapper {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#sidebar {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus states for accessibility */
#sidebarToggle:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    #sidebar,
    #sidebar-wrapper,
    #sidebarToggle,
    #sidebarToggle i {
        transition: none !important;
        animation: none !important;
    }
}

/* Sidebar navigation styling */
.sidebar-sticky {
    position: sticky;
    top: 0;
    height: calc(100vh - 56px);
    padding-top: 0.5rem;
    overflow-y: auto;
}

.sidebar .nav-link {
    color: #444; /* Dark gray links */
    font-weight: 400;
    padding: 0.35rem 0.75rem;
    border-radius: 0.25rem;
    margin-bottom: 0.15rem;
    font-size: 0.8rem; /* Even smaller text to match screenshot */
    text-decoration: none;
    display: flex;
    align-items: center;
}

.sidebar .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #212529;
}

.sidebar .nav-link.active {
    color: #bc202e; /* Brand red */
    font-weight: 500;
    background-color: rgba(188, 32, 46, 0.1);
}

.sidebar .sidebar-heading {
    color: #495057; /* Dark gray but slightly lighter */
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    letter-spacing: 0.5px;
}

.sidebar .nav-link i {
    color: #555; /* Dark gray icons to match links */
    width: 1.25rem; /* Fixed width for icons */
    text-align: center;
    margin-right: 0.35rem;
}

.sidebar .border-start {
    border-color: #dee2e6 !important;
}

/* Collapsible sections */
.sidebar .collapse {
    transition: all 0.2s ease;
}

/* Quick action section styles */
.sidebar h6,
#sidebar-wrapper h6,
#sidebar-wrapper .sidebar-heading span {
    color: #495057;
}

/* Add extra spacing for the ACCIONES RÁPIDAS section */
#sidebar-wrapper h6.text-uppercase,
#sidebar-wrapper .sidebar-heading.text-uppercase {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Match the exact menu structure in the screenshot */
#sidebar-wrapper .nav-item {
    margin-bottom: 0.2rem;
}

/* Specific styling for items with dropdowns like Secretaría and Tesorería */
.sidebar .nav-link[data-bs-toggle="collapse"],
#sidebar-wrapper .nav-link[data-bs-toggle="collapse"] {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Dropdown chevron icons */
.sidebar .nav-link[data-bs-toggle="collapse"] .fas.fa-chevron-down,
#sidebar-wrapper .nav-link[data-bs-toggle="collapse"] .fas.fa-chevron-down {
    font-size: 0.7rem;
    color: #6c757d;
}

/* Action buttons styling */
.sidebar .btn-danger,
#sidebar-wrapper .btn-danger {
    background-color: #bc202e;
    border-color: #bc202e;
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar .btn-danger i,
#sidebar-wrapper .btn-danger i {
    color: white;
    margin-right: 0.35rem;
}

/* Fix Bootstrap dropdown issues with our menu */
.dropdown-toggle::after {
    display: none;
}

.post-card {
    transition: background-color 0.15s ease-in-out;
    border-bottom: 1px solid #eff3f4 !important;
    margin-bottom: 20px !important;
}
.post-card:hover {
    background-color: rgba(0, 0, 0, 0.03);
    cursor: pointer;
}
.post-card .card-body {
    padding: 12px 16px;
}
.profile-img img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
}
.post-content {
    white-space: pre-wrap;
    font-size: 15px;
    line-height: 1.5;
    margin-top: 4px;
    color: var(--black);
    word-break: break-word;
}
.post-image {
    max-height: 350px;
    object-fit: cover;
    width: 100%;
    border-radius: 15px !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
}
.post-actions {
    margin-top: 10px;
    padding-top: 4px;
}
.post-action-btn {
    color: var(--gray-dark);
    border-radius: 50%;
    padding: 8px;
    margin-right: 8px;
    transition: all 0.2s ease;
    background: transparent;
    display: flex;
    align-items: center;
}
.post-action-btn:hover {
    background-color: rgba(29, 155, 240, 0.1);
    color: #1d9bf0;
}
.post-action-btn i {
    font-size: 16px;
}
.post-action-btn .like-count {
    margin-left: 4px;
    font-size: 13px;
}
.like-button:hover {
    background-color: rgba(249, 24, 128, 0.1);
    color: #f91880;
}
.like-button.active {
    color: #f91880;
}
.like-button.active i {
    font-weight: 900;
}

/* Override Bootstrap button border on like button */
.like-button,
.like-button:hover,
.like-button:focus,
.like-button:active,
.like-button.active {
    border: none !important;
    border-color: transparent !important;
    --bs-btn-border-color: transparent !important;
    --bs-btn-active-border-color: transparent !important;
    --bs-btn-hover-border-color: transparent !important;
    --bs-btn-focus-border-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

.comment-button:hover {
    background-color: rgba(29, 155, 240, 0.1);
    color: #1d9bf0;
}
/* User info styling */
.user-info {
    line-height: 1.2;
}
.user-name {
    font-weight: 700;
    color: var(--black);
    font-size: 15px;
}
.user-name:hover {
    text-decoration: underline;
}
.user-handle, .post-time {
    color: var(--gray-dark);
    font-size: 13px;
}
/* Make it mobile responsive */
@media (max-width: 576px) {
    .profile-img img {
        width: 40px;
        height: 40px;
    }
    .post-content {
        font-size: 14px;
    }
    .post-action-btn {
        padding: 6px;
    }
    .post-action-btn i {
        font-size: 14px;
    }
}