:root {
    --theme-color: #1c1a99;
  }
  
  body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  #snippet-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    flex: 1;
  }
  
  #snippet-header {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--theme-color);
  }
  
  #search-container {
    margin-bottom: 20px;
    position: relative;
  }
  
  #search-input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    padding-right: 30px;
  }
  
  #clear-search {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 20px;
    color: #999;
  }
  
  #clear-search:hover {
    color: #555;
  }
  
  .no-results {
    text-align: center;
    color: #999;
   
  }
  
  #search-input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
  }
  
  .snippet-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
  }
  
  .snippet-item {
    background-color: #f9f9f9;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
  }
  
  .snippet-title {
    font-weight: bold;
    margin-bottom: 10px;
    margin-right: 80px;
  }
  
  .snippet-data {
    margin-bottom: 10px;
    word-wrap: break-word;
  }
  
  .snippet-date {
    font-size: 12px;
    color: #888;
  }
  
  .action-icons {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
  }
  
  .copy-icon,
  .edit-icon,
  .delete-icon {
    cursor: pointer;
    margin-left: 10px;
    color: #555;
  }
  
  .edit-icon:hover,
  .delete-icon:hover {
    color: #e74c3c;
  }
  
  .modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
  }
  
  .modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 4px;
  }
  
  .modal-content h2 {
    margin-top: 0;
    color: var(--theme-color);
  }
  
  .modal-content input,
  .modal-content textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
  }
  
  .modal-content button {
    display: block;
    width: 100%;
    padding: 10px;
    font-size: 16px;
    background-color: var(--theme-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .modal-content button:hover {
    background-color: #0d0c5f;
  }
  
  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }
  
  #add-snippet-btn {
    display: block;
    width: 100%;
    padding: 10px;
    font-size: 16px;
    background-color: var(--theme-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 20px;
  }
  
  #add-snippet-btn:hover {
    background-color: #0d0c5f;
  }
  
  #toast {
    position: fixed;
    top: 40px;
    right: 40px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  #theme-color-picker {
    position: absolute;
    top: 10px;
    right: 10px;
  }
  
  .footer {
    text-align: center;
    padding: 10px 0;
    background-color: var(--theme-color);
    color: #fff;
    font-size: 14px;
    margin-top: auto;
  }
  
  .footer a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
  }
  
  .footer a:hover {
    text-decoration: underline;
  }
  
  a.external::after {
    content: "↗";
    margin-left: 4px;
  }
  
  @media screen and (max-width: 768px) {
    .snippet-list {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media screen and (max-width: 480px) {
    .snippet-list {
      grid-template-columns: 1fr;
    }
  }