﻿/*html {
  font-size: 20px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}
*/

html {
    font-size: 16px !important;
    position: relative !important;
    min-height: 100% !important;
    scroll-behavior: smooth !important;
    /*background-color: #212529 !important;*/
}

@media (max-width: 768px) {
    html {
        font-size: 14px !important;
    }
}

body {
    margin: 0 !important;
    padding-top: 70px !important; /* space for top navbar */
    padding-bottom: 80px !important; /* space for sticky footer */
    background-color: #212529 !important;
    color: #f8f9fa !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

/* ✅ Top Navbar */
.navbar {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
    background-color: #212529 !important;
}

.navbar-brand img {
    height: 40px !important;
    width: 40px !important;
    border-radius: 50% !important;
    margin-right: 10px !important;
}

/* ✅ Sidebar */
.sidebar {
    height: 100vh !important;
    position: fixed !important;
    top: 70px !important; /* below navbar */
    left: 0 !important;
    width: 240px !important;
    background-color: #212529 !important;
    padding-top: 20px !important;
    overflow-y: auto !important;
    transition: all 0.3s ease !important;
    z-index: 1030 !important;
}

    /* Keep image styling same as original */
    .sidebar .img-fluid.rounded-lg {
        max-width: 100% !important;
        height: auto !important;
        border-radius: .3rem !important; /* same as Bootstrap rounded-lg */
    }

    .sidebar .nav-link {
        color: #adb5bd !important;
        font-weight: 500 !important;
        transition: color 0.2s ease, background-color 0.2s ease !important;
        border-radius: 8px !important;
        margin: 3px 10px !important;
        padding: 10px 15px !important;
    }

        .sidebar .nav-link:hover,
        .sidebar .nav-link.active {
            background-color: #343a40 !important;
            color: #ffffff !important;
        }

/* ✅ Main Content */
main {
    margin-left: 250px !important; /* space for sidebar */
    padding: 20px !important;
    transition: margin-left 0.3s ease !important;
    background-color: #212529 !important;
    color: #f8f9fa !important;
}

/* ✅ Sticky Footer */
footer {
    bottom: 0 !important;
    width: 100% !important;
    background-color: #212529 !important;
    color: #f8f9fa !important;
    text-align: center !important;
    padding: 15px 0 !important;
    z-index: 1000 !important;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.2) !important;
}

/* ✅ Focus styles */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb !important;
}

/* ✅ Responsive adjustments */
@media (max-width: 992px) {
    .sidebar {
        position: relative !important;
        height: auto !important;
        width: 100% !important;
        top: 0 !important;
    }

    main {
        margin-left: 0 !important;
    }
}
