body{
    white-space: normal !important;
}
.tool_footer{
    box-sizing: border-box;
    /* position: fixed; */
    /* bottom: 0; */
    margin-top: 20px;
    /* height: 44px; */
    line-height: 44px;
    padding: 0 15px;
    background-color: #eee;
    width: 100%;
    text-align: center;
}
.tool_body{
    padding: 15px;
}
.ml20{
margin-left: 20px;
}
@media (max-width: 600px) {
    .all_link{
        display:none !important;
    }
    .layui-layout-admin .layui-header{
        display:none;
    }
    .placeholder_card_body{
        white-space: normal !important;
        word-break: break-all; 
        word-wrap: break-word; 
  
    }
}

/* Mobile Nav Styles */
@media screen and (max-width: 768px) {
  .layui-layout-admin .layui-header {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    background-color: #fff; /* Modern White Background */
    box-shadow: 0 1px 10px rgba(0,0,0,0.05); /* Subtle shadow */
    border-bottom: 1px solid #f0f0f0;
  }
  
  .layui-layout-admin .layui-logo {
    position: absolute;
    left: 0;
    top: 0;
    width: auto;
    padding-left: 20px;
    z-index: 10001;
  }
  
  .layui-layout-admin .layui-logo a {
      color: #333 !important; /* Dark text for logo */
      font-weight: bold;
  }
  
  .mobile-nav-toggle {
    display: block !important;
    position: absolute;
    right: 0;
    top: 0;
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    cursor: pointer;
    color: #333; /* Dark icon */
    z-index: 10002;
  }
  
  .mobile-nav-toggle i {
      font-size: 24px;
  }

  .layui-nav.layui-layout-left {
    display: none !important;
  }

  /* Mobile Drawer */
  .mobile-nav-drawer {
    display: block;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    bottom: 0; /* Anchor to bottom */
    height: auto; /* Allow auto height based on top/bottom anchors */
    background-color: #fff;
    z-index: 9999;
    overflow-y: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-150%);
    padding: 20px 15px; /* Increase padding */
    box-sizing: border-box;
    /* Improve scrolling on mobile */
    -webkit-overflow-scrolling: touch; 
  }
  
  .mobile-nav-drawer.open {
    transform: translateY(0);
  }
  
  .mobile-nav-section {
    background: #fff;
    border-radius: 12px; /* More rounded */
    padding: 0;
    margin-bottom: 25px;
    box-shadow: none; /* Remove card shadow for cleaner look */
  }
  
  .mobile-nav-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    border-left: none; /* Remove border */
    padding-left: 0;
    line-height: 1.2;
    display: flex;
    align-items: center;
  }
  
  .mobile-nav-title::before {
      content: '';
      display: inline-block;
      width: 4px;
      height: 16px;
      background: #009688;
      margin-right: 8px;
      border-radius: 2px;
  }
  
  .mobile-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    gap: 12px;
  }
  
  .mobile-nav-card {
    background: #f7f9fa; /* Lighter cool gray */
    text-align: center;
    padding: 15px 5px;
    border-radius: 8px;
    color: #555;
    font-size: 13px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border: none; /* Remove border */
    line-height: 1.4;
    min-height: 44px;
    font-weight: 500;
  }
  
  .mobile-nav-card:hover, .mobile-nav-card:active {
      background: #e0f2f1;
      color: #009688;
      transform: translateY(-1px);
  }
  
  /* Adjust main content to not hide behind fixed header */
  .main-layout-container {
     padding-top: 60px;
  }
}

@media screen and (min-width: 769px) {
  .mobile-nav-toggle {
    display: none !important;
  }
  .mobile-nav-drawer {
    display: none !important;
  }
}