/* General Body Styles */
body {
    background-color: #f7fafc; /* bg-gray-100 */
    font-family: 'Inter', sans-serif;
    margin: 0;
    color: #4a5568; /* text-gray-700 */
	
}


.contentpane{padding:0;}

/* Main Layout Container */
.main {
    display: flex;
    min-height: 100vh;
    background-color: #edf2f7; /* bg-gray-200 */
}

/* Sidebar Styling */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 20rem; /* w-64 */
    background-color: #1a202c; /* bg-gray-800 */
    color: #ffffff; /* text-white */
    z-index: 30;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    display: flex;
    align-items: center;
    padding: 1.5rem; /* p-6 */
    border-bottom: 1px solid #2d3748; /* border-gray-700 */
    position: relative; /* For positioning the close button */
}

.sidebar-logo {
    margin-right: 0.75rem; /* mr-3 */
}

.logo-icon {
    height: 2.5rem; /* h-10 */
    width: 2.5rem; /* w-10 */
    color: #4299e1; /* text-blue-500 for variety */
}

.sidebar-title {
    font-size: 1.25rem; /* text-xl */
    font-weight: 600; /* font-semibold */
}

.sidebar-navigation-top {
    display: flex;
    flex-direction: column;
    padding-top: 1rem; /* pt-4 */
    flex-grow: 1;
}

.sidebar-title{color:deepskyblue;}

.nav-submenu .nav-submenu-link:last-child {
    padding-bottom: 20px;
}

.footer{background-image: none;}

.nav-link {
    display: block;
    padding: 0.75rem 1.5rem; /* py-3 px-6 */
    text-decoration: none;
    color: #a0aec0; /* text-gray-400 */
    font-weight: 500; /* font-medium */
    transition: background-color 0.2s, color 0.2s;
}

.nav-link:hover {
    background-color: #2d3748; /* hover:bg-gray-700 */
    color: #ffffff; /* hover:text-white */
}

.nav-link.active {
    background-color: #2d3748; /* bg-gray-700 */
    color: #ffffff; /* text-white */
    border-left: 3px solid #4299e1; /* border-blue-500 */
}

/* Nav Group for expandable menus */
.nav-group-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1.5rem; /* py-3 px-6 */
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: #a0aec0; /* text-gray-400 */
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500; /* font-medium */
    transition: background-color 0.2s, color 0.2s;
}
a{outline: none !important;}
.agentQuickInfo{max-width:640px;}

.nav-group-toggle:hover {
    background-color: #2d3748; /* hover:bg-gray-700 */
    color: #ffffff; /* hover:text-white */
}

.nav-group-icon {
    width: 1rem; /* w-4 */
    height: 1rem; /* h-4 */
    transition: transform 0.3s ease-in-out;
}

.nav-group.open .nav-group-icon {
    transform: rotate(90deg);
}

.nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    background-color: #111827; /* A slightly darker gray for depth */
}

.nav-group.open .nav-submenu {
    max-height: 500px; /* Adjust as needed */
}

.nav-submenu-link {
    display: block;
    padding: 0.6rem 1.5rem 0.6rem 2.5rem; /* Indented padding */
    text-decoration: none;
    color: #a0aec0; /* text-gray-400 */
    font-size: 0.9rem;
    transition: background-color 0.2s, color 0.2s;
}

.nav-submenu-link:hover {
    background-color: #2d3748; /* hover:bg-gray-700 */
    color: #ffffff; /* hover:text-white */
}

.sidebar-close-button {
    display: none; /* Hidden on desktop */
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: #a0aec0; /* text-gray-400 */
    cursor: pointer;
    padding: 0.25rem;
}

.sidebar-close-button:hover {
    color: #ffffff;
}

.sidebar-divider {
    margin: 1rem 1.5rem; /* my-4 mx-6 */
    border-top: 1px solid #2d3748; /* border-gray-700, matches header border */
}

span.link-icon{margin-right:12px; height:20px; width:20px; display:inline-block;transition:none !important;}

/* Main Content Wrapper */
.main-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-left: 20rem; /* ml-64 */
}

/* Header */
.header {
    background-color: #ffffff; /* bg-white */
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); /* shadow */
    padding: 1rem 1.5rem; /* p-4 px-6 */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-user-info {
    display: flex;
    flex-direction: column;
}

.agent-name {
    font-weight: 600; /* font-semibold */
    color: #2d3748; /* text-gray-800 */
}

.agent-location {
    font-size: 0.875rem; /* text-sm */
    color: #718096; /* text-gray-500 */
}
.header-actions {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 1.5rem; /* space-x-6 */
}

.header-search {
    margin-right: 1rem;
}

.search-input {
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    color: #4a5568;
}


.header-action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096; /* text-gray-500 */
    background-color: transparent;
    border-radius: 9999px; /* rounded-full */
    width: 2.5rem; /* w-10 to match hover area */
    height: 2.5rem; /* h-10 to match hover area */
    transition: background-color 0.2s, color 0.2s;
}

.header-action-button:hover {
    background-color: #edf2f7; /* hover:bg-gray-200 */
    color: #2d3748; /* hover:text-gray-800 */
}

.action-icon {
    width: 1.5rem; /* w-6 */
    height: 1.5rem; /* h-6 */
}

/* Main Content Area */
.content-area {
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto;
	padding:20px;
}


/* Footer */
.footer {
    padding: 1rem; /* p-4 */
    background-color: #f7fafc; /* bg-gray-100 */
    border-top: 1px solid #e2e8f0; /* border-t border-gray-200 */
    text-align: center;
    font-size: 0.875rem; /* text-sm */
    color: #718096; /* text-gray-600 */
}

.footer a {
    color: #4a5568; /* text-gray-700 */
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer p{vertical-align:middle; margin:0;}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 25; /* Below sidebar (30), above content */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
.sidebar-overlay.is-visible {
    visibility: visible;
    opacity: 1;
}
/* Mobile Menu Button - Hidden on Desktop */
.mobile-menu-button {
    display: none;
    background: transparent;
    border: none;
    color: #4a5568; /* text-gray-700 */
    cursor: pointer;
    padding: 0.5rem;
    margin-right: 0.5rem;
}

/* --- Responsive Design --- */

/* For tablets and smaller screens (up to 1024px) */
@media (max-width: 1024px) {
    .sidebar-close-button {
        display: block; /* Show the close button */
    }

    .mobile-menu-button {
        display: block; /* Show the hamburger menu */
    }

    .sidebar {
        /* Hide the sidebar off-screen by default. */
        /* We would later use JavaScript to add a class like .is-open to show it. */
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

    .sidebar.is-open {
        transform: translateX(0); /* Show the sidebar when .is-open is added */
    }

    .main-content-wrapper {
        /* Let the main content take up the full width */
        margin-left: 0;
    }
}

/* For mobile phones (up to 768px) */
@media (max-width: 768px) {
    .header-actions {
        display: none;
    }
    
    .header-search {
        margin-right: auto;
    }
    
    .search-input {
        width: 100%;
    }
    }

    .sidebar-header {
        flex-direction: row; /* Keep logo and title in one line */
        align-items: center; /* Vertically align */
    }


.header-logo {
    display: none; /* Hidden on desktop */
}

@media (max-width: 768px) {
    body {
        position: relative; /* Needed for positioning the logo */
    }

    .header {
        background-color: #1a202c; /* bg-gray-800 - Sidebar color */
        color: #ffffff; /* text-white - Sidebar text color */
    }
    .header-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}



.agentinfo-wrapper {
  position: relative;
  display: inline-block;
}

.trigger {
  cursor: pointer;
}

.agentinfo-box {
  position: absolute;
  top: 110%;
  right: 0;
  width: 360px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease, border-width 0.3s ease;
  background-color: #f9f9f9;
  border: 0 solid #ddd; /* Start with no border */
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 0 15px;
  z-index: 10;
}

.agentinfo-box.open {
  max-height: 640px;
  padding: 15px;
  border-width: 1px; /* Show border when open */
}

.agentQuickInfo .row div{margin-bottom:12px;}
.center{text-align:center !important}
#system-message-container:has(joomla-alert){margin-top:0 !Important; margin-left: 20rem; padding: 20px;}
.right{text-align:right !important}
.loginForm{max-width:900px; margin:0 auto; padding-top:150px;}
pre{margin-left:340px; margin-top:100px;}