body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f8f9fa;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    max-height: 50px; /* Constrain logo height to fit navbar */
	width: auto; /* Maintain aspect ratio */
    vertical-align: middle;
}

.sidebar {
    width: 250px;
    height: calc(100vh - 56px);
    position: fixed;
    top: 56px;
    left: 0;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar .nav.flex-column {
    padding-top: 1rem;
}

.offcanvas-body .nav.flex-column {
    padding-top: 1rem;
}

main {
    padding-top: 70px;
}

.content-area {
    min-height: calc(100vh - 56px);
    margin-left: 250px;
    padding-top: 50px;
}

@media (max-width: 991.98px) {
    .sidebar {
        width: 100%;
        top: 56px;
    }
    .content-area {
        margin-left: 0;
        padding-top: 20px;
    }
    main {
        padding-top: 20px;
    }
}

.nav-link {
    transition: background-color 0.3s, padding-left 0.3s;
}

.nav-link:hover {
    background-color: #495057;
    padding-left: 1.5rem;
}

.card {
    border: none;
    border-radius: 0.5rem;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #0b5ed7;
}

.table-hover tbody tr:hover {
    background-color: #f1f3f5;
}

.collapse.show {
    transition: height 0.3s ease;
}

.nav-item .nav-link.fw-bold {
    cursor: pointer;
}

.submenu-toggle {
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.nav-item .show .submenu-toggle {
    transform: rotate(180deg);
}

.g-recaptcha {
    margin-bottom: 1rem;
}

.table th, .table td {
    vertical-align: middle;
}

.modal-content {
    border-radius: 0.5rem;
    will-change: transform;
    backface-visibility: hidden;
}

.modal-dialog {
    max-width: 600px;
    z-index: 1060;
}

.modal-body {
    padding: 1.5rem;
}

.modal {
    z-index: 1060;
}

.modal-backdrop {
    z-index: 1050;
    pointer-events: none;
}

.modal-content:hover {
    transform: none;
}

.form-control {
    pointer-events: auto;
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    z-index: 1061;
}

.btn-close {
    pointer-events: auto;
}

.btn-close:hover {
    opacity: 0.5;
}

.btn-close:focus {
    box-shadow: none;
    outline: none;
}

/* Disable modal animations */
.modal.fade .modal-dialog {
    transition: none;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
}
.sidebar .nav-link i.fas {
    margin-right: 0.5rem;
    width: 1.5rem;
}
.sidebar .bi-chevron-down {
    font-size: 1rem;
    color: #ffffff !important;
    transition: transform 0.2s ease-in-out;
    display: inline-block;
}
.sidebar .bi-chevron-down.show {
    transform: rotate(180deg);
}
.sidebar .collapse .nav-link {
    padding-left: 2rem;
}
/* Ensure CKEditor renders correctly */
.ck-editor__editable {
    min-height: 400px;
    margin: 0;
    position: relative;
}

/* Prevent stacking */
.ck-editor {
    display: block;
    margin-bottom: 1rem;
}

/* Sidebar chevrons */
.submenu-toggle.show {
    transform: rotate(-180deg);
}
/* Logo preview styling */
.logo-preview {
    background-color: #e9ecef; /* Light gray background for visibility */
    padding: 10px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 10px;
}