/* Reset & Base Styles */
body {
  font-family: 'Malgun Gothic', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #5a5959;
}

.deco{
  position: absolute;
  z-index: -1;
  background:
  linear-gradient(217deg, rgb(234 245 232 / 0.8), transparent 70.71%),
  linear-gradient(127deg, rgb(177 222 169 / 0.8), transparent 70.71%),
  linear-gradient(336deg, rgb(158 207 147 / 0.8), transparent 70.71%);
  top: -2px;
  left: 0;
  width: 100vw;
  height: 15vh;
  box-shadow: 0px 0px 100px #eaf5e8;
  filter: blur(1.4rem);
  
}

.container {
  box-sizing: border-box;
  max-width: 800px;
  margin: 30px auto;
  padding: 40px;
}

h1{
    color: #86c27b;
}

h1 a{
    color: #86c27b;
    text-decoration: none;
}


/* Board Table */
.board-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.board-table caption{
    margin-bottom: 2vh;
}

.board-table th, .board-table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

.board-table th {
  background-color: #98cf8e;
  color: #5a5959;
}

#order td{
  text-align: center;
}

td a{
  color: black;
}

.btn-primary {
  background-color: #98cf8e; 
  color: white;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
}

.btn-primary:hover {
  background-color: #86c27b; 
}

.post-mod-button{
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
}


/* Write Form Section */
.write-section {
  border: 1px solid #ddd;
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 5px;
  width: 60%;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

.write-section h2 {
  margin-top: 0;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group textarea {
  width: 60%;
  padding: 8px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#form-content-editor{
  width: 97%;
  min-height: 400px !important;
}

.btn-primary{
  color: white; 
  text-decoration: none;
}

.error-msg {
  color: red;
  font-size: 13px;
  display: none;
  margin-top: 5px;
}
#cate-text{
  display: block; 
  margin-bottom: 8px; 
  font-weight: bold;
}

.cate-item{
  display: inline-flex; 
  gap: 15px; 
  flex-wrap: wrap;
}

.cate-item label{
  font-weight: normal !important;
}

#atta-text{
  font-weight: bold; 
  display: block; 
  margin-bottom: 5px;
}

/*Detail*/
#detail-view-mode h1{
  font-size: 2rem; 
  margin-bottom: 10px; 
}

#detail-view-mode p{
  color: #666;
}

#post-cont{
   min-height: 200px; 
   font-size: 1.1rem; 
   line-height: 1.6; 
   white-space: pre-wrap; 
   margin: 20px 0;
}

#atta-sec{
  margin-top: 15px; 
  max-width: 100%;
}

#atta-sec img{
  max-width: 300px; 
  max-height: 300px; 
  border-radius: 4px; 
  border: 1px solid #ddd;
}

#atta-sec2{
  background: #f5f5f5; 
  padding: 10px; 
  border-radius: 4px; 
  display: inline-block; 
  margin-top: 10px;
}

#atta-sec2 span{
  font-weight: bold; 
  color: #555;
}
