@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

*,
::after,
::before {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background: linear-gradient(to bottom right, #fff9e5, #fff2c1);
    background-repeat: no-repeat;
    background-size: cover;
    color: #181201;
}

/* Headings */
h3 {
    font-size: 1.2375rem;
    color: #181201;
}

/* Links */
a {
    cursor: pointer;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

li {
    list-style: none;
}

/* Layout Skeleton */
.wrapper {
    display: flex;
    align-items: stretch;
    width: 100%;
}

/* Sidebar */
#sidebar {
    min-width: 250px;
    max-width: 250px;
    background: linear-gradient(to bottom, #f8c315, #fcd764);
    color: #181201;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.2);
    transition: all 0.35s ease-in-out;
    z-index: 1111;
    font-family: 'Poppins', sans-serif;
    padding-top: 1rem;
    /* border-top-right-radius: 15px;
    border-bottom-right-radius: 15px; */
}

#sidebar.collapsed {
    margin-left: -264px;
}

/* Sidebar Logo */
.sidebar-logo {
    padding: 0.25rem 1rem;
}

.sidebar-logo a {
    font-size: 2rem;
    font-weight: 600;
    color: #181201;
    text-decoration: none;
}

/* Sidebar Nav */
.sidebar-nav {
    padding: 0;
}

.sidebar-header {
    color: #181201;
    font-size: 1.15rem;
    padding: 1.5rem 1.5rem 0.375rem;
}

/* Sidebar Links */
a.sidebar-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #181201;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    /* font-weight: 500; */
    border-radius: 0.5rem;
    margin: 0.25rem 0.5rem;
    transition: all 0.3s ease;
    background-color: transparent;
}

a.sidebar-link:hover {
    background-color: #fff3cd;
    color: #000;
    transform: translateX(4px);
    box-shadow: 0 0 10px #f8c315, 0 0 20px #f8c315;
}

a.sidebar-link.active {
    background-color: #fdeaa6;
    color: #000;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(255, 204, 0, 0.5);
}

.sidebar-link[data-bs-toggle="collapse"]::after {
    border: solid;
    border-width: 0 0.075rem 0.075rem 0;
    content: "";
    display: inline-block;
    padding: 2px;
    position: absolute;
    right: 1.5rem;
    top: 1.4rem;
    transform: rotate(-135deg);
    transition: all 0.2s ease-out;
}

.sidebar-link[data-bs-toggle="collapse"].collapsed::after {
    transform: rotate(45deg);
}

.sidebar-link i {
    color: #444;
    min-width: 20px;
    transition: transform 0.3s ease, color 0.3s ease;
}

a.sidebar-link:hover i {
    color: #000;
}

/* Main Area */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #fffdf4;
    transition: all 0.35s ease-in-out;
}

.content {
    flex: 1;
    max-width: 100vw;
    width: 100vw;
}

.bg-custom {
    background-color: #fffdf4 !important;
}

.main-custom {
    margin-top: 0px;
    margin-right: 15px;
    background-color: #fffdf4;
    padding: 1rem;
    animation: fadeIn 0.6s ease-in-out;
}

/* Buttons */
button,
.btn {
    /* color: white; */
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

button:hover,
.btn:hover {
    background-color: #deac07;
    transform: scale(1.05);
}

/* Custom Card */
.custom-card-bg {
    background: linear-gradient(to bottom, #fff3cd, #ffeeba);
    color: #4a3903;
    font-size: 1rem;
    font-weight: bold;
    border: 0;
    box-shadow: 1px 1px 6px #000000;
}

/* Animations */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
footer {
    background: #fff8e1;
    text-align: center;
    padding: 0.75rem;
    font-weight: bold;
}

/* Responsive */
@media (min-width: 768px) {
    main {
        margin-left: 15px !important;
    }

    .content {
        width: auto;
    }
}

@media (max-width: 768px) {
    main {
        margin-left: 15px;
    }

    .content {
        width: auto;
    }
}

/* Navbar Themes */
.navbar-theme {
    background-color: var(--navbar-bg);
    color: var(--navbar-text);
}

body[data-theme="light"] {
    --navbar-bg: #fff8e1;
    --navbar-text: #181201;
}

body[data-theme="dark"] {
    --navbar-bg: #1f1f1f;
    --navbar-text: #f8f9fa;
}