:root {
    --sidebar-width: 280px;
    --sidebar-width-collapsed: 70px;
    --sidebar-bg: #4a6042;
    --sidebar-text: white;
    --body-main: #f2f2f2;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    background-color: var(--body-main);
}

.btn-success{
    background-color: #4a6042 !important;
}

.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    transition: width 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100vh;
    border-top-right-radius: 40px 40px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header .logo {
    max-height: 50px;
    max-width: 150px;
}

.sidebar-header .btn-close {
    filter: invert(1);
    display: none;
}

.sidebar-menu {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px 0;
}

.sidebar-footer {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link {
    color: var(--sidebar-text);
    display: flex;
    align-items: center;
    padding: 10px 15px;
    transition: background-color 0.3s ease;
}

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

.sidebar .nav-link i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.toggle {
    color: #4a6042;
}

nav {
    background-color: var(--body-main);
}

section {
    background-color: #fff;
    border-radius: 20px;
}


.content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: calc(100% - var(--sidebar-width));
    margin-left: 0;
    transition: width 0.3s ease, margin-left 0.3s ease;

}

.page-content {
    flex-grow: 1;
    background-color: var(--body-main);
    overflow: auto;
}

.sidebar.collapsed {
    width: var(--sidebar-width-collapsed);
}

.sidebar.collapsed .nav-link span {
    display: none;
}

.sidebar.collapsed .sidebar-header .logo {
    max-width: 40px;
}

.nav-link.active {
    background-color: #899e81;
    color: #fff !important;
}

.nav-link.active:hover {
    background-color: #899e81;
    color: #fff !important;
}



.sidebar.collapsed .logo {
    display: none;
}

.sidebar.collapsed .logo-icon {
    display: block;
}

.logo-icon {
    display: none;
}

.page {
    display: none;
}

.page.active {
    display: block;
}


.sidebar-collapsed .nav-text {
    display: none;
}

.sidebar-collapsed .arrow-icon {
    display: none;
}


.sidebar-collapsed .nav-link {
    justify-content: center;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(105, 105, 105, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-icon {
    width: 100px;

}

.loader-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.loading-text {
    margin-top: 10px;
    margin-left: 15px;
    font-size: 18px;
    color: #fff;
    display: flex;

}

.dot {
    animation: blink 1.5s infinite;
}

.dot:nth-child(1) {
    animation-delay: 0s;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {

    0%,
    20% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.save-btn {
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
}

.save-btn:hover {
    background-color: transparent;
    color: var(--sidebar-bg);
    border: 1px solid var(--sidebar-bg);
    transition: all 0.4s;
}




@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.partner-w {
    width: 50%;
}

.login {
    background-color: #f4f4f4;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-image {
    background-size: cover;
    background-position: center;
    min-height: 500px;
}

.form-control:focus {
    box-shadow: none;
    border-color: #899e81;
}

.login-icon {
    color: #4a6042;
}

@media (max-width: 768px) {
    .card-title {
        font-size: 14px;
    }

    small {
        font-size: 12px;
    }

    .save-btn {
        font-size: 12px;
    }

    input {
        margin-top: 10px;
    }

    .wrapper {
        flex-direction: column;
    }

    .partner-w {
        width: 100%;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        height: 100%;
        width: 280px;
        transform: translateX(100%);
        z-index: 1050;
        transition: transform 0.3s ease;
    }

    .sidebar.sidebar-collapsed {
        transform: translateX(0);
    }

    #sidebarToggle {
        position: fixed;
        top: 10px;
        left: 10px;
        z-index: 1060;
    }

    .sidebar-header .btn-close {
        display: block;
    }

    .content-wrapper {
        width: 100%;
        margin-left: 0;
    }

    .sidebar .nav-link span {
        display: inline;
    }
}


.card {
    margin-bottom: 20px;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


.sidebar-menu::-webkit-scrollbar {
    width: 6px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

/* loader */

#loader {
    text-align: center;
    font-family: Arial, sans-serif;
}

/* #loader img {
    display: none; 
}

#loader p {
    font-size: 16px;
    color: #555;
    margin-top: 10px;
    animation: fade 1.5s infinite;
}

@keyframes fade {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 1;
    }
} */

#loader {
    display: none;
    margin-top: 15px;
    color: green; /* Text color */
    text-align: center;
    font-weight: bold;
}


/**
*  Nestable css
*/
.dd {
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
    max-width: 100%;
    list-style: none;
    font-size: 13px;
    line-height: 20px;
  }
  
  .dd-list {
    display: block;
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  
  .dd-list .dd-list {
    padding-left: 30px;
  }
  
  .dd-collapsed .dd-list {
    display: none;
  }
  
  .dd-item,
  .dd-empty,
  .dd-placeholder {
    display: block;
    position: relative;
    margin: 0;
    padding: 0;
    min-height: 20px;
    font-size: 13px;
    line-height: 20px;
  }
  
  .dd-handle {
    display: block;
    height: 30px;
    margin: 5px 0;
    padding: 5px 10px;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #ccc;
    background: #fafafa;
    background: -webkit-linear-gradient(top, #fafafa 0%, #eee 100%);
    background: -moz-linear-gradient(top, #fafafa 0%, #eee 100%);
    background: linear-gradient(top, #fafafa 0%, #eee 100%);
    -webkit-border-radius: 3px;
    border-radius: 3px;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
      cursor: move;
      margin: 0 0 10px;
      background: #dbdbdb;
  /*    color: #6f6f6f;*/
      padding: 5px 12px
  }
  
  .dd-handle:hover {
    color: #2ea8e5;
    background: #fff;
  }
  
  .dd-item > button {
  /*  display: block;
    position: relative;
    cursor: pointer;
    float: left;
    width: 25px;
    height: 20px;
    margin: 5px 0;
    padding: 0;
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
    border: 0;
    background: transparent;
    font-size: 12px;
    line-height: 1;
    text-align: center;
    font-weight: bold;*/
        position: relative;
      cursor: pointer;
      float: left;
      width: 25px;
      height: 30px;
      margin: 0px 0px;
      margin-right: 10px;
      padding: 0;
      text-indent: 100%;
      white-space: nowrap;
      overflow: hidden;
      border: 0;
      background: #4CAF50;
      font-size: 12px;
      line-height: 1;
      color: #fff;
      text-align: center;
      font-weight: bold;
  
  }
  
  .dd-item > button:before {
    content: '+';
    display: block;
    position: absolute;
    width: 100%;
    text-align: center;
    text-indent: 0;
  }
  
  .dd-item > button[data-action="collapse"]:before {
    content: '-';
  }
  
  .dd-placeholder,
  .dd-empty {
    margin: 5px 0;
    padding: 0;
    min-height: 30px;
    background: #f2fbff;
    border: 1px dashed #b6bcbf;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
  }
  
  .dd-empty {
    border: 1px dashed #bbb;
    min-height: 100px;
    background-color: #e5e5e5;
    background-image: -webkit-linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%, #fff),
      -webkit-linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%, #fff);
    background-image: -moz-linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%, #fff),
      -moz-linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%, #fff);
    background-image: linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%, #fff),
      linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%, #fff);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
  }
  
  .dd-dragel {
    position: absolute;
    pointer-events: none;
    z-index: 9999;
  }
  
  .dd-dragel > .dd-item .dd-handle {
    margin-top: 0;
  }
  
  .dd-dragel .dd-handle {
    -webkit-box-shadow: 2px 4px 6px 0 rgba(0, 0, 0, .1);
    box-shadow: 2px 4px 6px 0 rgba(0, 0, 0, .1);
  }
  
  /**
  * Nestable Extras
  */
  .nestable-lists {
    display: block;
    clear: both;
    padding: 30px 0;
    width: 100%;
    border: 0;
  
  }
  
  #nestable-menu {
    padding: 0;
    margin: 20px 0;
  }
  
  #nestable-output,
  #nestable2-output {
    width: 100%;
    height: 7em;
    font-size: 0.75em;
    line-height: 1.333333em;
    font-family: Consolas, monospace;
    padding: 5px;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
  }
  
  #nestable2 .dd-handle {
    color: #fff;
    border: 1px solid #999;
    background: #bbb;
    background: -webkit-linear-gradient(top, #bbb 0%, #999 100%);
    background: -moz-linear-gradient(top, #bbb 0%, #999 100%);
    background: linear-gradient(top, #bbb 0%, #999 100%);
  }
  
  #nestable2 .dd-handle:hover {
    background: #bbb;
  }
  
  #nestable2 .dd-item > button:before {
    color: #fff;
  }
  
  .dd {
      /* //  float: left; */
    /* //  width: 48 %; */
    width: 80%;
  }
  
  .dd + .dd {
    margin-left: 2%;
  }
  
  .dd-hover > .dd-handle {
    background: #2ea8e5 !important;
  }
  
  /**
  * Nestable Draggable Handles
  */
  .dd3-content {
    display: block;
    height: 30px;
    margin: 5px 0;
    padding: 5px 10px 5px 40px;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #ccc;
    background: #fafafa;
    background: -webkit-linear-gradient(top, #fafafa 0%, #eee 100%);
    background: -moz-linear-gradient(top, #fafafa 0%, #eee 100%);
    background: linear-gradient(top, #fafafa 0%, #eee 100%);
    -webkit-border-radius: 3px;
    border-radius: 3px;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
  }
  
  .dd3-content:hover {
    color: #2ea8e5;
    background: #fff;
  }
  
  .dd-dragel > .dd3-item > .dd3-content {
    margin: 0;
  }
  
  .dd3-item > button {
    margin-left: 30px;
  }
  
  .dd3-handle {
    position: absolute;
    margin: 0;
    left: 0;
    top: 0;
    cursor: pointer;
    width: 30px;
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
    border: 1px solid #aaa;
    background: #ddd;
    background: -webkit-linear-gradient(top, #ddd 0%, #bbb 100%);
    background: -moz-linear-gradient(top, #ddd 0%, #bbb 100%);
    background: linear-gradient(top, #ddd 0%, #bbb 100%);
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }
  
  .dd3-handle:before {
    content: '≡';
    display: block;
    position: absolute;
    left: 0;
    top: 3px;
    width: 100%;
    text-align: center;
    text-indent: 0;
    color: #fff;
    font-size: 20px;
    font-weight: normal;
  }
  
  .dd3-handle:hover {
    background: #ddd;
  }