
:root {
    --primary-color: #4e73df;
    --secondary-color: #224abe;
    --accent-color: #36b9cc;
    --light-bg: #f8f9fc;
}

body {
    background-color: var(--light-bg);
    font-family: 'Nunito', sans-serif;
}

.auth-container {
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    border-radius: 0.35rem;
    background: white;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.auth-tabs .nav-link {
    color: #858796;
    border: none;
    padding: 1rem 1.5rem;
}

.auth-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    background: transparent;
    font-weight: bold;
}

.divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.divider::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #e3e6f0;
    z-index: 1;
}

.divider-text {
    background: white;
    position: relative;
    z-index: 2;
    padding: 0 1rem;
    color: #858796;
}

.completed {
  text-align: center;
}

.completed h3 {
  margin-bottom: 8px;
}

.completed svg {
  width: 100px;
  height: 100px;
  stroke: yellowgreen;
}

.completed:not([hidden]) ~ * {
  display: none;
}

/* ---------- Layout ---------- */
.wrapper {
    display: flex;
    align-items: stretch;
    min-height: calc(100vh - 60px);
}

/* ---------- Sidebar (Desktop) ---------- */
#sidebar {
    width: 250px;
    min-width: 250px;
    background: #39b77e;
    color: #272d38;
    padding: 10px;
    border-right: 1px solid #e5e5e5;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}

/* Hide scrollbar */
#sidebar::-webkit-scrollbar {
    display: none;
}

/* ---------- Sidebar Links ---------- */
#sidebar ul.components {
    padding: 20px 0;
}

#sidebar ul li a {
    display: block;
    padding: 12px 15px;
    margin-bottom: 6px;
    font-size: 1.05em;
    color: #272d38;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

#sidebar ul li a i {
    margin-right: 10px;
}

/* Hover & Active */
#sidebar ul li a:hover {
    background: #2792ef;
    color: #ffffff;
}

#sidebar ul li.active > a,
#sidebar ul li a.active {
    background: #05857645;
    color: #ffffff;
}

/* ---------- Content ---------- */
#content {
    flex-grow: 1;
    padding: 15px;
    min-height: calc(100vh - 60px);
    background: #f8f9fa;
}

/* ---------- Mobile Offcanvas Styling ---------- */
.offcanvas {
    background: #39b77e;
    color: #272d38;
}

.offcanvas .components li a {
    color: #272d38;
    padding: 15px;
    display: block;
    border-radius: 8px;
}

.offcanvas .components li a:hover {
    background: #2792ef;
    color: #ffffff;
}

/* ---------- Remove desktop sidebar on mobile ---------- */
@media (max-width: 991.98px) {
    #sidebar {
        display: none;
    }
}

#sidebar a,
.offcanvas a {
    text-decoration: none !important;
}
