@import url('https://fonts.googleapis.com/css2?family=Silkscreen&display=swap');

*,
html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Silkscreen', monospace;
    background-color: #0d1117;
    color: #c9d1d9;
    overflow-y: hidden;
    height: 100%;
}
.site-heading {
    left: 30%;
    font-size: 36px;
    margin-top: 20px;
    color: #196b28; 
    letter-spacing: 2px;
}
pre{
    font-family: 'Silkscreen', monospace;
}
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background-color: #161b22;
    box-shadow: -5px 0 10px rgba(0, 0, 0, 0.7);
    padding: 2px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: #f0f6fc;
    overflow-y: hidden;
    overflow-x:hidden;
    padding-bottom: 100px;
}

.sidebar-header {
    font-size: 1.8em;
    text-align: center;
    border-bottom: 2px solid #c9d1d9;
    padding-bottom: 10px;
    margin:20px;
    margin-bottom: 20px;
}

/* Audio Item Styles */
.audio-item {
    background-color: #21262d;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex-wrap: wrap;
    justify-content: space-between;
}

.audio-item span {
    flex: 1 1 auto;
    word-wrap: break-word;
    margin-right: 10px;
    min-width: 0;
}

.audio-item:hover {
    background-color: #30363d;
}

.audio-item .play-btn,
.audio-item .delete-btn {
    background-color: #238636;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.audio-item .play-btn {
    margin-right: 10px;
}

/* Change delete button to red */
.audio-item .delete-btn {
    background-color: #D73A49;
}

.audio-item .delete-btn:hover {
    background-color: #bf2a3f;
}

/* Centered Container Styles */
.container {
    position: absolute;
    top: 50%;
    left: 45%;
    transform: translate(-50%, -50%);
    width: 400px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Textarea Styles */
textarea.text {
    width: 100%;
    height: 100px;
    padding: 10px;
    border: 1px solid #30363d;
    border-radius: 5px;
    font-size: 16px;
    background-color: #0d1117;
    color: #f0f6fc;
    resize: none;
}

/* Button Styles */
button.btn,
.file-label-green,
.upload-btn,
.update-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Upload Button Styles */
.upload-btn {
    background-color: #007bff;
    color: white;
    width: 200px;
    margin-bottom: 10px;
}

.upload-btn:hover {
    background-color: #0056b3;
}

/* Update Button Styles */
.update-btn {
    background-color: #238636;
    color: white;
}

.update-btn:hover {
    background-color: #2ea043;
}

/* File Input Hidden */
input.file-input {
    display: none;
}

.status {
position: absolute;
top: 20px; /* 20px from the top of the container */
left: 10px;
font-size: 24px;
color: red;
}
/* File Upload Label & Button */
.file-label-green {
    background-color: #238636;
    color: white;
    padding: 10px 20px;
    display: block;
    text-align: center;
    border-radius: 5px;
    width: 200px;
    margin-bottom: 10px;
}

.file-label-green:hover {
    background-color: #2ea043;
}
/* Make Audio List Scrollable and fill available space */
.audio-list {
    max-height: calc(100% - 80px); /* Adjust based on other elements height */
    overflow-y: auto;
    margin-bottom: 20px;
    flex-grow: 1;
}
/* Keep the sidebar content fixed */
.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-grow: 1;
}
/* Add space between each form element in the container */
.container form {
display: flex;
flex-direction: column;
gap: 15px; /* Add gap between form elements */
}

.text {
width: 100%;
padding: 10px;
margin: 6px;
font-size: 18px;
background-color: #0d1117;
color: #f0f6fc;
border: 1px solid #30363d;
border-radius: 5px;
resize: none;
}
#message-form {
margin-bottom: 30px; /* Add more space after the message form */
}
button.btn {
padding: 10px 20px;
border: none;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s ease;
background-color: #238636;
color: white;
}

button.btn:hover {
background-color: #2ea043;
}

input[type="url"] {
padding: 10px;
border: 1px solid #30363d;
background-color: #0d1117;
color: #f0f6fc;
border-radius: 5px;
font-size: 16px;
width: 100%;
}
/* Left Sidebar Styles */
.left-sidebar {
position: fixed;
top: 0;
left: 0; /* Position to the left side */
width: 280px;
height: 100%;
background-color: #161b22;
box-shadow: 5px 0 10px rgba(0, 0, 0, 0.7);
padding: 20px;
display: flex;
flex-direction: column;
gap: 20px;
color: #f0f6fc;
overflow-y: hidden;
padding-bottom: 100px;
}

.left-sidebar .sidebar-header {
font-size: 1.8em;
text-align: center;
border-bottom: 2px solid #c9d1d9;
padding-bottom: 10px;
margin-bottom: 20px;
}

/* Bottom Fixed for Schedule Button */
.bottom-fixed {
position: absolute;
bottom: 20px;
left: 20px;
right: 20px;
display: flex;
flex-direction: column;
gap: 10px;
align-items: center;
}

.schedule-btn {
width: auto;
padding: 10px 20px;
border: none;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s ease;
background-color: #238636;
color: white;
text-align: center;
}

.bottom-fixed {
display: flex;
justify-content: center;
align-items: center;
position: absolute;
bottom: 20px;
left: 0;
right: 0;
}


body {
margin-left: 320px; 
}
/* Bottom Left Buttons */
.bottom-left-buttons {
position: fixed;
bottom: 20px;
left: 20px; /* Align with the left sidebar */
display: flex;
flex-direction: column;
gap: 10px;
align-items: flex-start; /* Align buttons to the left */
}

/* Style for Buttons */
.choose-file-btn,
.update-btn {
background-color: #238636; /* Default green background */
color: white;
padding: 8px 16px; /* Reduced padding for a smaller size */
border-radius: 5px;
cursor: pointer;
text-align: center;
display: inline-block;
transition: background-color 0.3s ease;
width: 150px; /* Same width for both buttons */
font-size: 14px; /* Slightly smaller font */
}

/* Hover Effects */
.choose-file-btn:hover {
background-color: #2ea043;
}

.update-btn {
background-color: #007bff; /* Blue background */
}

.update-btn:hover {
background-color: #0056b3;
}

/* Hide File Input */
.file-input {
display: none;
}
/* Task Form Styles */
#task-form {
display: flex;
flex-direction: column;
margin-top: 20px; /* Add space between this form and the previous form */
}

/* Date-Time Input Styles */
.datetime-input {
padding: 10px;
border: 1px solid #30363d;
background-color: #0d1117;
color: #f0f6fc;
border-radius: 5px;
font-size: 16px;
width: 100%;
}
.task-item {
  background-color: #21262d;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
  overflow: hidden; /* Prevents any overflow */
  box-sizing: border-box; /* Ensures padding is included in width/height */
}

.task-details {
  flex-grow: 1; /* Task details take up available space */
  overflow-wrap: break-word; /* Prevent text overflow */
  word-break: break-word; /* Ensure long text breaks properly */
  padding-right: 10px; /* Add space between details and actions */
  display: flex;
  flex-direction: column; /* Align details vertically */
}

.task-actions {
  flex-shrink: 0; /* Prevents shrinking of actions */
  display: flex;
  align-items: center;
}


.bottom-left-container {
    position: fixed;
    bottom: 20px;
    left: 220px; /* Align it after the sidebar */
    display: flex;
    align-items: center;
    gap: 10px;
}
/* Bottom Left Buttons */
.bottom-left-buttons {
position: fixed;
bottom: 20px;
left: 20px; /* Align with the left sidebar */
}

/* Style for Buttons */
.choose-file-btn,
.update-btn {
background-color: #238636; /* Default green background */
color: white;
padding: 8px 16px; /* Reduced padding for a smaller size */
border-radius: 5px;
cursor: pointer;
text-align: center;
display: inline-block;
transition: background-color 0.3s ease;
width: 150px; /* Same width for both buttons */
font-size: 14px; /* Slightly smaller font */
}

/* Hover Effects */
.choose-file-btn:hover {
background-color: #2ea043;
}

.update-btn {
background-color: #007bff; /* Blue background */
}

.update-btn:hover {
background-color: #0056b3;
}

/* Hide File Input */
.file-input {
display: none;
}
.audio-list {
    max-height: calc(100% - 50px); /* Adjusted to decrease by 30px */
    overflow-y: auto;
    margin-bottom: 20px;
    flex-grow: 1;
}
.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%; /* Full height of the sidebar */
}

.audio-list {
    flex-grow: 1; /* Take up remaining space */
    overflow-y: auto;
    margin-bottom: 20px;
}
.right-toggle-buttons {
    position: fixed; /* Keeps the buttons fixed on the screen */
    top: 10%; /* Adjust to control vertical positioning */
    right: 60px; /* Adjust for horizontal distance from the right edge */
    display: flex;
    transition: right 0.3s ease-in-out;
    flex-direction: column;
    gap: 10px; /* Space between buttons */
}

.right-toggle-buttons button {
    padding: 10px 20px;
    font-size: 14px;
    color: white;
    background-color: green; /* Default color */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.right-toggle-buttons button:hover {
    opacity: 0.9;
}
#status {
  margin-bottom: 20px; 
}
.left-side-container {
  position: absolute;
  top: 70px;
  left: 20px;
  width: 200px; /* Adjust as needed */
}

.dropdown-container {
  margin: 10px 0;
}

  
.dropdown {
padding: 10px;
font-size: 16px;
border-radius: 5px;
border: 2px solid #196b28; /* Green outline */
background-color: #161b22; /* Same as the sidebar background color */
color: #f0f6fc; /* Text color matching sidebar */
width: 120px;
transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.dropdown:hover,
.dropdown:focus {
border-color: #2ea043; 
box-shadow: 0 0 5px #2ea043;
}

.dropdown-container label {
font-size: 15px;
margin-bottom: 10px;
display: block;
color: #f0f6fc; 
}
.overlay-box {
  position: absolute;
  top: 28%; 
  left: 50%; 
  transform: translateX(-50%); 
  width: 40%;
  padding: 20px; 
  background-color: #161b22; 
  color: #fff; 
  border-radius: 10px;
  z-index: 999; 
  text-align: center; 
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: none;
}
#task-form .text, 
#task-form .datetime-input, 
#task-form .btn {
  display: block; 
  margin-bottom: 20px; 
  width: 100%; 
  margin-top: 20px;
}

#task-form {
  max-width: 350px; /* Optional: Limit the form's width */
  margin: 0 auto; /* Optional: Center the form */
}

.progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: #f3f3f3;
    z-index: 1000;
  }
  .progress-bar {
    height: 100%;
    width: 0%;
    background-color: #4caf50;
    transition: width 0.3s ease;
  }

#errinput{
    border-radius: 12px;
    padding: 10px;
    border: 1px solid #30363d;
    background-color: #0d1117;
    color: #f0f6fc;
    border-radius: 5px;
    font-size: 16px;
    width:170px;
}

#errbut{
    padding: 10px 20px;
    margin: 10px;
    margin-left: 0px;
    align-items: center;
    width: 170px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    background-color: #238636;
    color: white;
}
.errcont{

    margin-top: 65px;
}
    .right-switcher {
      width: 50px;
      background-color: #333;
      color: white;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding-top: 10px;
      box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
      position: fixed;
      right: 0;
      top: 0;
      height: 100%;
    }

    .right-switcher button {
      width: 40px;
      height: 40px;
      margin: 10px 0;
      background: none;
      border: none;
      color: white;
      cursor: pointer;
    }

    .right-switcher button.active {
      background-color: #555;
      border-radius: 5px;
    }

    .right-switcher button:hover {
      background-color: #444;
      border-radius: 5px;
    }

    .sidebar {
      width: 280px;
      color: white;
      overflow-y: hidden;
      box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
      transition: transform 0.3s ease-in-out;
      position: fixed;
      right: 50px;
      top: 0;
      height: 100%;
    }

    .sidebar.hidden {
      transform: translateX(100%);
    }

    .sidebar-content {
      padding: 10px;
      overflow-y: scroll;
    }
.card {
  width: 250px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  font-family: Arial, sans-serif;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.file-label {
  display: block;
  font-size: 1rem;
  margin-bottom: 7px;
  cursor: pointer;
  color: #555;
}

.file-input {
  display: none;
}

.upload-btn {
  padding: 10px 15px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
  font-size: 1rem;
}

.upload-btn:hover {
  background-color: #45a049;
}
.task-item {
  width: 100%;
  height: auto;
  padding: 10px;
  margin: 5px 0;
}
.task-item {
  flex: 1 1 auto;
  min-width: 200px;
}
/* Style for individual task cards */
.task-item {
  display: flex;
  flex-direction: column;
  background-color:  #21262d;
  padding: 15px;
  margin: 10px 0;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  flex-grow: 0;
  flex-shrink: 0;
  overflow-wrap: break-word;
}

/* Wrapper for the task details and the delete button */
.task-item-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

/* Task details section */
.task-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  /* Allow the task details to take available space */
}

/* Green label style */
.green-label {
  color: green;
  font-weight: bold;
  margin-right: 5px;
}

/* Delete button style */
.task-actions {
  display: flex;
  align-items: center;
}

.delete-btn {
  background-color: transparent;
  border: none;
  color: #d73a49;
  cursor: pointer;
  font-size: 18px;
  padding: 5px;
}

.delete-btn:hover {
  color: darkred;
}

/* For larger screen, increase the sidebar height */
@media (min-width: 768px) {
  .sidebar-content {
    max-height: 500px;
  }
}
