/* Base Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'open sans', sans-serif;
    font-weight: 300;
    display: flex;
    height: 100vh;
    overflow-x: hidden;
    background:#fcfcfc !important;
}

p.meta2 {
    opacity: .45;
    font-size: 13px;
    font-family: "Apercu Mono Pro";
}

hr {
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: 0;
    border-top: 1px solid #202426;
}

/* Sidebar Styling */
.sidebar {
    background-color: #fff;
    color: #333;
    width: 250px;
    height: 100%;
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.3s ease;
    margin-top: 40px;
    padding-bottom: 20px; /* Acts as bottom margin */
    overflow-y: auto;
    scrollbar-width: none; /* Firefox: hides scrollbar */
}

.sidebar::-webkit-scrollbar {
    display: none; /* Chrome, Safari: hides scrollbar */
}

/* Add bottom padding to the last child for extra space at the end */
.sidebar ul {
    padding-bottom: 80px; /* Adds padding to the end of the content */
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

.collapse-button {
    cursor: pointer;
    padding: 15px;
    background-color: #ffffff;
    text-align: center;
    width: auto;
    font-size: 1.2em;
    position: absolute;
    right: 0px;
}

#casesSubmenu li a {
    color:#333;
    padding:14px 20px 14px 35px !important;
}

#casesSubmenu li a:hover {
    color:#fff;
    padding:14px 20px 14px 35px !important;
}

.sidebar ul li a {
    padding: 14px 20px;
}

.sidebar ul li a:hover {
    text-decoration:none;
}

.sidebar ul {
    list-style-type: none;
    padding: 20px 0;
    width: 100%;
}

.sidebar ul li {
    
    text-align: center;
    cursor: pointer;
    
}
.sidebar ul li a:hover {
    background-color: #000;
    color:#fff;
}



/* Main Content Area */
.main-content {
    flex-grow: 1;
    margin-left:0px;
    padding: 0px;
    overflow-y: auto;
    transition: margin-left 0.3s ease;
    margin-top:40px;
    background:#fff;
    background-size: 144%;
    background-attachment: local;
}
.sidebar.collapsed + .main-content {
    margin-left: 0;
}

/* Footer */
footer {
    background-color: #000;
    color: #fff;
    padding: 10px;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index:999;
    left:0;
    max-width:100vw;
}

/* Mobile Styling */
/* Hide sidebar off-screen on mobile */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -250px; /* Move off-screen */
        top: 0;
        width: 250px;
        height: 100%;
        background-color: #fff;
        overflow-x: hidden;
        transition: 0.3s; /* Smooth slide-in/out transition */
        z-index:9999;
    }

    /* Hamburger menu styling */
    .hamburger-menu {
        position: absolute;
        top: 10px;
        left:0px;
        background-color: #333;
        color: #fff;
        padding: 10px;
        cursor: pointer;
        z-index: 1000;
    }
    
  
    .main-content {
        flex-grow: 1;
        margin-left: 0px;
        padding: 0px;
        overflow-y: auto;
        transition: margin-left 0.3s ease;
        padding-top: 42px;
        background: URL(https://clients.archerknox.com/secure/assets/images/backlines25.webp) no-repeat right top;
    background-size: 144%;
    background-attachment: local;
    }

}

/* Sidebar visible when toggled */
.sidebar.visible {
    left: 0;
}

/* Dashboard */

.dashboard-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.summary-panels {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.panel {
    flex: 1;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 0px;
    text-align: center;
    border-top: 1px solid #e1e1e1;
}

.recent-activity, .quick-actions {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
}

h3 {
    margin-bottom: 10px;
}

h1.case-title, h2.section-title, h2.section-title  {
    font-family: 'open sans', sans-serif;
    font-weight: 300;
    text-transform: uppercase;
    font-size: 18px;
}

li.activity-item, li {
    list-style-type: none;
    font-size: 12px;
}

ul#activity-feed li {
    list-style-type: none;
    font-size: 12px;
}

h3.dashboard-item {
    font-size: 16px;
    font-weight: 300;
}

button#refresh-dashboard {
    background: #000;
    color: #fff;
    padding: 3px 12px;
    border-radius: 5px;
    border: none;
}

button {
    text-decoration: none;
    border: none;
    background: #000;
    color: #fff;
    border-radius: 5px;
    font-size: 12px;
    padding: 7px 11px;
}

 h2 {
    font-weight: 700;
    font-size: 18px;
    margin-bottom:20px;
}

textarea {
    width: 100%;
    padding: 10px;
    border: .5px solid #e1e1e1;
}

li.reply {
    margin-left: 25px;
    margin-bottom: 3px;
}

.center1 {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    flex-direction: column;
    text-align: center;
}
