/* --- 1. Reset --- */
* { box-sizing: border-box; }

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

/* --- 2. The Parent --- */
#manage_divswrapped1 {
    position: relative;
    width: 100%;
}

/* --- 3. The Sticky/Fixed Sidebar --- */
#eleftside { 
    /* This removes the sidebar from the normal 'stack', 
       so it won't push the center content down. */
    position: fixed; 
    top: 0;
    left: 0;
    width: 250px !important;
    height: 100vh;
    background: #ffffff;
    border-right: 1px solid #ddd;
    overflow-y: auto;
    padding: 7px;
    z-index: 200;
}

/* --- 4. The Center Content (Starts at the top) --- */
#center { 
    /* margin-left provides the gap so content doesn't hide behind the sidebar. 
       margin-top: 0 ensures it starts at the very top. */
    margin-left: 250px !important; 
    margin-top: 0 !important;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* --- 5. Content Boxes --- */
#appointments {
    width: 100%;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* --- 5. Content Boxes --- */
#toplinks_h {
    width: 100%;
    height: 50px;
    padding: 5px;
    margin-bottom: 0px;
    position: relative; /* Provides a reference for children */
}
.toplinks_h_text {
	font-family: Segoe, 'Segoe UI', 'DejaVu Sans', 'Trebuchet MS', Verdana, 'sans-serif';
	font-size: 19px;
	font-weight: 500;
	color: #4D4D4D;
}

/* --- 5. Content Boxes --- */
#toplinks_h_tools {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Adds even spacing between items */
  width: 120px;
  height: 50px;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding-left: 20px;
  padding-right: 20px;
  margin-bottom: 0px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  float: right;

    /* 1. Start hidden */
    opacity: 0;
    visibility: hidden; 
    
    /* 2. Smooth transition (0.3 seconds) */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 3. Show tools when toplinks_h is hovered */
#toplinks_h:hover #toplinks_h_tools {
    opacity: 1;
    visibility: visible;
}






/* --- 5. Content Boxes --- */
#links_h {
    width: 100%;
    height: 50px;
    padding: 5px;
    margin-bottom: 0px;
    position: relative; /* Provides a reference for children */
}
.links_h_text {
	font-family: Segoe, 'Segoe UI', 'DejaVu Sans', 'Trebuchet MS', Verdana, 'sans-serif';
	font-size: 19px;
	font-weight: 500;
	color: #4D4D4D;
}

/* --- 5. Content Boxes --- */
#links_h_tools {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Adds even spacing between items */
  width: 120px;
  height: 50px;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding-left: 20px;
  padding-right: 20px;
  margin-bottom: 0px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  float: right;

    /* 1. Start hidden */
    opacity: 0;
    visibility: hidden; 
    
    /* 2. Smooth transition (0.3 seconds) */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 3. Show tools when links is hovered */
#links_h:hover #links_h_tools {
    opacity: 1;
    visibility: visible;
}





/* --- 5. Content Boxes --- */
#appointments_h {
    width: 100%;
    height: 50px;
    padding: 5px;
    margin-bottom: 0px;
    position: relative; /* Provides a reference for children */
}
.appointment_h_text {
	font-family: Segoe, 'Segoe UI', 'DejaVu Sans', 'Trebuchet MS', Verdana, 'sans-serif';
	font-size: 19px;
	font-weight: 500;
	color: #4D4D4D;
}

/* --- 5. Content Boxes --- */
#appointment_h_tools {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Adds even spacing between items */
  width: 120px;
  height: 50px;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding-left: 20px;
  padding-right: 20px;
  margin-bottom: 0px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  float: right;

    /* 1. Start hidden */
    opacity: 0;
    visibility: hidden; 
    
    /* 2. Smooth transition (0.3 seconds) */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 3. Show tools when toplinks_h is hovered */
#appointment_h:hover #appointment_h_tools {
    opacity: 1;
    visibility: visible;
}

#notifications_h_tools {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Adds even spacing between items */
  width: 120px;
  height: 50px;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding-left: 20px;
  padding-right: 20px;
  margin-bottom: 0px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  float: right;
}
/* --- 5. Content Boxes --- */
#notifications_h {
    width: 100%;
    height: 50px;
    padding: 5px;
    margin-bottom: 0px;
    position: relative; /* Provides a reference for children */
}
.notifications_h_text {
	font-family: Segoe, 'Segoe UI', 'DejaVu Sans', 'Trebuchet MS', Verdana, 'sans-serif';
	font-size: 19px;
	font-weight: 500;
	color: #4D4D4D;
}




/* --- 5. Content Boxes --- */
#toplinks, #links{
    width: 100%;
    height:215px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    overflow: auto;
}


/* --- 5. Content Boxes --- */
#notifications{
    width: 100%;
    height:220px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    overflow: auto;
}

/* --- 5. Content Boxes --- */
#whosonline {
position: relative;
    width: 95%;
    height:150px;
   top:300px;
    background: #ffffff;
    border-top: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 20px;
    overflow: auto;
}


/* --- 5. Content Boxes --- */
#footer {
position: relative;
    width: 95%;
    height:150px;
     top: 45%;
    background: #ffffff;
    border-top: 1px solid #ddd;
    padding: 10px;
    margin-bottom:10px;
}

/* --- 5. Content Boxes --- */
#appointmentsinside {
    width: 100%;
    background: #ffffff;
    border: 1px solid #ddd;
    border-top: 1px;
    padding: 20px;
    margin-bottom: 20px;
}

/* --- 6. Table & Image Fixes --- */
#appointmentsinside table {
    width: 100% !important;
    table-layout: fixed;
}

#appointmentsinside img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* --- Online Status Indicator --- */
.status-dot {
  height: 10px;
  width: 10px;
  background-color: #2ecc71; /* Emerald Green */
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  box-shadow: 0 0 8px rgba(46, 204, 113, 0.6);
  
  /* Add the animation here */
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(46, 204, 113, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
  }
}


/* --- Offine Status Indicator --- */
.status-dot1 {
  height: 10px;
  width: 10px;
  background-color: #FFA500;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  box-shadow: 0 0 8px rgba(46, 204, 113, 0.6);
  
  /* Add the animation here */
  animation: pulse-orange 2s infinite;
}
 /* Add the animation here 
@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(46, 204, 113, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
  }
}*/




/* --- Back to Top Button --- */
#backToTop {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #333;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: background 0.3s;
}

#backToTop:hover {
    background-color: #555;
}

/* Sidebar List Styling */
#whosonline ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#whosonline li {
    display: flex;
    align-items: center;
    padding: 5px 0;
    font-size: 17px;
}

/* --- Ultra-Tight Sidebar Links --- */
#links a, #toplinks a {
    display: block;
    padding: 5px;          /* Minimal vertical padding */
    margin-bottom: 1px;          /* Barely any gap between items */
    
    color: #475569;              /* Professional Slate */
    text-decoration: none;
    font-size: 17.5px;           /* Slightly smaller for high-density look */
    font-weight: 500;
    line-height: 1.1;            /* Tightest readable line height */
    
    border-radius: 3px;
    transition: background 0.1s;
}


/* --- Ultra-Tight Sidebar Links --- */
#menu a {
    display: block;
    padding: 5px;          /* Minimal vertical padding */
    margin-bottom: 1px;          /* Barely any gap between items */
    
    color: #475569;              /* Professional Slate */
    text-decoration: none;
    font-size: 17.5px;           /* Slightly smaller for high-density look */
    font-weight: 500;
    line-height: 1;            /* Tightest readable line height */
    
    border-radius: 3px;
    transition: background 0.1s;
}

/* --- Clean Hover --- */
#menu a:hover, #links a:hover, #toplinks a:hover {
    background-color: #f1f5f9;
    color: #000000;              /* Sharp contrast on hover */
}

/* --- Tighten Headers --- */
#menu strong, #menu b {
    display: block;
    font-size: 10px;
    color: #94a3b8;
    margin-top: 8px;
    margin-bottom: 2px;
    padding-left: 10px;
    text-transform: uppercase;
}

/* --- Reset for Headers (Optional) --- */
#menu strong, #menu b {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-top: 10px;
    margin-bottom: 5px;
    padding-left: 12px;
}

/* --- 7. Mobile Reset (Vertical Stack) --- */
@media screen and (max-width: 480px) {
    #eleftside {
        position: static;
        width: 100% !important;
        height: auto;
    }
    #center {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 10px;
    }
/* --- 5. Content Boxes --- */
#whosonline {
position: relative;
    width: 95%;
    height:150px;
   top:500px;
    background: #ffffff;
    border-top: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 20px;
    overflow: auto;
}


/* --- 5. Content Boxes --- */
#footer {
position: relative;
    width: 95%;
    height:150px;
     top: 70%;
    background: #ffffff;
    border-top: 1px solid #ddd;
    padding: 10px;
    margin-bottom:10px;
}
}

