/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* COLORS */
:root {
    --backgroud: #222222;
    --primary-text: #FFFFFF;
    --sidebar-backgroud: #333333;
}

[data-theme='light']{
    --backgroud: #CACACA;
    --primary-text: #000000;
    --sidebar-backgroud: #7d7d7d;
}

/* Body */
body {
    font-family: 'Rubik', sans-serif;
    background: var(--backgroud);
    transition: all 0.5s ease;
}

/* SIDEBAR */
.sidebar {
    height: 100vh;
    width: 300px;
    top: 0;
    left: 0;
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 7.25px 12.5px;
    background-color: var(--sidebar-backgroud);
    color: var(--primary-text);
    transition: width 0.7s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.7s ease-in-out;
    z-index: 100;
}

.sidebar.closed {
    width: 75px;
}

/* Horizontal lines animation */
.sidebar #horizontal-line-top,
.sidebar #horizontal-line-bottom {
    color: var(--primary-text);
    background: var(--primary-text);
    width: calc(100% - 12.5%);
    height: 2px;
    position: absolute;
    transition: width 0.7s ease-in-out;
}

.sidebar #horizontal-line-top {
    top: 12%;
}

.sidebar #horizontal-line-bottom {
    bottom: 10%;
}

.sidebar.closed #horizontal-line-top,
.sidebar.closed #horizontal-line-bottom {
    width: calc(100% - 25px);
}

/* SIDEBAR - TOP */
.sidebar .top {
    display: flex;
    flex-direction: row;
    height: 75px;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.7s ease-in-out;
}

.sidebar .top .header {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.sidebar .top .header #logo {
    height: 50px;
    border-radius: 10px;
    transition: transform 0.7s ease-out;
}

.sidebar .top .header #title {
    margin: 12.5px;
    font-size: 1.5rem;
    opacity: 1;
    transition: opacity 0.7s ease-out;
}

.sidebar .top #menu-btn {
    cursor: pointer;
    user-select: none;
    margin-right: 12.5px;
    transition: transform 0.5s ease, color 0.5s ease;
}

.sidebar.closed .top {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.sidebar .top .header.remove {
    display: none;
}

.sidebar.closed .top #menu-btn {
    margin-right: 0;
}

.sidebar .top #menu-btn:hover {
    transform: scale(1.2);
    color: #ffbb33;
}

/* SIDEBAR - MIDDLE */
.sidebar .middle .navbar {
    display: flex;
    flex-direction: column;
}

.sidebar .middle .navbar li {
    list-style: none;
    color: var(--primary-text);
    background: none;
    padding: 7.25px;
    margin-bottom: 2.5px;
    transition: all 0.25s ease-in-out, transform 0.3s ease-in-out;
}

.sidebar .middle .navbar li a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 20px;
}

.sidebar .middle .navbar li a span#navlink_name {
    margin-left: 12.5px;
}

.sidebar .middle .navbar li a span.material-symbols-outlined {
    font-size: 32px;
}

.sidebar .middle .navbar li:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    transform: translateX(10px);
}

.sidebar.closed .middle .navbar li {
    width: calc(32px + 12.5px);
}

/* SIDEBAR - BOTTOM */
.sidebar .bottom {
    height: 50px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.5s ease-out;
}

.sidebar .bottom #theme-btn {
    height: 45px;
    width: 45px;
    padding: 10px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-size: 24px;
    background-color: #444444;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease, transform 0.3s ease-out;
    cursor: pointer;
}

.sidebar .bottom #theme-btn:hover {
    background-color: #666666;
    transform: scale(1.1) rotate(15deg);
}

.sidebar.closed .bottom #theme-btn {
    display: none;
}

.sidebar .bottom #login-btn {
    margin-right: 20px;
    padding: 12.5px 12.5px;
    background: #22AA33;
    color: var(--primary-text);
    font-size: 16px;
    font-weight: bold;
    border-radius: 25px;
    transition: all 0.5s ease, transform 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.sidebar .bottom #login-btn:hover {
    background-color: #167e23;
    transform: scale(1.1) translateY(-5px);
}

