.maindiv{
    margin-top: 10%;
    display: flex;
    justify-content: center;
}

.buttonsdiv{
    margin-top: 20px;
    margin-bottom: 5px;
    display: flex;
    justify-content: center;
}

.messagediv{
    margin-top: 0.2em;
    margin-bottom: 5px;
    max-height: 0.5em;
    display: flex;
    justify-content:center;
}

.foldersdiv{
    margin-top: q0px;
    margin-bottom: 5px;
    display: flex;
    justify-content: center;
}

.folderShare{
    font-size: 23px; 
    color: white; 
    position: absolute; 
    bottom: 1.5em; 
    right: 0.6em;
}

.fileShare{
    font-size: 18px; 
    color: white; 
    position: absolute; 
    bottom: 0.8em; 
    right: 0.3em;
}

.managesharesdiv{
    margin-top: 20px;
    margin-bottom: 5px;
    margin-left: 50px;
    margin-right: 50px; 
}

.align-table {
    display: flex;
    align-items: center; /* Vertical alignment */
    /* justify-content: center; Horizontal alignment (optional) */
}

/* Start of toggle switch */
.toggleCheckbox {
    display: none;
}

.toggleContainer {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: fit-content;
    border: 1px solid rgba(31, 97, 141 , 0.2);
    border-radius: 50px !important;
    background: white;
    /* font-weight: bold; */
    font-size: small;
    color: #343434;
    cursor: pointer;
 }

 .toggleContainer::before {
    content: '';
    position: absolute;
    width: 50%;
    height: 100%;
    left: 0%;
    border-radius:20px;
    background: #5d6d7e  ;
    /* background: #16a085 ; */
    transition: all 0.3s;
 }

 .toggleContainer div {
    padding: 6px;
    text-align: center;
    z-index: 1;
 }

 .toggleCheckbox:checked + .toggleContainer::before {
    left: 50%;
    background: #16a085 ;
 }

.toggleCheckbox:checked + .toggleContainer div:first-child{
   color: #343434;
   transition: color 0.3s;
}
.toggleCheckbox:checked + .toggleContainer div:last-child{
   /* color: #16a085; */
   color: white;
   transition: color 0.3s;
}
.toggleCheckbox + .toggleContainer div:first-child{
   /* color: #16a085; */
   color: white;
   transition: color 0.3s;
}
.toggleCheckbox + .toggleContainer div:last-child{
   color: #343434;
   transition: color 0.1s;
}

.toggleAllCheckbox {
  display: none;
}

.toggleAllContainer {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: fit-content;
  border: 1px solid rgba(31, 97, 141 , 0.2);
  border-radius: 50px !important;
  background: white;
  /* font-weight: bold; */
  font-size: small;
  color: #343434;
  cursor: pointer;
}

.toggleAllContainer::before {
  content: '';
  position: absolute;
  width: 50%;
  height: 100%;
  left: 0%;
  border-radius:20px;
  background: #5d6d7e  ;
  /* background: #16a085 ; */
  transition: all 0.3s;
}

.toggleAllContainer div {
  padding: 6px;
  text-align: center;
  z-index: 1;
}

.toggleAllCheckbox:checked + .toggleAllContainer::before {
  left: 50%;
  background: #16a085 ;
}

.toggleAllCheckbox:checked + .toggleAllContainer div:first-child{
 color: #343434;
 transition: color 0.3s;
}
.toggleAllCheckbox:checked + .toggleAllContainer div:last-child{
 /* color: #16a085; */
 color: white;
 transition: color 0.3s;
}
.toggleAllCheckbox + .toggleAllContainer div:first-child{
 /* color: #16a085; */
 color: white;
 transition: color 0.3s;
}
.toggleAllCheckbox + .toggleAllContainer div:last-child{
 color: #343434;
 transition: color 0.1s;
}

/* End of toggle switch */

/* Start of round buttons */
.roundbuttons{
    position: relative;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    width: fit-content;
    padding: 6px 20px; /* Adjust padding for size */
    border: none;
    border-radius: 20px; /* Rounded corners */
    /* background: red; */
    font-size: small; /* Text size */
    color: white; /* Text color */
    cursor: pointer; /* Pointer cursor */
    align-items: center; /* Vertical alignment for grid items */
    text-align: center;
}

.round{
    border-radius: 50px;
}

.roundHalf{
    border-radius: 20px;
}

.roundFooter{
    border-bottom-left-radius: 50px !important;
    border-bottom-right-radius: 50px !important;
}

.roundHeader{
    border-top-left-radius: 50px !important;
    border-top-right-radius: 50px !important;
}
/* End of round buttons */

/* Input with icons */
.input-icons {
    width: 100%;
    margin-bottom: 10px;
}

.input-icons i {
    position: absolute;
}

.icon {
    padding: 7px;
    min-width: 40px;
    border-radius: 50px;
}

.input-field {
    width: 100%;
    padding: 10px;
    text-align: center;
}
/* End of input with icons */
.container {
    border-radius: 5px !important;
    padding: 40px !important;
    box-shadow: 0 10px 15px 5px !important;
    max-width: 500px !important;
}

.col-25 {
float: left !important;
width: 35% !important;
margin-top: 10px !important;
margin-bottom: 0,5px !important;
}

.col-75 {
float: left !important;
width: 100% !important;
margin-top: 6px !important;
}

.centerdiv{
    margin-top: 5%;
    display: flex;
    justify-content: center;
}

.secondarycenterdiv{
    margin-top: 1%;
    display: flex;
    justify-content: center;
}

.registerFormHeader{
    font-size: 18px;
    color: #2980b9;
}

.loginFormHeader{
    font-size: 22px;
    color: #2980b9;
}

.formHeaderBackground{
    text-align: center;
    background-color: #f2f3f4;
    height: 40px;
    vertical-align: middle;
    line-height: 40px;
    border-radius: 50px;
    border-color: #2980b9;
    border-style:solid;
    border-width: 1px;
}

.active{
    color: #5a86ba !important;
}

.links{
    text-decoration: none !important;
    color:black;
    white-space: normal;
    overflow: visible;
    display: block;
    word-break: break-word;
}

.linksLogin{
    text-decoration: none !important;
    color:black;
}


.mutedtext{
    color:#cacfd2;
}

.menuprofilepic{
    width:25px;
    height:25px;
    border-radius: 50%;
}

.menuprofile{
    display: none;
}

.profilepic{
    width:60px;
    height:60px;
    border-radius: 50%;
}

.profilepicBackground{
    margin-left: 42%;
    text-align: center; 
    width:60px;
    height:60px;  
    position: relative;
}

.upload-icon {
    height: 25px;
    font-size: 12px;
    position: absolute ;
    bottom: 5px !important;
    right: 5px !important;
    color:white !important;
    background-color: rgba(0, 0, 0, 0.9) !important;
    padding: 5px !important;
    border-radius: 10% !important;
    display: none !important; /* Initially hide the upload icon */
  }
  
  .profilepicBackground:hover .upload-icon {
    display: block !important; /* Show the upload icon on hover */
  }

.shareprofilepic{
    width:40px;
    height:40px;
    border-radius: 50%;
}

.errorimage{
    width: 30% !important;
    height: 30% !important;
}

.circle-progress-bar {
    margin-top: 0px;
    color: #ffffff;
    width: 100px;
    height: 100px;
    border-radius: 50%;   
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center; 
}

.loader {
    border: 7px solid #f3f3f3;
    border-radius: 50%;
    border-top: 7px solid #3498db;
    width: 100px;
    height: 100px;
    margin-top: 10px;
    margin-bottom: 15px;
    animation: spin 2s linear infinite;
}

.loadersmall {
    border: 2px solid #f3f3f3;
    border-radius: 50%;
    border-top: 2px solid #3498db;
    width: 30px;
    height: 30px;
    margin-top: -18px;
    animation: spin 2s linear infinite;
}

.loader-container {
    position: relative;       /* To position the countdown inside */
    display: inline-block;    /* Keep the loader shape intact */
  }

.loaderlarge {
    border: 2px solid #f3f3f3;
    border-radius: 50%;
    border-top: 2px solid #3498db;
    width: 300px;
    height: 300px;
    margin-top: 50%;
    animation: spin 2s linear infinite;
}

#countdown-timer {
    position: absolute;       /* Center the countdown inside loader */
    top: 65%;
    left: 55%;
    transform: translate(-70%, -50%);  /* Perfect centering */
    font-weight: bold;
    font-size: 30px;
    color: #34495e ;             /* Adjust for contrast */
  }

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert  messages css */
.alert{
    /* position makes the alert div not to move the text bellow */
    position: absolute;
    width:fit-content;
    line-height:0.1em;
    /* padding:0em 0em; */
    border: 1px solid transparent !important;
    border-radius: 30px !important;
    z-index: 1;
  }
  .alert-success{
    color: #3c763d !important;
    background-color: #dff0d8 !important;
    border-color: #d6e9c6 !important;
    padding: 0.5em !important;
  }
  .alert-danger{
    color: #c3593e !important;
    background-color: #f8d7da !important;
    border-color: #f8d7da !important;
    padding: 0.5em !important;
  }
  .alert-warning{
    color: #3e5c74 !important;
    background-color: #fff3cd !important;
    border-color: #fff3cd !important;
    padding: 0.5em !important;
  }
  
  .hidden{
    display: none !important;
  }
  

  /* For dropdown items specifically */
.dropdown-item.active {
    color: #5a86ba !important;    /* Change to your desired color */
    background-color: transparent !important; /* Ensure the background color doesn’t change */
}

/* NewShareManagement */

.card-deck {
  align-items: flex-start; /* Let children have different heights */
}


.sharedManagementContainer {
    width: 450px;
    height: auto;
    display: flex;
    flex-direction: column;
    margin:  auto;
    padding: 20px;
    margin-top: 50px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(205, 204, 204, 0.1) !important;
    border-radius: 50px !important;
    background-color: #f2f3f4!important;
  }

  .folderContainer{
    width: 400px;
    height: auto;
    display: flex;
    flex-direction: column ;
    margin:  auto;
    padding: 20px;
    margin-top: 50px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(205, 204, 204, 0.1) !important;
    border-radius: 50px !important;
  }

/* Folder and Files Action Icons */

.icon-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.1em; /* space between icons */
  margin-top: 0em;
  margin-bottom: -30px;
  margin-right: 0em;
  /* font-size: 20px; */
  z-index: 4;
}

.icon-actions .badge i {
  color: gray;
  cursor: pointer;
  font-size: 16px !important;
}

.folder-actions-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: -25px;
  margin-top: 0em;
  padding: 0 0em;
  z-index: 10;
}

.folder-count {
  width: 80px;
  border-radius: 5px;
  background-color: lightgray;
  color: white;
  padding: 4px 8px;
  font-size: 14px;
  margin-top: auto; 
}

.folder-count .file-number {
  color: #5499c7;
}

.folder-icon-actions {
  display: flex;
  gap: 0.5em;
  font-size: 10px !important;
}

.folder-icon-actions i {
  color: gray;
  font-size: 16px;
  cursor: pointer;
}


/* End of Folder and Files Action Icons */

  .folder-header {
    position: relative;
    text-align: center;
    margin-top: -19px;
    padding-top: 10px;
    margin-bottom: 70px;
    margin-left: -20px;
    width:inherit;
    height: 50px;
    /* background-color: #fef9e7 ; */
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    /* border-bottom: solid;
    border-bottom-color: #fad7a0 ; */
  }
  
  .folder-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: solid;
    border-width: 2px;
    border-color: white ;
    line-height: 60px;
    margin: 0 auto;
    background-color: white;
    z-index: 1;
    padding-left: 0em;
    position:relative;
    justify-content: center;
    font-size: 30px;
    background-color: white;
  }
  
  .folder-name {
    position: absolute;
    top: 40px; /* Move it down to overlap */
    left: 50%;
    transform: translateX(-50%);
    background-color: transparent;
    color: gray;
    padding: 30px 20px;
    z-index: 2; /* On top of the icon */
    justify-content: center;
  }
  
  
  .user-row {
    display: flex;
    align-items: center;
    /* border: 2px solid #000; */
    border-radius: 50px;
    padding: 10px;
    margin-bottom: 10px;
    background-color: white;
    justify-content: space-between;
  }

  .user-last-row {
    display: flex;
    align-items: center;
    border-radius: 50px;
    padding: 10px;
    margin-top: 50px;
    margin-bottom: 10px;
    line-height: 30px;
    background-color: white ;
    color:white;
    font-size:small;
    justify-content: space-between;
  }
  
  .user-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: solid;
    border-width: 2px;
    border-color: transparent;
    line-height: 60px;
    margin: 0 auto;
    background-color: white;
    z-index: 1;
    position:relative;
    background-color: white;
  }
  .user-pic {
    width: 40px;
    height: 40px;
    border-radius: 50px;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    display: flex;
  }

  .user-file {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    padding-right: 10px; 
    padding-left: 7px;
    padding-bottom: 10px;
    font-size: 25px;
    display: flex;
    position: relative;
  }
  .user-pic2 {
    width: 100%;
    height: 100%;
    border-radius: 50% !important;
    display: flex;
  }
  
  .user-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;

  }
  
  .permission {
    margin-top: 10px;
    margin-left: 2px;
    margin-right: 30px;
  }

  .permission-label {
    margin-top: 2px;
    font-size: small ;
    color: gray;
    margin-left: 10px;
    margin-right: 2px;
  }
  
  .toggle {
    width: 15px;
    height: 15px;
    background-color: #90ee90;
    border-radius: 50px;
    display: inline-block;
    margin-left: 5px;
  }
  
  .stop-btn {
    border-radius: 50%;
    color: red;
    width: 30px;
    height: 30px;
    text-align: center;
    font-size: x-large;
    margin-top: 5px;
    line-height: 26px;
    cursor: pointer;
  }

  .stop-users-btn {
    border-radius: 50%;
    color: #a2d9ce;
    background-color: #e8f6f3;
    width: 30px;
    height: 30px;
    text-align: center;
    font-size: x-large;
    line-height: 30px;
    cursor: pointer;
  }

  .end-users-btn {
    border-radius: 50%;
    background-color: transparent;
    width: 30px;
    height: 30px;
    text-align: center;
    font-size: x-large;
    padding-top: 9px;
    line-height: 30px;
    cursor: pointer;
  }

  .stopAll-btn {
    border-radius: 50%;
    color: red;
    width: 30px;
    height: 30px;
    text-align: center;
    font-size: x-large;
    margin-top: 5px;
    line-height: 26px;
    cursor: pointer;
  }
  

/* End of NewShareManagement */

/* privateGPT */

.chat-container {
  max-width: 750px;
  margin: auto;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  text-align: center;
  padding: 25px 10px;
  background: #ffffffcc;
  backdrop-filter: blur(5px);
  border-bottom: 1px solid #ddd;
}

header h1 {
  margin: 0;
  font-size: 26px;
}

.chat-window {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.message {
  max-width: 80%;
  margin: 10px 0;
  padding: 12px 15px;
  border-radius: 15px;
  line-height: 1.4;
  animation: fadeIn 0.2s ease-in-out;
}

.message.user {
  background: #0078ff;
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 0;
}

.message.bot {
  background: #e6e6e6;
  color: #222;
  margin-right: auto;
  border-bottom-left-radius: 0;
}

.chat-form {
  display: flex;
  padding: 15px;
  background: #fff;
  border-top: 1px solid #ddd;
}

.chat-form {
  width: 100%;
}

.input-wrapper {
  position: relative;
  width: 100%;
}

.chat-form input {
  width: 100%;
  padding: 12px 50px 12px 12px; /* padding-right to make space for button */
  border: 1px solid #ccc;
  border-radius: 25px;
  outline: none;
  font-size: 16px;
  box-sizing: border-box;
  transition: border 0.2s;
}

.chat-form input:focus {
  border-color: #0078ff;
}

.chat-form button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: #0078ff;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.chat-form button:hover {
  background: #005ecb;
  transform: translateY(-50%) scale(1.1); /* subtle bounce on hover */
}

.chat-form button:active {
  background: #004a9c;
  transform: translateY(-50%) scale(0.95); /* press effect */
}


.loading {
  opacity: 0.6;
  font-style: italic;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* End of privateGPT */

@media (max-width: 600px) {
    .maindiv{
        margin-top: 20%;
        margin-left: 50px;
        margin-right: 50px;
        display: flex;
        justify-content: center;
    }
    .centerdiv{
        margin-top: 5%;
        margin-left: 50px;
        margin-right: 50px;
        display: flex;
        justify-content: center;
    }
    .secondarycenterdiv{
        margin-top: 5%;
        margin-left: 50px;
        margin-right: 50px;
        display: flex;
        justify-content: center;
    }

    .sharedManagementContainer{
      width: 400px;
      margin: auto;
      padding: 20px;
      margin-top: 50px;
      margin-bottom: 30px;
      box-shadow: 0 4px 12px rgba(205, 204, 204, 0.1) !important;
      border-radius: 50px !important;
      border-bottom: 1px;
      border-bottom-color: white;
      background-color: #f2f3f4 !important;
    }
    
    .folderContainer{
      width: 380px;
      height: auto;
      display: flex;
      flex-direction: column;
      margin:  auto;
      padding: 20px;
      margin-top: 50px;
      margin-bottom: 30px;
      box-shadow: 0 4px 12px rgba(205, 204, 204, 0.1) !important;
      border-radius: 50px !important;
  }
 

    .userimage{
        display: flex;
        justify-content: center;
    }

    .menuprofilepic{
        display: none;
    }

    .menuprofile{
        display:contents;
        display: flex;
    }
    
    .errorimage{
        width: 100% !important;
        height: 100% !important;
    }
    .managesharesdiv{
        margin-top: 20px;
        margin-bottom: 5px;
        margin-left: 10px;
        margin-right: 10px;       
    }
    .searchBtn{
        display: none;
    }
    /* Alert  messages css */
    .alert{
        /* position makes the alert div not to move the text bellow */
        display: flex;
        position: absolute;
        max-width: 100%;
        line-height: 1em;
        align-items: center !important;
        gap: 0.2em;
        border: 1px solid transparent !important;
        border-radius: 30px !important;
        z-index: 1;
    }
    .alert-success{
        color: #3c763d !important;
        background-color: #dff0d8 !important;
        border-color: #d6e9c6 !important;
        padding: 0.5em !important;
    }
    .alert-danger{
        color: #c3593e !important;
        background-color: #f8d7da !important;
        border-color: #f8d7da !important;
        padding: 0.5em !important;
    }
    .alert-warning{
        color: #3e5c74 !important;
        background-color: #fff3cd !important;
        border-color: #fff3cd !important;
        padding: 0.5em !important;
    }
}

@media (max-width: 400px){
  .sharedManagementContainer{
    width: 350px;
    margin: auto;
    padding: 20px;
    margin-top: 50px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(205, 204, 204, 0.1) !important;
    border-radius: 50px !important;
    border-bottom: 1px;
    border-bottom-color: white;
    background-color: #f2f3f4 !important;
  }
    .folderContainer{
    width: 320px;
    height: auto;
    display: flex;
    flex-direction: column;
    margin:  auto;
    padding: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(205, 204, 204, 0.1) !important;
    border-radius: 50px !important;
  }
 
}
