html {
  font-size: 14px;
}

@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;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Admin Panel Styles */

/* Sidebar */
.sidebar {
    min-height: 100vh;
    width: 14rem;
    transition: margin-left 0.15s ease-in-out;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
    font-weight: 500;
    border-radius: 0.35rem;
    margin: 0 0.5rem;
}

.sidebar .nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
}

.sidebar .nav-link i {
    margin-right: 0.5rem;
    width: 1rem;
    text-align: center;
}

.sidebar-brand {
    height: 4.375rem;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 800;
    padding: 1.5rem 1rem;
    text-align: center;
    letter-spacing: 0.05rem;
    z-index: 1;
}

.sidebar-brand .sidebar-brand-icon {
    font-size: 2rem;
}

.sidebar-brand .sidebar-brand-text {
    display: inline;
}

.sidebar-divider {
    margin: 0 1rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar-heading {
    color: rgba(255, 255, 255, 0.4);
    text-align: left;
    padding: 0 1rem;
    font-weight: 800;
    font-size: 0.65rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
}

.sidebar .sidebar-toggle {
    width: 2.5rem;
    height: 2.5rem;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.5);
}

.sidebar .sidebar-toggle:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

/* Content Wrapper */
#content-wrapper {
    min-height: 100vh;
    margin-left: 14rem;
    transition: margin-left 0.15s ease-in-out;
}

/* Topbar */
.topbar {
    height: 4.375rem;
}

.topbar .navbar-search {
    width: 20rem;
}

.topbar .topbar-divider {
    width: 0;
    border-right: 1px solid #e3e6f0;
    height: 2rem;
    margin: auto 1rem;
}

.topbar .dropdown-list {
    padding: 0;
    border: none;
    border-radius: 0.35rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.topbar .dropdown-list .dropdown-header {
    background-color: #4e73df;
    border: 1px solid #4e73df;
    padding-top: 1rem;
    padding-bottom: 1rem;
    color: #fff;
}

.topbar .dropdown-list .dropdown-item {
    white-space: normal;
    border-top: 1px solid #e3e6f0;
    line-height: 1.3rem;
}

.topbar .dropdown-list .dropdown-item .icon-circle {
    height: 2.5rem;
    width: 2.5rem;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.topbar .dropdown-list .dropdown-item .text-truncate {
    max-width: 13.375rem;
}

.topbar .dropdown-list .dropdown-item:active,
.topbar .dropdown-list .dropdown-item:hover,
.topbar .dropdown-list .dropdown-item:focus {
    background-color: #eaecf4;
}

/* Cards */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid #e3e6f0;
    border-radius: 0.35rem;
}

.card-header {
    padding: 0.75rem 1.25rem;
    margin-bottom: 0;
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
}

.card-header:first-child {
    border-radius: calc(0.35rem - 1px) calc(0.35rem - 1px) 0 0;
}

.card-body {
    flex: 1 1 auto;
    padding: 1.25rem;
}

/* Border utilities */
.border-left-primary {
    border-left: 0.25rem solid #4e73df !important;
}

.border-left-success {
    border-left: 0.25rem solid #1cc88a !important;
}

.border-left-info {
    border-left: 0.25rem solid #36b9cc !important;
}

.border-left-warning {
    border-left: 0.25rem solid #f6c23e !important;
}

.border-left-danger {
    border-left: 0.25rem solid #e74a3b !important;
}

/* Text utilities */
.text-gray-100 {
    color: #f8f9fc !important;
}

.text-gray-200 {
    color: #eaecf4 !important;
}

.text-gray-300 {
    color: #dddfeb !important;
}

.text-gray-400 {
    color: #d1d3e2 !important;
}

.text-gray-500 {
    color: #b7b9cc !important;
}

.text-gray-600 {
    color: #858796 !important;
}

.text-gray-700 {
    color: #6e707e !important;
}

.text-gray-800 {
    color: #5a5c69 !important;
}

.text-gray-900 {
    color: #3a3b45 !important;
}

/* Font weight utilities */
.font-weight-light {
    font-weight: 300 !important;
}

.font-weight-lighter {
    font-weight: lighter !important;
}

.font-weight-normal {
    font-weight: 400 !important;
}

.font-weight-bold {
    font-weight: 700 !important;
}

.font-weight-bolder {
    font-weight: bolder !important;
}

/* Badge utilities */
.badge {
    display: inline-block;
    padding: 0.25em 0.4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.35rem;
}

.badge-primary {
    color: #fff;
    background-color: #4e73df;
}

.badge-success {
    color: #fff;
    background-color: #1cc88a;
}

.badge-info {
    color: #fff;
    background-color: #36b9cc;
}

.badge-warning {
    color: #fff;
    background-color: #f6c23e;
}

.badge-danger {
    color: #fff;
    background-color: #e74a3b;
}

.badge-secondary {
    color: #fff;
    background-color: #858796;
}

.badge-light {
    color: #3a3b45;
    background-color: #f8f9fc;
}

.badge-dark {
    color: #fff;
    background-color: #5a5c69;
}

/* Button utilities */
.btn-primary {
    color: #fff;
    background-color: #4e73df;
    border-color: #4e73df;
}

.btn-primary:hover {
    color: #fff;
    background-color: #2e59d9;
    border-color: #2653d4;
}

.btn-success {
    color: #fff;
    background-color: #1cc88a;
    border-color: #1cc88a;
}

.btn-success:hover {
    color: #fff;
    background-color: #17a673;
    border-color: #169b6b;
}

.btn-info {
    color: #fff;
    background-color: #36b9cc;
    border-color: #36b9cc;
}

.btn-info:hover {
    color: #fff;
    background-color: #2c9faf;
    border-color: #2a96a5;
}

.btn-warning {
    color: #fff;
    background-color: #f6c23e;
    border-color: #f6c23e;
}

.btn-warning:hover {
    color: #fff;
    background-color: #f4b30d;
    border-color: #f4b30d;
}

.btn-danger {
    color: #fff;
    background-color: #e74a3b;
    border-color: #e74a3b;
}

.btn-danger:hover {
    color: #fff;
    background-color: #e02e1e;
    border-color: #d52a1d;
}

/* Shadow utilities */
.shadow {
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15) !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem 0 rgba(58, 59, 69, 0.2) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem 0 rgba(58, 59, 69, 0.175) !important;
}

/* Background gradient utilities */
.bg-gradient-primary {
    background-color: #4e73df;
    background-image: linear-gradient(180deg, #4e73df 10%, #224abe 100%);
    background-size: cover;
}

.bg-gradient-success {
    background-color: #1cc88a;
    background-image: linear-gradient(180deg, #1cc88a 10%, #13855c 100%);
    background-size: cover;
}

.bg-gradient-info {
    background-color: #36b9cc;
    background-image: linear-gradient(180deg, #36b9cc 10%, #258391 100%);
    background-size: cover;
}

.bg-gradient-warning {
    background-color: #f6c23e;
    background-image: linear-gradient(180deg, #f6c23e 10%, #dda20a 100%);
    background-size: cover;
}

.bg-gradient-danger {
    background-color: #e74a3b;
    background-image: linear-gradient(180deg, #e74a3b 10%, #be2617 100%);
    background-size: cover;
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    text-align: center;
    color: #fff;
    background: rgba(90, 92, 105, 0.5);
    line-height: 2.75rem;
    border-radius: 50%;
    z-index: 1000;
}

.scroll-to-top:hover {
    background: rgba(90, 92, 105, 0.8);
    color: #fff;
}

.scroll-to-top.show {
    display: block;
}

/* Responsive utilities */
@media (min-width: 768px) {
    .sidebar {
        margin-left: 0;
    }
    
    .sidebar.toggled {
        margin-left: -14rem;
    }
    
    #content-wrapper {
        margin-left: 0;
    }
    
    #content-wrapper.toggled {
        margin-left: -14rem;
    }
}

@media (max-width: 767.98px) {
    .sidebar {
        margin-left: -14rem;
    }
    
    .sidebar.toggled {
        margin-left: 0;
    }
    
    #content-wrapper {
        margin-left: 0;
    }
    
    #content-wrapper.toggled {
        margin-left: 0;
    }
}

/* Table styles */
.table-responsive {
    overflow-x: auto;
}

.table th {
    border-top: none;
    border-bottom: 2px solid #e3e6f0;
    font-weight: 700;
    color: #5a5c69;
}

.table td {
    vertical-align: middle;
}

/* Form styles */
.form-control:focus {
    border-color: #bac8f3;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.form-select:focus {
    border-color: #bac8f3;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

/* Alert styles */
.alert {
    border: none;
    border-radius: 0.35rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Pagination styles */
.pagination .page-link {
    color: #4e73df;
    background-color: #fff;
    border: 1px solid #e3e6f0;
}

.pagination .page-link:hover {
    color: #2e59d9;
    background-color: #eaecf4;
    border-color: #e3e6f0;
}

.pagination .page-item.active .page-link {
    background-color: #4e73df;
    border-color: #4e73df;
}

.pagination .page-item.disabled .page-link {
    color: #858796;
    background-color: #fff;
    border-color: #e3e6f0;
}