* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
background-color: #f8f9fa;
font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

a {
text-decoration: none;
user-select: none;
}
/* Navbar */
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
background: linear-gradient(to bottom, #0083DF, #00A8FF);
padding: 12px 20px;
color: #fff;
position: relative;
z-index: 100;
}

.navbar .logo {
font-size: 25px;
font-weight: bold;
display: flex;
align-items: center;
gap: 8px;
}
.navbar .menu {
display: flex;
gap: 20px;
}

.navbar .menu a {
color: #fff;
text-decoration: none;
font-size: 16px;
display: flex;
align-items: center;
gap: 6px;
}

.navbar .hamburger {
display: none;
font-size: 30px;
cursor: pointer;
}
    
/* Sidebar */
.sidebar {
      position: fixed;
   top: 0;    right: -230px;
  width: 230px;
    height: 100%;
    background: linear-gradient(to bottom, #0083DF, #00A8FF);
   padding-top: 60px;
      transition: 0.3s;
    z-index: 1000;
    }

    .sidebar.active {
      right: 0;
    }

    .sidebar a {
      display: block;
      padding: 15px 20px;
      color: #fff;
      text-decoration: none;
      font-size: 16px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .sidebar a:hover {
    color: #fff;
}

    .sidebar a i {
      margin-right: 10px;
    }

    .sidebar .close-btn {
      position: absolute;
      top: 20px;
      left: 15px;
      font-size: 22px;
      cursor: pointer;
      color: #fff;
      font-weight: bold;
    }

    /* Container */
    .container {
      width: 100%;
      max-width: 650px;
      margin: 0 auto;
      padding: 15px;
      border: 1px solid #ccc;
      border-top: none;
    }

.container h1 {
      text-align: center;
      font-size: 25px;
      margin: 30px auto 15px auto;
 }
    
.container h2 {
      font-size: 22px;
      margin-bottom: 12px;
}

.container p {
      line-height: 1.6;
      font-size: 15px;
      margin-bottom: 15px;
 }

    
/* Form Container */
label {
  display: block;
  margin-top: 12px;
  font-weight: 400;
  color: #333;
  font-size: 16px;
}

input,
select,
textarea {
  width: 100%;
  padding: 8px 10px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  background-color: #fff;
}

textarea {
height: 150px;
}

input[type="text"] {
  padding: 10px 12px;
  border-radius: 5px;
  margin-bottom: 15px;
  background-color: #fff;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #00A8FF;
  box-shadow: 0 0 6px rgba(76, 175, 80, 0.3);
  outline: none;
}

/* Form Button */
.form-container button {
  width: 100%;
  background: linear-gradient(to bottom, #0083DF, #00A8FF);
  border: none;
  padding: 10px;
  border-radius: 5px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.error {
  color: red;
  font-size: 13px;
  margin-top: 5px;
}

/* Messages */
.message {
  background: #eaf7ff;
  border: 1px solid #b5e0ff;
  color: #055160;
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}
    #titleError,
    #listTypeError,
    #descriptionError {
     color: red;
    }
    #loadingSpinner {
      display: none;
      text-align: center;
      margin: 15px 0;
    }
    #response {
      margin-top: 20px;
    }
    .result-box {
      background-color: #f7f7f7;
      padding: 20px;
      border-radius: 5px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
      margin-top: 20px;
    }
    .copy-btn {
      background-color: #4CAF50;
      color: white;
      padding: 10px 15px;
      border: none;
      cursor: pointer;
      border-radius: 5px;
    }
    .copy-btn:hover {
      background-color: #45a049;
    }
    
/* Toolbar container */
.editor-toolbar { border: 1px solid #ccc; padding: 8px; background: #f9f9f9; margin-bottom: 5px; display:flex; flex-wrap:wrap; gap:4px; }
.editor-toolbar button, .editor-toolbar select {width: auto; background: white; color: #000; border: 1px solid #ccc; padding: 6px 10px; cursor:pointer; font-size:15px;}
.editor-box { border: 1px solid #ccc; min-height: 300px; padding: 10px; background: #fff; outline: none;}
.editor-toolbar select{
margin:0;
}
#content {
    width: 100%;
    height: 220px;
    padding: 12px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: vertical;
    overflow-y: auto;
    background: #fff;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
  }
 
  
  #preview:empty {
  display: none;
}
  .modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }

  .modal-content {
    background: #ffffff;
    padding: 20px 20px 15px;
    border-radius: 8px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
  }

  .modal-content input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
  }

  .modal-content input:focus {
    border-color: #007bff;
    box-shadow: 0 0 3px rgba(0, 123, 255, 0.3);
  }

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 24px;
  color: #cc0000;
  cursor: pointer;
  transition: color 0.2s;
  width: auto;
  display: inline-block;
}

.container-article {
 flex: 1;
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
  padding: 15px;
  border: 1px solid #ddd;
  border-top: none;
  /*min-height: 100vh;*/
}

.container-article .meta {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
  font-style: italic;
  padding-bottom: 15px;
  border-bottom: 1px solid #ddd;
}

.container-article h1 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #000;
  font-weight: 700;
}

.container-article h2 {
  font-size: 25px;
  margin-bottom: 10px;
  color: #000;
  font-weight: 600;
}

.container-article h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #000;
  font-weight: 600;
}

.container-article p {
  font-size: 16px;
  margin-bottom: 15px;
  line-height: 1.6;
  color: #000;
}

.container-article ul, ol {
  padding-left: 25px;
  margin-bottom: 15px;
  color: #000;
}

.container-article li {
  margin-bottom: 4px;
}

.container-article a {
  color: #1e90ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.container-article img {
width: 100%;
max-width: 600px;
margin: 5px auto;
}

.container-article blockquote {
  margin: 20px 0;
  padding-left: 15px;
  border-left: 4px solid #00A8FF;
  color: #000;
  font-style: italic;
  background-color: #f9f9f9;
  border-radius: 4px;
}
.meta {
position: relative;
}

/*Video (YouTube / Uploaded) */
.container-article video,
.container-article iframe {
  width: 100%;
  max-width: 100%;
  /*border-radius: 8px;*/
  margin: 5px auto;
  aspect-ratio: 16 / 9;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.share-icon {
    position: absolute;
    right: 15px;
    top: 30%;
    transform: translateY(-50%);
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}
.new-pastelink-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    background-color: #F3F3F3;
    border: none;
    border-radius: 5px;
    padding: 15px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 15px;
    height: 70px;
}

.new-pastelink-btn:hover {
    background-color: #ddd;
}

.new-icon {
    background-color: #F3F3F3;
    color: #000;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 1px solid #000;
    flex-shrink: 0;
}

.new-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    justify-content: center;
    flex-grow: 1;
}

.new-text .new-title {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.new-text .new-subtitle {
    font-size: 14px;
    color: #666;
}
.list-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 18px;
    background: linear-gradient(to bottom, #000, #333);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom:15px;
}
.list-btn i {
    font-size: 18px;
}
.list-btn:hover {
    background-color: #000;
}

    /* Footer */
    footer {
      text-align: center;
      background: #fff;
      border-radius: 6px;
      padding: 15px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
     box-shadow: inset 0 8px 8px -4px rgba(0,0,0,0.1);
    }

    .copyright {
      font-size: 13px;
      color: #555;
    }

    .icons {
      display: flex;
      gap: 12px;
      justify-content: center;
      margin-top: 8px;
    }

    .icons a {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: #eee;
      color: #555;
      font-size: 16px;
      transition: 0.3s;
      text-decoration: none;
    }

    .icons a:hover {
      background: #0db14b;
      color: #fff;
    }

    /* Responsive */
    @media (max-width: 768px) {
      .navbar .menu {
        display: none;
      }

      .navbar .hamburger {
        display: block;
      }
        
    }