button {
    background-color: #309933;
    color: #ffffff;
    border: none;
    padding: 5px 18px;
    font-size: 13px;
    font-family: Arial, 'Roboto', 'Helvetica Neue', 'San Francisco', sans-serif;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background-color: #40c544;
}

#post-form button[type="submit"] {
    align-self: flex-end;
    padding: 5px 18px;
    margin: auto;
    font-size: 13px;
    font-family: Arial, 'Roboto', 'Helvetica Neue', 'San Francisco', sans-serif;
    background-color: #309933;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    max-width: 320px;
    box-sizing: border-box;
}

#post-form button[type="submit"]:hover {
    background-color: #40c544;
}

#post-form {
    width: 70%;
    margin: 10px auto;
    display: flex;
    flex-direction: column;
    font-family: Arial, 'Roboto', 'Helvetica Neue', 'San Francisco', sans-serif;
}

.form-row {
    display: flex;
    gap: 10px;
    margin-top: 50px;
    margin-bottom: 20px;
}

.form-row input {
    width: 210px;
    padding: 10px;
    border: 1px solid #444;
    background-color: #1a1a1a;
    color: #ffffff;
    border-radius: 4px;
    font-size: 16px;
}

#post-title {
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #444;
    background-color: #1a1a1a;
    color: #ffffff;
    border-radius: 6px;
    font-size: 16px;
}

#post-category-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.category-btn {
    width: 100px;
    padding: 8px 0;
    background-color: #2e2e2e;
    border: 1px solid #444;
    border-radius: 10px;
    color: #ccc;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    transition: 0.2s;
}

.category-btn.selected[data-tag="자유"] {
    background-color: #616161;
    border-color: #424242;
    color: #fff;
}

.category-btn.selected[data-tag="질문"] {
    background-color: #e53935;
    border-color: #e53935;
    color: #fff;
}

.category-btn.selected[data-tag="정보"] {
    background-color: #1e88e5;
    border-color: #1e88e5;
    color: #fff;
}

.category-btn.selected[data-tag="이벤트"] {
    background-color: #8e24aa;
    border-color: #8e24aa;
    color: #fff;
}

.category-btn.selected[data-tag="공지"] {
    background-color: #fb8c00;
    border-color: #fb8c00;
    color: #000;
}

.category-btn[data-tag="자유"]:hover {
    background-color: #757575;
}

.category-btn[data-tag="질문"]:hover {
    background-color: #f44336;
}

.category-btn[data-tag="정보"]:hover {
    background-color: #42a5f5;
}

.category-btn[data-tag="이벤트"]:hover {
    background-color: #ba68c8;
}

.category-btn[data-tag="공지"]:hover {
    background-color: #ffb74d;
}

#post-editor {
    margin-top: 10px;
    margin-bottom: 20px;
    min-height: 600px;
    max-height: 800px;
    overflow-y: auto;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 10px;
}

.ql-editor {
    font-size: 16px;
}

.ql-toolbar.ql-snow {
    background-color: #2a2a2a;
    border: 1px solid #444;
}

.ql-container.ql-snow {
    background-color: #1a1a1a;
    border: 1px solid #444;
}

.ql-toolbar button {
    background-color: #2a2a2a;
    color: #ccc;
}

.ql-toolbar button:hover {
    background-color: #3a3a3a;
}

.ql-toolbar button.ql-active {
    background-color: #757575;
    color: #fff;
}

.ql-editor.ql-blank::before {
    color: #616161;
    font-style: normal;
}

@media (max-width: 1199px) and (min-width: 768px) {
    
}

@media (max-width: 768px) {
    #post-form button[type="submit"] {
        max-width: 768px;
    }
    
    #post-form {
        width: 90%;
    }
    
    .form-row {
        display: flex;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    
    .form-row input {
        width: 50%;
        font-size: 14px;
    }
    
    #post-title {
        font-size: 14px;
    }
    
    #post-category-selector {
        margin-bottom: 10px;
    }
    
    .category-btn {
        width: 17%;
        margin: auto;
        font-size: 14px;
    }
    
    #post-editor {
        margin-bottom: 10px;
        min-height: 320px;
        max-height: 400px;
    }
}