body {
    font-family: Arial, sans-serif;
    display: flex;
    margin: 0;
    padding: 0;
}

.sidebar {
    width: 250px;
    min-width: 250px; /* Prevent shrinking */
    max-width: 250px; /* Prevent growing */
    background-color: #f4f4f4;
    padding: 15px;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden; /* No sideways scrolling */
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
}

.sidebar ul li:hover {
    background-color: #e9e9e9;
}

.content {
    flex-grow: 1;
    padding: 20px;
}

.copy-notification {
    position: fixed;
    top: 10px;
    right: 10px;
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    border-radius: 5px;
    opacity: 0.9;
    z-index: 999;
}

.content img {
    display: block;
    max-width: 320px;
    width: 100%;
    height: auto;
    margin: 0 auto 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    object-fit: contain;
}

.template-image {
    float: right;
    max-width: 180px;
    margin: 0 0 1em 1em;
    opacity: 0.6;
    border-radius: 6px;
}

.template-field {
    background-color: #f9fbff;
    border: 1px solid #dce4f0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.template-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.template-icon {
    font-size: 1.2rem;
    margin-right: 6px;
}

.template-content {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
}

.template-header {
    background-color: #eaf2ff;
    border: 1px solid #d0e0ff;
    padding: 10px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #003366;
}

.sidebar {
    width: 250px;
    background-color: #f8fbff;
    border-right: 1px solid #dde5f0;
    padding: 20px 10px;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 2px 0 4px rgba(0,0,0,0.05);
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 8px;
    margin-bottom: 6px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #2c3e50;
}

.sidebar ul li:hover {
    background-color: #e6f0ff;
}

.sidebar ul li.active {
    background-color: #d4e7ff;
    font-weight: 600;
}

@media screen and (max-width: 768px) {
    body {
      flex-direction: column;
    }
  
    .sidebar {
      width: 100%;
      max-width: 100%;
      height: auto;
      border-right: none;
      border-bottom: 1px solid #ccc;
      box-shadow: none;
    }
  
    .content {
      padding: 12px;
    }
  
    .template-image {
      float: none;
      display: block;
      margin: 20px auto;
      max-width: 90%;
    }
  
    #header {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
    }
  
    #header h1 {
      font-size: 1.4rem;
    }
  
    #view-slides-btn {
      font-size: 1rem;
      padding: 8px 16px;
    }
  }
  