/* ================================================================
   Regno Standard Documentation - Custom Layout Styles
   ================================================================ */

/* ========================================
   GLOBAL RESET AND LAYOUT
======================================== */
body {
    margin: 0;
    padding: 0;
}

/* Main layout container */
.main-container {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.layout-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ========================================
   FLEXBOX LAYOUT COLUMNS
======================================== */
/* Sidebar column */
.sidebar-column {
    flex: 0 0 auto;
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    padding: 15px 0 15px 15px;
    overflow-y: auto;
    z-index: 10;
}

/* Content column */
.content-column {
    flex: 1;
    padding: 0rem 0rem 0rem 3.5rem; /* Only left padding of 3.5rem */
    overflow-y: auto;
    min-width: 0;
}

/* Main content within content column */
.content-column .main-content {
    margin: 1rem 1rem 1rem 1.5rem !important;
    padding: 0;
    position: relative;
    z-index: 100;
}

/* ========================================
   SIDEBAR NAVIGATION (SHARED STYLES)
======================================== */
.sidenav {
    margin: 0;
    padding: 0;
    list-style: none;
    z-index: 1;
}

.sidenav li {
    list-style: none;
    margin-bottom: 5px;
}

.sidenav ul ul {
    margin-left: 15px;
    border-left: 1px solid #e0e0e0;
    padding-left: 10px;
}

.sidenav ul,
.sidenav ul.show,
.sidenav ul.dropable {
    display: block !important;
}

.sidenav a {
    display: block;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sidenav a:hover {
    background-color: #e9ecef !important;
    color: #337ab7 !important;
}

.sidenav a.active,
.sidenav li.active > a,
.sidenav .active a {
    font-weight: bold !important;
    background-color: #337ab7 !important;
    color: white !important;
    padding-left: 11px !important; /* Account for border width */
}

/* Selected menu highlighting - moved to end of file for higher specificity */

/* ========================================
   HEADER TAGLINE STYLING
======================================== */
.navbar-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.navbar-tagline {
    float: right;
    margin-left: auto;
    padding-right: 15px;
}

.tagline-text {
    font-style: italic;
    font-size: 14px;
    color: white;
    white-space: nowrap;
}

/* Responsive behavior for smaller screens */
@media (max-width: 768px) {
    .navbar-tagline {
        display: none; /* Hide tagline on mobile to save space */
    }
}

/* ========================================
   TRADITIONAL SIDEBAR (DESKTOP)
======================================== */
.traditional-sidebar {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
}

.traditional-sidebar .sidenav {
    white-space: nowrap;
}

.traditional-sidebar .sidenav a {
    padding: 8px 15px 8px 0;
}

.traditional-sidebar .sidenav .dropable {
    margin-left: 15px;
}

.traditional-sidebar .sidenav .dropable a {
    padding: 6px 15px 6px 0;
    font-size: 14px;
}

/* ========================================
   HAMBURGER MENU (MOBILE/TABLET)
======================================== */
.hamburger-container {
    position: fixed;
    left: 20px;
    z-index: 1001;
    display: none;
}

/* Responsive positioning based on screen size */
@media (max-width: 480px) {
    .hamburger-container {
        top: 70px; /* Smaller header on small mobile */
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .hamburger-container {
        top: 80px; /* Medium header on larger mobile */
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hamburger-container {
        top: 90px; /* Standard header on tablet */
    }
}

.hamburger-menu-btn {
    background-color: #337ab7;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.hamburger-menu-btn:hover {
    background-color: #286090;
    transform: scale(1.05);
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 1px;
}

/* Hamburger animation */
.hamburger-menu-btn.active .hamburger-line:nth-child(2) {
    transform: translateY(6px) rotate(45deg);
}

.hamburger-menu-btn.active .hamburger-line:nth-child(3) {
    opacity: 0;
}

.hamburger-menu-btn.active .hamburger-line:nth-child(4) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ========================================
   FLOATING SIDEBAR MENU OVERLAY
======================================== */
.floating-sidebar-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: none;
}

.floating-sidebar-menu.show {
    opacity: 1;
    visibility: visible;
}

.floating-sidebar-menu .menu-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 350px;
    height: 100%;
    background-color: #f8f9fa;
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 80px 20px 20px 20px;
}

.floating-sidebar-menu.show .menu-content {
    transform: translateX(0);
}

.floating-sidebar-menu .sidenav a {
    padding: 12px 15px;
    font-weight: 500;
    border-radius: 5px;
}

.floating-sidebar-menu .sidenav .dropable a {
    padding: 8px 15px;
    font-size: 14px;
    font-weight: normal;
}

.floating-sidebar-menu .sidenav .dropable li {
    margin-bottom: 2px;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
======================================== */
/* Mobile/Tablet: ≤1024px */
@media (max-width: 1024px) {
    .layout-wrapper {
        flex-direction: column;
    }
    
    .sidebar-column {
        display: none !important;
    }
    
    .content-column {
        padding: 15px;
    }
    
    .hamburger-container {
        display: block !important;
    }
    
    .floating-sidebar-menu {
        display: block !important;
    }
}

/* Desktop: ≥1025px */
@media (min-width: 1025px) {
    .hamburger-container {
        display: none !important;
    }
    
    .floating-sidebar-menu {
        display: none !important;
    }
    
    .sidebar-column {
        display: block !important;
    }
}

/* ========================================
   LEGACY BOOTSTRAP OVERRIDES (IF NEEDED)
======================================== */
@media (min-width: 1025px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .container .row {
        margin-left: -15px;
        margin-right: -15px;
    }
}

/* ========================================
   IMPLEMENTATION EXAMPLES STYLING
======================================== */
.implementation-examples {
    margin: 20px 0;
}

.example-section {
    margin-bottom: 20px;
}

.example-header {
    margin: 0 0 10px 0;
    padding: 8px 0;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    border-bottom: 1px solid #eee;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.example-header:hover {
    color: #0056b3;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.chevron {
    font-size: 12px;
    color: #666;
    margin-right: 8px;
    display: inline-block;
    transition: transform 0.2s ease;
}

.example-content {
    padding: 0;
}

.example-content pre {
    margin: 0;
    padding: 15px;
    background-color: #f8f8f8;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow-x: auto;
}

.example-content code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.4;
}

/* ===========================================
   MENU HIGHLIGHTING - HIGHEST SPECIFICITY 
   (Must be at end of file to override defaults)
=========================================== */
html body .sidenav .current-page > a,
html body .sidenav .current-page a,
html body .sidenav a.current,
html body .sidenav li.current-page > a,
html body .sidenav li.current-page a,
html body .floating-sidebar-menu .sidenav .current-page > a,
html body .floating-sidebar-menu .sidenav .current-page a,
html body .floating-sidebar-menu .sidenav a.current,
html body .floating-sidebar-menu .sidenav li.current-page > a,
html body .floating-sidebar-menu .sidenav li.current-page a,
html body .traditional-sidebar .sidenav .current-page > a,
html body .traditional-sidebar .sidenav .current-page a,
html body .traditional-sidebar .sidenav a.current,
html body .traditional-sidebar .sidenav li.current-page > a,
html body .traditional-sidebar .sidenav li.current-page a {
    font-weight: bold !important;
    background-color: #f8f9fa !important;
    color: #09305a !important; /* Navy blue */
    text-decoration: none !important;
    opacity: 1 !important;
}