:root {
    --bg-color: #e0e5ec;
    --app-bg: #ffffff;
    --logo-emlak: #1e293b;
    --logo-kobi: #10b981;
    --sidebar-width: 85px;
    --right-sidebar-width: 95px;
    --border-color: #eaedf1;
    --text-muted: #64748b;
    /* Legacy App Variables */
    --emlakkobi-green: #12b088;
    --emlakkobi-green-hover : #0c9c77;
    --emlakkobi-blue: #364880;
}

body {
    background-color: var(--bg-color) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding: 30px !important;
    margin: 0 !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto; 
    box-sizing: border-box;
}

small { font-family: inherit; }
a { text-decoration:none; -webkit-transition: all ease 0.4s;   transition: all ease 0.4s;}
.app-container {
    background-color: var(--app-bg);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    min-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    overflow: visible;
    flex-grow: 1;
}

.app-header {
    height: 72px;
    background-color: var(--app-bg);
    border-bottom-color: var(--border-color) !important;
    border-radius: 24px 24px 0 0;
}

.logo-emlak {
    color: var(--logo-emlak);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

.logo-kobi {
    color: var(--logo-kobi);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

.btn-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: #f8f9fa;
    color: #475569;
    transition: all 0.2s;
}
.btn-icon:hover,
.top-action-item:hover .btn-icon {
    background-color: #f1f5f9;
    color: #1e293b;
}

.btn-icon-sm {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: #ffffff;
    transition: all 0.2s;
}
.btn-icon-sm:hover {
    background-color: #f8f9fa;
}

.search-bar {
    border: 1px solid var(--border-color);
    background-color: #f8f9fa !important;
}
.search-bar input {
    font-size: 0.9rem;
    color: #334155;
}
.search-bar input:focus {
    box-shadow: none;
    outline: none;
}

.cursor-pointer {
    cursor: pointer;
}
.transition-color {
    transition: color 0.2s;
}
.hover-primary:hover {
    color: #3b82f6 !important;
}

.hover-bg-gray {
    transition: background-color 0.2s;
}
.hover-bg-gray:hover {
    background-color: #e2e8f0;
}

.search-filter-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 15px;
    width: 200px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1050;
}

.search-filter-wrapper:hover .search-filter-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-filter-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
}

.custom-check .form-check-input {
    cursor: pointer;
}
.custom-check .form-check-label {
    cursor: pointer;
    user-select: none;
}

.app-body {
    flex: 1;
    overflow: visible;
    position: relative;
}

#content {
    padding: 0;
}


/* Top Action Dropdown Menus */
.top-submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    margin-top: 10px;
    width: 200px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1050;
}

.top-action-item:hover .top-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.top-submenu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
}

.top-submenu a {
    display: block;
    padding: 8px 20px;
    color: #475569;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background-color 0.2s, color 0.2s;
    text-align: left;
}

.top-submenu a:hover {
    background-color: #f8fafc;
    color: #364880;
}

.left-sidebar {
    width: var(--sidebar-width);
    background-color: var(--app-bg);
    border-right: 1px solid var(--border-color) !important;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-bottom-left-radius: 24px;
    box-shadow: 4px 0 10px rgba(0,0,0,0.03);
}

.left-sidebar:hover {
    width: 250px;
}

.nav-item {
    width: 100%;
}

.left-sidebar .nav-link {
    color: #364880;
    padding: 12px 10px;
    transition: all 0.2s;
    border-radius: 8px;
    margin: 0 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    overflow: hidden;
	-webkit-transition: all ease 0.4s;   transition: all ease 0.4s;
}

.icon-wrapper {
    min-width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.left-sidebar .nav-link:hover,
.left-sidebar .nav-item:hover .nav-link {
    color: #364880 !important;
    background-color: #f8f9fa;
}
.left-sidebar .nav-link:hover,
.left-sidebar .nav-item:hover .nav-link i {color:#12b088;} {
}
.left-sidebar .nav-link:hover > .icon-wrapper i {color:#12b088;}
.left-sidebar .nav-link.active > .icon-wrapper i {color:#12b088;}

.left-sidebar .nav-link.active,
.left-sidebar .nav-item:hover .nav-link.active {
    color: #364880 !important; 
    background-color: #eff6ff !important;

}

.sidebar-text {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    white-space: nowrap;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.left-sidebar:hover .sidebar-text {
    opacity: 1;
    visibility: visible;
}

/* Submenu Styles */
.sidebar-submenu {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 5px;
    width: 200px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
}

.nav-item:hover .sidebar-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.submenu-title {
    padding: 5px 20px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #364880;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 5px;
}

.sidebar-submenu a {
    display: block;
    padding: 8px 20px;
    color: #475569;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background-color 0.2s, color 0.2s;
	-webkit-transition: all ease 0.4s;   transition: all ease 0.4s;
}

.sidebar-submenu a:hover {
    background-color: #f8fafc;
    color: #364880;
}

.right-sidebar {
    width: var(--sidebar-width);
    background-color: #fcfcfd;
    border-left-color: var(--border-color) !important;
    position: relative;
    z-index: 100;
    border-bottom-right-radius: 24px;
}

.right-widget {
    cursor: pointer;
    transition: all 0.2s;
    border-color: var(--border-color) !important;
    overflow: hidden;
}
.right-widget:hover,
.right-nav-item:hover .right-widget {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
    transform: translateY(-2px);
    border-color: #cbd5e1 !important;
}

.custom-badge {
    font-size: 0.65rem;
    padding: 0.3em 0.5em;
    border: 2px solid #ffffff;
    background-color: #ef4444 !important;
}

.sidebar-submenu-left {
    position: absolute;
    top: 0;
    right: 100%;
    margin-right: 5px;
    width: 200px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: -10px 10px 25px rgba(0,0,0,0.08);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
}

.right-nav-item:hover .sidebar-submenu-left {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.sidebar-submenu-left a {
    display: block;
    padding: 8px 20px;
    color: #475569;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background-color 0.2s, color 0.2s;
}

.sidebar-submenu-left a:hover {
    background-color: #f8fafc;
    color: #3b82f6;
}

.main-content {
    background-color: #f2f5f8;
    overflow-y: visible;
    margin-left: var(--sidebar-width);
    flex: 1;
    min-width: 0;
}

.main-footer {
    border-top-color: var(--border-color) !important;
}

/* Scroll Bar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}


.sms-time {min-height:50px;}
.verification-code input {max-width:50px; margin:0px 7px; border:1px solid #cbcbce!important;}


/* Custom Legacy Scroll Bar Styles */
.scroll-bar {
  background: transparent;
  overflow-x: scroll;
}
.scroll-ba {
  background-color: #e9eef3;
  -webkit-box-shadow: inset -1px 5px 0 rgb(0 0 0 / 10%), inset 1px -5px 0 rgb(0 0 0 / 7%);
}

.mobile-app-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #f8fafc;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

.mobile-app-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    height: 72px;
    flex-shrink: 0;
}

.mobile-menu-body {
    flex: 1;
    overflow-y: auto;
}

.mobile-app-menu .accordion-button:not(.collapsed) {
    background-color: #eff6ff;
    color: #3b82f6;
    box-shadow: none;
}
.mobile-app-menu .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}
.mobile-app-menu .accordion-item {
    background-color: transparent;
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

@media (max-width: 1279.98px) {
    body {
        padding: 0 !important;
        padding-bottom: 70px !important;
        display: block;
    }
    .app-container {
        border-radius: 0;
        margin: 0 !important;
        min-height: 100vh;
    }
    .app-header {
        border-radius: 0;
    }
    .left-sidebar,
    .right-sidebar,
    .search-bar,
    .top-actions > .d-none.d-lg-flex {
        display: none !important;
    }
    .main-content {
        margin-left: 0;
    }
    .main-footer {
        display: none !important;
    }
    .mobile-menu-toggle {
        display: inline-flex !important;
    }
    #content {
        padding: 0.75rem !important;
    }
}
.active-bottom-nav {
    color: #3b82f6 !important;
}
.mobile-bottom-nav {
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
}

/* Legacy Helper & Page Components */
.white-box {  border-radius: 10px;  background: #fefefe;  border:1px solid #dddddd; }
.grey-box {  border-radius: 10px;  background: #f9f9f9;  border:1px solid #dddddd; }
.preload {display:flex; position:absolute; top:0; left:0; z-index:9; align-items:center; justify-content:center; width:100%; height:100%; background:#f2f5f8; border-radius:20px 20px 0px 0px;}
.form-alert {  position: absolute;  z-index: 99;  top: 0px;  left: 0px;  display: flex;  align-items: center; padding:0px 20px;  justify-content: center;  width: 100%;  height: 100%; border-radius:10px;  background: rgb(254 254 254 / 92%); }

.app-helper {flex:0 0 210px; width:210px; min-height:calc(100vh - 132px); background:rgb(255 255 255 / 78%); border-radius:0px; border-right:1px solid #ddd; margin:0; overflow-y:scroll;}
@media(max-width: 1279.98px) {
  .app-helper {border-radius: 10px;  background: #fefefe;  border:1px solid #dddddd; flex:0 0 auto; width:100%; margin:0px 0px 10px 0px; min-height:auto; overflow:hidden;}
  .app-helper-nav>li { display:block; width:100%;}
}

.app-helper-nav {  padding: 20px 0px;}
.app-helper-nav>li { display:inline-block; }
.app-helper-nav>li>a {  display: block;  font-size:14px;  color: #737373;  vertical-align: middle;  padding: 10px 20px;  color: rgb(143, 155, 179);  font-weight: 400;}
.app-helper-nav>li>a.active {  font-weight:bold; color: rgb(26, 71, 132);  border-radius: 6px;}
.app-helper-nav>li>a:hover {  color: rgb(26, 71, 132);  border-radius: 6px;}
.app-helper-nav .app-left-nav-icon {   color: var(--emlakkobi-blue);  transition: 500ms; font-size: 16px;}
.app-helper-nav .app-left-nav-icon i { width:25px;}
.app-helper-nav>li>a.active>span.app-left-nav-icon {  color: #12b088;}
.app-helper-right {flex:1 1 auto; padding:0px 20px}

@media(max-width:1279.98px) {
  .app-helper-right {flex:0 0 auto; width:100%; padding:0px;}
}

.box-title {
  font-size: 18px;
  margin: 0px;
  color: var(--emlakkobi-blue);
  font-weight: bold;
  padding: 20px;
  border-bottom: 1px solid #f1f1f1;
  border-radius: 10px 10px 0px 0px;
}
.box-title a { color: var(--emlakkobi-blue); text-decoration: none; }
.box-title a:hover { color: #0dc18a; }

.list-title {
  font-size: 18px;
  margin: 0px;
  color: var(--emlakkobi-blue);
  font-weight: bold;
  padding: 20px 0px;
}

.app-nav>li { display: block; width: 100%; }
.app-nav>li>a { border-bottom: 1px solid #f1f1f1; font-size: 14px; padding: 10px; display: block; color: inherit; text-decoration: none; }
.app-nav>li:last-child>a { border: 0px; }
.app-nav>li>a>i { display: inline-block; width: 20px; color: #11b287; }
.app-nav>li>a.active { color: var(--emlakkobi-blue); font-weight: bold; }
.app-nav>li>a:hover { color: var(--emlakkobi-blue); background: #fcfcfc; }

/* Table & Listing */
.table.main-table {border:0px;}
.table-main-table tr {border:0px;}
.table.main-table tr td {border:0px; padding:0px;}
.table {border-spacing: 0 0px;border-collapse: separate; margin-bottom:0px;}
.table.first-table {margin-bottom:10px;}
.table.first-table tr td:first-child {border-left:1px solid #ddd;border-top-left-radius:10px; border-bottom-left-radius:10px;}
.table.first-table tr td:last-child {border-right:1px solid #ddd; border-top-right-radius:10px; border-bottom-right-radius:10px;}
.table.first-table tr td {background:#fff; padding: 0.5rem 0.5rem;border-left:1px solid #f2f5f8; border-top:1px solid #ddd; border-bottom:1px solid #ddd; display:table-cell; vertical-align: middle;}
.table.last-table {margin-bottom:10px; position:relative;}
.table.last-table tr td:first-child {border-left:1px solid #ddd;border-bottom-left-radius:10px; border-top-left-radius: 10px;}
.table.last-table tr td:last-child {border-right:1px solid #ddd; border-bottom-right-radius:10px; border-top-right-radius: 10px;}
.table.last-table tr td {background:#fff; padding: 0.5rem 0.5rem; border-top:1px solid #ddd; border-bottom:1px solid #ddd; border-left:1px solid #f1f1f1;display:table-cell;}

.table td.check-td {width:45px; background:#f9f9f9!important; border-right:1px solid #f1f1f1!important;}
.table td.check-td .form-check {margin-right:0px; margin-left:5px;}
.table td.id-td {width:45px; background:#fff!important; border-right:1px solid #f1f1f1!important;}

/* Utilities */
.divider { display: block; height: 1px; margin: 20px 0; border-top: 1px solid #eee; }
.no-wrap { white-space: nowrap; }
.cursor-pointer { cursor: pointer; }
.cursor-move { cursor: move; }
.cursor-unset { cursor: unset; }

.image-preview-input { position: relative; overflow: hidden; margin: 0px; }
.image-preview-input input[type=file] { position: absolute; top: 0; right: 0; margin: 0; padding: 0; font-size: 20px; cursor: pointer; opacity: 0; }

.search-engine-view {background:#fff; border:1px solid #f9f9f9; border-radius:6px; padding:10px;}
.search-engine-view .website-name {font-family: Arial, sans-serif; color:#202124;}
.search-engine-view .website-title {font-family: Arial, sans-serif; color:#1a0dab; font-size:16px;}
.search-engine-view .website-desc {font-family: Arial, sans-serif; color:#4d5156; max-width:600px;}

/* Animations */
.animation-light { animation: pulsate1 2s infinite steps; }
@keyframes pulsate1 {
  0% { transform: scale(0.6); opacity: 1; box-shadow: inset 0px 0px 25px 3px rgba(255, 255, 255, 0.75), 0px 0px 25px 10px rgba(255, 255, 255, 0.75); }
  100% { transform: scale(1); opacity: 1; box-shadow: none; }
}
