.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  z-index: 1000;
}
.popup-overlay .popup-container {
  width: 600px;
  height: 600px;
  background-color: white;
  border-radius: 12px;
  -webkit-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
          box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}
.popup-overlay .popup-container .popup-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid rgba(34, 34, 34, 0.1);
}
.popup-overlay .popup-container .popup-header .popup-title {
  font-size: 24px;
  font-weight: 700;
  color: #222;
  margin: 0;
}
.popup-overlay .popup-container .popup-header .close-button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: none;
  border: 1px solid rgba(34, 34, 34, 0.2);
  color: #222;
  font-size: 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  cursor: pointer;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  line-height: 0;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  margin-left: 12px;
}
.popup-overlay .popup-container .popup-header .close-button:hover {
  background-color: rgba(34, 34, 34, 0.05);
}
.popup-overlay .popup-container .popup-info {
  padding: 16px 32px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  border-bottom: 1px solid rgba(34, 34, 34, 0.1);
}
.popup-overlay .popup-container .popup-info .popup-author, .popup-overlay .popup-container .popup-info .popup-date {
  font-size: 16px;
  color: #222;
  font-weight: 600;
}
.popup-overlay .popup-container .popup-content {
  padding: 32px;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  overflow-y: auto;
}
.popup-overlay .popup-container .popup-content p {
  color: #222;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.popup-overlay .popup-container .popup-content p:last-child {
  margin-bottom: 0;
}

.popup-overlay-write {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  z-index: 1000;
}
.popup-overlay-write .popup-container {
  width: 600px;
  background-color: white;
  border-radius: 16px;
  -webkit-box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
          box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  max-height: 90vh;
  left: 50%;
  position: absolute;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
}
.popup-overlay-write .popup-container .popup-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid #f1f3f4;
}
.popup-overlay-write .popup-container .popup-header .popup-title {
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.popup-overlay-write .popup-container .popup-header .close-button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f8f9fa;
  border: none;
  color: #6c757d;
  font-size: 18px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  cursor: pointer;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  line-height: 0;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  margin-left: 12px;
}
.popup-overlay-write .popup-container .popup-header .close-button:hover {
  background-color: #e9ecef;
  color: #495057;
}
.popup-overlay-write .popup-container .popup-content {
  padding: 32px;
}
.popup-overlay-write .popup-container .popup-content .write-form .form-group {
  margin-bottom: 24px;
}
.popup-overlay-write .popup-container .popup-content .write-form .form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #495057;
  margin-bottom: 8px;
}
.popup-overlay-write .popup-container .popup-content .write-form .form-group .input-wrapper {
  position: relative;
}
.popup-overlay-write .popup-container .popup-content .write-form .form-group .input-wrapper .input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #6c757d;
  z-index: 1;
}
.popup-overlay-write .popup-container .popup-content .write-form .form-group .input-wrapper input {
  width: 100%;
  padding: 12px 16px 12px 48px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: 15px;
  color: #212529;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  background: #fdfdfd;
}
.popup-overlay-write .popup-container .popup-content .write-form .form-group .input-wrapper input:focus {
  outline: none;
  border-color: #0d6efd;
  background: white;
}
.popup-overlay-write .popup-container .popup-content .write-form .form-group .input-wrapper input:focus + .input-icon {
  color: #0d6efd;
}
.popup-overlay-write .popup-container .popup-content .write-form .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: 15px;
  color: #212529;
  -webkit-transition: border-color 0.2s ease;
  transition: border-color 0.2s ease;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  background: #fdfdfd;
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
  line-height: 1.5;
}
.popup-overlay-write .popup-container .popup-content .write-form .form-group textarea:focus {
  outline: none;
  border-color: #0d6efd;
  background: white;
}
.popup-overlay-write .popup-container .popup-content .write-form .form-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  gap: 12px;
  margin-top: 32px;
}
.popup-overlay-write .popup-container .popup-content .write-form .form-actions .btn-cancel, .popup-overlay-write .popup-container .popup-content .write-form .form-actions .btn-submit {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  border: none;
}
.popup-overlay-write .popup-container .popup-content .write-form .form-actions .btn-cancel {
  background: #f8f9fa;
  color: #6c757d;
  border: 1px solid #dee2e6;
}
.popup-overlay-write .popup-container .popup-content .write-form .form-actions .btn-cancel:hover {
  background: #e9ecef;
  color: #495057;
}
.popup-overlay-write .popup-container .popup-content .write-form .form-actions .btn-submit {
  background: #0d6efd;
  color: white;
}
.popup-overlay-write .popup-container .popup-content .write-form .form-actions .btn-submit:hover {
  background: #0b5ed7;
}

.popup-footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 16px 32px;
  border-top: 1px solid #f1f3f4;
  gap: 8px;
  font-size: 16px;
}
.popup-footer span {
  font-size: 16px;
  color: #222;
  font-weight: bold;
}
.popup-footer a {
  color: #0d6efd;
  text-decoration: underline;
  -webkit-transition: color 0.2s ease;
  transition: color 0.2s ease;
  max-width: 440px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.popup-footer a:hover {
  color: #0a58ca;
}