:root {
    --font-color: #e0e0e0;
  }
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body {
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(135deg, #121212, #3a3a3a);
    color: var(--font-color);
    transition: background 0.3s, color 0.3s;
  }
  body.light-mode {
    background: linear-gradient(135deg, #f5f5f5, #ffffff);
    color: #333;
  }
  .top-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    transition: background 0.3s;
  }
  body.light-mode .top-bar {
    background: rgba(245, 245, 245, 0.9);
  }
  .top-bar button {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: #00ffc8;
    color: #000;
  }
  body.light-mode .top-bar button {
    background-color: #1976d2;
    color: #fff;
  }
  .top-bar button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(0, 255, 200, 0.8);
  }
  .autosave-container,
  .font-container {
    position: relative;
    display: inline-block;
  }
  .autosave-container select,
  .font-container select {
    position: absolute;
    top: 45px;
    right: 0;
    display: none;
    padding: 5px;
    font-weight: bold;
    border-radius: 5px;
    border: 1px solid #ccc;
  }
  .container {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
  }
  .header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 1s ease;
  }
  .header h1 {
    font-size: 3rem;
    color: #00ffc8;
    text-shadow: 0 0 10px rgba(0, 255, 200, 0.8);
  }
  body.light-mode .header h1 {
    color: red;
  }
  .form-section {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  .form-section input[type="text"],
  .form-section textarea {
    width: 100%;
    max-width: 800px;
    padding: 12px;
    font-size: 1.1rem;
    border: 2px solid #00ffc8;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
  }
  .form-section input[type="text"]:focus,
  .form-section textarea:focus {
    border-color: #ff00de;
    box-shadow: 0 0 15px #ff00de;
  }
  body.light-mode .form-section input[type="text"],
  body.light-mode .form-section textarea {
    background: #fff;
    color: #333;
    border-color: #1976d2;
  }
  body.light-mode .form-section input[type="text"]:focus,
  body.light-mode .form-section textarea:focus {
    border-color: #ff00de;
    box-shadow: 0 0 15px #ff00de;
  }
  .btn-row {
    display: inline-flex;
    gap: 15px;
    margin-top: 15px;
  }
  .btn-row button {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    background: #00ffc8;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  body.light-mode .btn-row button {
    background: #1976d2;
    color: #fff;
  }
  .btn-row button:hover {
    background: #ff00de;
    transform: scale(1.05);
    box-shadow: 0 0 20px #ff00de;
  }
  .cards-section {
    animation: fadeIn 1s ease;
  }
  .cards-section h2 {
    margin-bottom: 20px;
    font-size: 2rem;
    text-align: center;
    color: #ff00de;
    text-shadow: 0 0 10px rgba(255, 0, 222, 0.8);
  }
  body.light-mode .cards-section h2 {
    color: red;
    text-shadow: 0 0 5px red;
  }
  #cardsContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }
  .card {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid #00ffc8;
    border-radius: 15px;
    padding: 20px;
    width: 300px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    overflow: hidden;
  }
  body.light-mode .card {
    background: #fff;
    color: #333;
    border-color: #1976d2;
  }
  .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px #ff00de;
  }
  .card h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
  }
  .card .card-text-container {
    height: 80px;
    overflow: hidden;
    position: relative;
  }
  .card .card-text-container.expanded {
    height: auto;
  }
  .card .card-text-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
  }
  .card .card-text-container.expanded::after {
    display: none;
  }
  .card .toggle-btn {
    position: absolute;
    bottom: 5px;
    right: 10px;
    background: #00ffc8;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
  }
  .card .toggle-btn:hover {
    background: #ff00de;
  }
  .card .actions {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    gap: 5px;
  }
  .card:hover .actions {
    opacity: 1;
  }
  .card .actions button {
    padding: 5px 8px;
    font-size: 0.9rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s;
  }
  .card .actions button.edit {
    background: #ffaa00;
    color: #000;
  }
  .card .actions button.delete {
    background: #ff0055;
    color: #fff;
  }
  .card .actions button:hover {
    transform: scale(1.1);
  }
  .tooltip {
    position: fixed;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 1rem;
    opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1000;
  }
  .fade-out {
    opacity: 0;
  }
  @keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  