/* ========== Global Link Style ========== */
a {
    color: #333;
    text-decoration: none;
}

body.dark-mode a {
    color: #fff;
}

/* ========== Bottom Navbar Base ========== */
.bottom-navbar {
    position: fixed;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
    border-radius: 30px 30px 0 0;
    padding: 10px 0;
    z-index: 9999;
    opacity: 1;
    transition: 
        opacity 0.3s ease-in-out,
        transform 0.3s ease-in-out,
        background 0.3s ease-in-out,
        color 0.3s ease-in-out;
}

/* Buttons */
.bottom-navbar button {
    width: 60px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    border-radius: 20px;
    transition: all .25s ease;
}

.bottom-navbar button:active:not(.float) {
    transform: scale(1.2);
}

/* Floating center button */
.bottom-navbar button.float {
    margin-top: -50px;
    background: rgb(232, 76, 79);
    color: #fff;
    border-radius: 25px;
    height: 60px;
    box-shadow: 0 10px 20px 0 rgba(232, 76, 79, .4);
}

.bottom-navbar button.float:hover {
    background: rgb(230, 51, 54);
    color: #fff;
}

.bottom-navbar button.float:active {
    transform: scale(0.95);
    box-shadow: 0 6px 12px 0 rgba(232, 76, 79, .6);
}

/* Active state */
.bottom-navbar button.active {
    color: rgb(232, 76, 79);
}

/* Icon style */
.bottom-navbar button i {
    font-size: 1.5rem;
    pointer-events: none;
}

/* Hover (default) */
.bottom-navbar button:hover {
    background: #f5f2f2;
}

/* Hidden state */
.bottom-navbar.hidden {
    opacity: 0;
    transform: translateY(100%);
    visibility: hidden;
}

/* Link in button inherit color */
.bottom-navbar button a {
    color: inherit;
    text-decoration: none;
}

/* Effect container */
.con-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.effect {
    background: rgba(232, 76, 79, .15);
    width: 60px;
    height: 50px;
    position: absolute;
    left: 13px;
    border-radius: 18px;
}

.bottom-navbar button i.fa {
    font-size: 18px;
}

/* ========== THEME MODE ========== */
body.light-mode .bottom-navbar {
    background: #fff !important;
    color: #333 !important;
    box-shadow: 0 0 30px 0 rgba(0, 0, 0, .05);
}

body.dark-mode .bottom-navbar {
    background: #121212 !important;
    color: #f1f1f1 !important;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, .6);
}

/* Hover ikut theme */
body.light-mode .bottom-navbar button:hover {
    background: #f5f2f2;
}
body.dark-mode .bottom-navbar button:hover {
    background: #333;
}

/* Active button ikut theme */
body.light-mode .bottom-navbar button.active {
    color: rgb(232, 76, 79);
}
body.dark-mode .bottom-navbar button.active {
    color: rgb(232, 76, 79);
}
