/* CUSTOM */
:root {
    --theme-color: #7826e7;
    --theme-bg: #212529;
    --theme-text: #f9f9f9;
}

.bg-theme-color {
    background: var(--theme-color) !important;
}

.text-theme-color {
    color: var(--theme-color);
}

.theme-bg {
    background: var(--theme-bg) !important;
}

html,
body {
    height: 100%;
    margin: 0;
    background-color: #f2f2f2;
}

#BackgroundArea {
    background-color: rgba(128, 128, 128, 0.3);
    height: 100%;
    width: 100%;
    /* position: absolute; */
    top: 0;
    left: 0;
}

#ImagePreview {
    z-index: 1;
    max-height: 100%;
    width: 50%;
    /* height: 100%; */
    object-fit: contain;
    padding: 10px;
    color: gray;
}

img:not([src]),
img[src=""] {
    display: none;
}

/* Image Logo Preview Website List */
.image-preview {
    z-index: 1;
    max-height: 100%;
    width: 50%;
    /* height: 100%; */
    object-fit: contain;
    padding: 10px;
    color: gray;
}

/* @media (max-width: 768px) {
    #ImagePreview {
        max-width: 100%;
    }
}

@media (min-width: 769px) {
    #BackgroundArea {
        position: absolute;
    }
} */

input[type="file"]::file-selector-button {
    color: black !important;
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    padding-bottom: 12px;
    cursor: pointer;
}

input[type="file"]::file-selector-button:hover {
    background-color: #e2e6ea;
}

.menu-card:hover,
.menu-card:focus {
    box-shadow: 0 0 0 0.2rem #0d6efd40;
    transform: translateY(-4px) scale(1.03);
    transition: box-shadow 0.2s, transform 0.2s;
    background: #f0f8ff;
}

.create-website-card:hover {
    box-shadow: 0 0 0 0.2rem #0d6efd33;
    border-color: #0d6efd;
    background: #f0f8ff;
    transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
}

.create-website-card:hover .card-title,
.create-website-card:hover .mdi-plus {
    color: #0d6efd !important;
}

.col-form-label {
    font-size: 1rem !important;
}

.title-break {
    word-break: break-word;
    white-space: normal;
}

/* Bottom Menu Mobile */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-top: 1px solid #dee2e6;
    z-index: 1030;
}

.bottom-nav a {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 0.75rem;
    color: #6c757d;
    text-decoration: none;
}

.bottom-nav a.active {
    color: var(--theme-color);
    font-weight: 600;
}

.bottom-nav i {
    font-size: 1.25rem;
    display: block;
}

.bg-theme {
    background-color: #1c2631;
}

/* Sidebar */
.sidebar {
    height: 100vh;
    background-color: white;
    color: black;
    transition: width 0.3s;
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar.expanded {
    width: 250px;
}

.sidebar .nav-link {
    color: #374049;
    font-weight: 500;
    font-size: 1rem;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

.sidebar .nav-link span {
    display: inline-block;
    opacity: 1;
    width: auto;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.3s ease, width 0.3s ease;
}

.sidebar.collapsed .nav-link span {
    opacity: 0;
    width: 0;
}

.sidebar .nav-item.active {
    background-color: #d4baf7;
    border-left: 0.3rem solid var(--theme-color);
}

.sidebar .nav-item.active .nav-link {
    padding-left: 1.2rem;
}

/* .sidebar .nav-item.active,
.sidebar .nav-item.active * {
  color: black !important;
} */

.content-wrapper {
    transition: margin-left 0.3s;
    width: 100%;
}

.content-wrapper.expanded {
    margin-left: 250px;
}

.content-wrapper.collapsed {
    margin-left: 70px;
}

.sidebar .toggle-btn {
    background: none;
    border: none;
    color: white;
    width: 100%;
    text-align: left;
}

.main-panel {
    height: 100%;
    padding: 1rem 3rem;
    padding-bottom: 5rem;
    width: 100%;
    background-color: #f2f2f2;
}

.page-header {
    padding: 1rem 1rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

/* Bootstrap Overide */
.btn {
    padding-top: 0.30rem;
    padding-bottom: 0.35rem;
}

label {
    font-weight: 500;
    margin-left: 0.20rem;
    margin-bottom: 0.3rem;
}

.form-group {
    margin-bottom: 2rem;
}

.btn-primary {
    background-color: #2d90fb;
    border-color: #2d90fb;
}

.text-primary {
    color: #2d90fb !important;
}

.btn-hover-effect {
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.btn-hover-effect:hover,
.btn-hover-effect:focus {
    background: #f5f5f5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px) scale(1.02);
}

.btn-hover-effect-link:hover,
.btn-hover-effect-link:focus {
    background: black;
    color: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px) scale(1.02);
}

.content-with-sidebar {
    margin-left: 250px;
    width: calc(100% - 250px);
}

#previewToggle {
    bottom: 0;
}

.bg-blur {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  filter: blur(20px);
  transform: scale(1.1); /* avoids visible edges after blur */
  z-index: 0;
}

.active>.page-link, .page-link.active {
    background-color: var(--theme-color) !important;
    border-color: var(--theme-color) !important;
}

.page-link {
    color: var(--theme-color);
}

/* Up to small (<576px) */
@media (max-width: 575.98px) {
    #previewToggle {
        bottom: 4.5rem;
    }
}

/* Up to medium (<768px) */
@media (max-width: 767.98px) {
    #previewToggle {
        bottom: 4.5rem;
    }
}

/* Up to large (<992px) */
@media (max-width: 991.98px) {
    #previewToggle {
        bottom: 4.5rem;
    }

    .content-with-sidebar {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

/* Up to extra-large (<1200px) */
@media (max-width: 1199.98px) {}

/* Up to xxl (<1400px) */
@media (max-width: 1399.98px) {}