/* ==========================================================
   UrbanPets Operations
   Main Application Styles
   ========================================================== */

html,
body {
    height: 100%;
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ==========================================================
   Sidebar
   ========================================================== */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 265px;
    height: 100vh;
    overflow-y: auto;
    z-index: 1030;

    background: #1f2328;
    color: #ffffff;

    padding: 20px;

    display: flex;
    flex-direction: column;

    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.10);
}

main.flex-grow-1 {
    margin-left: 250px;
}

.logo {
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #343a40;
}

.logo img {
    max-width: 200px;
    height: auto;
    display: block;
}

/* ==========================================================
   Navigation
   ========================================================== */

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar a {
    color: #d0d7de;
    text-decoration: none;

    padding: 8px 12px;

    border-radius: 8px;

    transition: all 0.2s ease;
}

.sidebar a:hover {
    background: #30363d;
    color: #ffffff;
}

.sidebar a.active {
    background: #0d6efd;
    color: #ffffff;
    font-weight: 600;
}

/* ==========================================================
   Top Bar
   ========================================================== */

.topbar {
    height: 60px;

    background: #ffffff;

    border-bottom: 1px solid #dee2e6;

    display: flex;
    align-items: center;

    padding: 0 25px;

    font-size: 22px;
    font-weight: 600;
}

/* ==========================================================
   Content
   ========================================================== */

.content {
    padding: 30px;
    background: #f3f5f7;
    min-height: calc(100vh - 60px);
}

.content h1 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 25px;
}

/* ==========================================================
   Cards
   ========================================================== */

.card {
    border: none;
    border-radius: 10px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.card h2 {

    font-size: 42px;

    font-weight: 700;

    margin-bottom: 0;

}

.card h6 {

    text-transform: uppercase;

    letter-spacing: 1px;

    font-size: 12px;

}

/* ==========================================================
   Sidebar toggle
   One class on <body>, "sidebar-toggled", flips the sidebar's
   visibility - but what that means depends on screen size:
   desktop's default is visible (toggled = hidden, giving back
   the 250px to content), mobile's default is off-canvas
   (toggled = slid into view over an overlay). Neither media
   query needs JS to know which mode it's in.
   ========================================================== */

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    margin-right: 15px;
    color: #1f2328;
    padding: 4px 8px;
    border-radius: 6px;
}

.sidebar-toggle:hover {
    background: #f3f5f7;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1040;
}

/* Desktop/tablet: sidebar is part of the normal flex row by default */
@media (min-width: 769px) {
    body.sidebar-toggled .sidebar {
        display: none;
    }

    body.sidebar-toggled main.flex-grow-1 {
        margin-left: 0;
    }
}

/* Mobile: sidebar is off-canvas by default, slides in over the content */
@media (max-width: 768px) {

    .sidebar {
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }

    main.flex-grow-1 {
        margin-left: 0;
    }

    body.sidebar-toggled .sidebar {
        transform: translateX(0);
    }

    body.sidebar-toggled .sidebar-overlay {
        display: block;
    }

}

/* ==========================================================
   Sidebar nav divider
   Separates internal dashboard links from external tools -
   same color already used for the logo's own bottom border.
   ========================================================== */

.sidebar-divider {
    border: none;
    border-top: 1px solid #495057;
    opacity: 1;
    margin: 16px 0;
}