diff --git a/resources/views/admin/layouts/app.blade.php b/resources/views/admin/layouts/app.blade.php index 5481de3..41ecb22 100644 --- a/resources/views/admin/layouts/app.blade.php +++ b/resources/views/admin/layouts/app.blade.php @@ -17,6 +17,7 @@ font-family: 'Inter', Arial, sans-serif; display: flex; flex-direction: row; + transition: all 0.3s ease-in-out; } /* ✨ Sidebar Glass + Animated Highlight Effect */ @@ -36,7 +37,13 @@ position: fixed; top: 0; left: 0; - + } + + /* Sidebar collapsed state */ + .sidebar.collapsed { + transform: translateX(-100%); + opacity: 0; + visibility: hidden; } .sidebar .logo { @@ -73,7 +80,6 @@ overflow: hidden; transition: all 0.25s ease; z-index: 0; - } /* Background Animation */ @@ -151,6 +157,39 @@ flex-direction: column; width: calc(100vw - 190px); margin-left: 190px; + transition: all 0.3s ease-in-out; + } + + /* Main content when sidebar is collapsed */ + .main-content.expanded { + margin-left: 0; + width: 100vw; + } + + /* Header hamburger button */ + .header-toggle { + background: transparent; + border: none; + cursor: pointer; + padding: 8px; + margin-right: 15px; + display: flex; + align-items: center; + justify-content: center; + transition: transform 0.3s ease; + width: 40px; + height: 40px; + border-radius: 8px; + } + + .header-toggle:hover { + transform: scale(1.1); + background: rgba(43, 92, 182, 0.1); + } + + .header-toggle i { + font-size: 1.6rem; + color: #2b5cb6; } header { @@ -165,6 +204,11 @@ box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); } + .header-left { + display: flex; + align-items: center; + } + .content-wrapper { padding: 18px 16px 16px 16px; flex-grow: 1; @@ -222,16 +266,16 @@ Staff Account Mark List - -