* {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      font-family: Arial, sans-serif;
    }

    body {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 100vh;
      background-color: #f5f5f5;
      overflow: hidden;
    }

    .container {
      width: 300px;
      background-color: #ffffff;
      /*border-radius: 20px;
      box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);*/
      max-width: 600px;
      height: 80vh; /* Set a fixed height for the container */
      margin: 0 auto;
      padding: 20px;
      border: 1px solid #ddd;
      border-radius: 10px;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      overflow-y: auto; /* Add a vertical scrollbar when content overflows */
      overflow-x: hidden; /* Prevent horizontal scrolling */
    }

    /* Scrollbar Styling */
    .container::-webkit-scrollbar {
      width: 8px;
    }

    .container::-webkit-scrollbar-track {
      background: #f1f1f1; /* Track color */
    }

    .container::-webkit-scrollbar-thumb {
      background: #888; /* Thumb color */
      border-radius: 5px;
    }

    .container::-webkit-scrollbar-thumb:hover {
      background: #555; /* Thumb hover color */
    }

  /* Recording section styling */
    .recording-section {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
      margin-bottom: 20px;
      width: 100%;
    }

    .recording-section label {
      font-weight: 600;
      color: #333;
      margin-bottom: 5px;
    }

    .recording-section input[type="file"] {
      width: 100%;
      max-width: 500px;
      padding: 12px;
      font-size: 16px;
      border: 2px solid #ddd;
      border-radius: 8px;
      background-color: #f9f9f9;
      color: #333;
      cursor: pointer;
      transition: border-color 0.3s ease, box-shadow 0.3s ease;
    }

    .recording-section input[type="file"]::file-selector-button {
      padding: 8px 16px;
      margin-right: 10px;
      background-color: #28a745;
      color: white;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }

    .recording-section input[type="file"]::file-selector-button:hover {
      background-color: #218838;
    }

    .recording-section input[type="file"]:hover {
      border-color: #ccc;
    }

    .recording-section input[type="file"]:focus {
      border-color: #28a745;
      box-shadow: 0 0 5px rgba(40, 167, 69, 0.3);
      outline: none;
    }

    /* Buttons container to align Start and End horizontally */
    .button-group {
      display: flex;
      gap: 10px;
      width: 100%;
    }

    .button-group button {
      flex: 1;
      padding: 10px;
      font-size: 16px;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }

    #start-recording {
      background-color: #28a745;
      color: white;
    }

    #end-recording {
      background-color: #dc3545;
      color: white;
    }

    .button-group button:disabled {
      background-color: #ccc;
      cursor: not-allowed;
    }

    /* Responsive styling */
    @media (max-width: 768px) {
      .recording-section input[type="file"] {
        font-size: 14px;
      }

      .button-group button {
        padding: 8px;
        font-size: 14px;
      }
    }


    /* Context section styling */
    .context-section {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
      width: 100%;
      max-width: 500px; /* Matches the max-width of the attachment field */
      margin-bottom: 20px;
    }

    .context-section label {
      font-weight: 600;
      color: #333;
      margin-bottom: 5px;
    }

    .context-section select {
      width: 100%; /* Full width to match button group */
      padding: 10px;
      font-size: 16px;
      border: 2px solid #ddd;
      border-radius: 8px;
      background-color: #f9f9f9;
      color: #333;
      cursor: pointer;
      transition: border-color 0.3s ease, box-shadow 0.3s ease;
    }

    .context-section select:hover {
      border-color: #ccc;
    }

    .context-section select:focus {
      border-color: #28a745;
      box-shadow: 0 0 5px rgba(40, 167, 69, 0.3);
      outline: none;
    }

    /* Button group in the recording section */
    .button-group {
      display: flex;
      gap: 10px;
      width: 100%;
    }

    .button-group button,
    .context-section select {
      flex: 1; /* Make buttons and select field equal width */
      padding: 10px;
      font-size: 16px;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }

    #start-recording {
      background-color: #28a745;
      color: white;
    }

    #end-recording {
      background-color: #dc3545;
      color: white;
    }

    .button-group button:disabled {
      background-color: #ccc;
      cursor: not-allowed;
    }

    /* Responsive styling */
    @media (max-width: 768px) {
      .context-section select,
      .button-group button {
        padding: 8px;
        font-size: 14px;
      }
    }

    /* Option styling */
    #context-select option {
      color: #333;
      font-size: 16px;
      padding: 8px;
    }
    .header {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 20px;
    }

    .header img {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background-color: #d4e4fa;
    }

    .header h2 {
      font-size: 1.2em;
      color: #333;
    }

    .feedback {
      margin: 10px 0;
      padding: 10px;
      background-color: #f0f5ff;
      border-radius: 8px;
      display: flex;
      align-items: center;
      gap: 5px;
    }

    .feedback span {
      color: #4a90e2;
      font-size: 14px;
    }

    .section {
      padding: 12px 0;
      border-bottom: 1px solid #eee;
      cursor: pointer;
      display: flex;
      align-items: center;
      position: relative;
      flex-direction: column;
    }

    .section:last-child {
      border-bottom: none;
    }

    .section-header {
      display: flex;
      align-items: center;
      width: 100%;
    }

    .section-icon {
      font-size: 1.5em;
      color: #4a90e2;
      margin-right: 10px;
    }

    .section-details {
      display: flex;
      flex-direction: column;
      flex-grow: 1;
    }

    .section-title {
      font-size: 14px;
      color: #555;
      font-weight: 600;

    }

    .section-status {
      font-size: 14px;
      font-weight: bold;
    }

    .section-status.good {
      color: green;
    }

    .section-status.warning {
      color: #e67e22;
    }

    .section-status.alert {
      color: #e74c3c;
    }

    .expand-arrow {
      font-size: 16px;
      color: #aaa;
      transform: rotate(0deg);
      transition: transform 0.3s;
    }

    .expand-arrow.expanded {
      transform: rotate(180deg);
    }

    .section-content {
      display: none;
      width: 100%;
      padding: 8px 0;
      font-size: 13px;
      color: #777;
    }

    .footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-top: 10px;
    }

    .footer button {
      font-size: 16px;
      color: #4a90e2;
      background: none;
      border: none;
      cursor: pointer;
    }

    .footer button:hover {
      opacity: 0.7;
    }

    #audio-controls {
      margin-top: 1em;
    }

    .file-input-wrapper {
      display: flex;
      align-items: center;
      gap: 0.5em;
      position: relative;
    }

    #file-attachment {
      display: none; /* Hide default file input */
    }

    /* Common styles for icon buttons */
    .icon-button,
    .clear-button {
      border: none;
      background-color: #f0f0f0;
      color: #555;
      font-size: 1.2em;
      cursor: pointer;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background-color 0.3s;
    }

    /* Clear button - Red background */
    .clear-button {
      background-color: #ff4c4c;
      color: #fff;
    }
    .clear-button:hover {
      background-color: #e60000;
      color: #fff;
    }

    /* Play button - Green background */
    .icon-button.play-button {
      background-color: #4caf50;
    }
    .icon-button.play-button:hover {
      background-color: #388e3c;
    }

    .icon-button svg {
      width: 16px;
      height: 16px;
      fill: #555;
    }

    .icon-button:disabled {
      cursor: not-allowed;
      opacity: 0.5;
    }

    .file-name {
      font-size: 0.9em;
      color: #555;
      max-width: 150px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    @media (max-width: 600px) {
      .file-input-wrapper {
        flex-direction: column;
        align-items: flex-start;
      }
      .file-name {
        max-width: 100%;
      }
    }

    /* Show clear button only when there's an attachment */
    .file-input-wrapper.has-file .clear-button {
      display: flex;
    }

    audio {
      width: 100%;
      margin-top: 15px;
    }

    /* Meter Container */
    .meter-container {
      position: relative;
      width: 120px;
      height: 60px;
      margin: 20px auto;
    }

    .meter {
      position: relative;
      width: 100%;
      height: 100%;
      background: linear-gradient(to right, green, yellow, red);
      border-radius: 100px 100px 0 0;
      overflow: hidden;
    }

    .pointer {
      position: absolute;
      bottom: 0;
      left: 50%;
      width: 3px;
      height: 80%;
      background-color: #333;
      transform-origin: bottom;
      transform: rotate(-90deg);
      transition: transform 0.3s ease-in-out;
    }

    input[type="range"] {
      width: 100%;
      margin-top: 10px;
      visibility: hidden;
    }

    .send-btn {
      background-color: #007BFF; /* Blue color for send */
      color: white;
      border: none;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      font-size: 16px;
      cursor: pointer;
      display: flex;
      justify-content: center;
      align-items: center;
      margin-left: 10px;
      transition: background-color 0.3s ease;
    }

    .send-btn:hover {
      background-color: #0056b3; /* Darker blue on hover */
    }
